-
-
Notifications
You must be signed in to change notification settings - Fork 238
Add Live Evaluation API endpoint and PyPa live pipeline importer #1969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
michaelehab
wants to merge
11
commits into
main
Choose a base branch
from
1953-pypa-importer-package-first
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
bd5c1f2
Add PyPa live importer #1953
michaelehab d1a7cc1
Add Live Evaluation API endpoint #1902
michaelehab 7a34791
Merge branch 'main' into 1953-pypa-importer-package-first
michaelehab 812bc00
Merge branch 'main' into 1953-pypa-importer-package-first
michaelehab ba3b3c1
Change Live Evaluation API to use RQ #1953
michaelehab a7f7041
Fix Live Evaluation API tests #1953
michaelehab 6c0c6c8
Add status url in live evaluation API response #1953
michaelehab c1909f5
Add a separate live evaluation dashboard #1953
michaelehab 54a7d8b
Address PR Review Comments #1953
michaelehab 5d4312b
Fix Live Evaluation API tests #1953
michaelehab 15868de
Fix Live Evaluation API tests #1953
michaelehab File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
vulnerabilities/migrations/0102_livepipelinerun_pipelinerun_live_pipeline.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Generated by Django 4.2.22 on 2025-08-25 18:03 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import uuid | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("vulnerabilities", "0101_advisorytodov2_todorelatedadvisoryv2_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="LivePipelineRun", | ||
fields=[ | ||
( | ||
"run_id", | ||
models.UUIDField( | ||
default=uuid.uuid4, | ||
editable=False, | ||
primary_key=True, | ||
serialize=False, | ||
unique=True, | ||
), | ||
), | ||
("created_date", models.DateTimeField(auto_now_add=True, db_index=True)), | ||
("completed_date", models.DateTimeField(blank=True, editable=False, null=True)), | ||
("status", models.CharField(default="queued", max_length=20)), | ||
("purl", models.CharField(blank=True, max_length=300, null=True)), | ||
], | ||
options={ | ||
"ordering": ["-created_date"], | ||
}, | ||
), | ||
migrations.AddField( | ||
model_name="pipelinerun", | ||
name="live_pipeline", | ||
field=models.ForeignKey( | ||
blank=True, | ||
null=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
related_name="pipelineruns", | ||
to="vulnerabilities.livepipelinerun", | ||
), | ||
), | ||
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.