-
-
Notifications
You must be signed in to change notification settings - Fork 275
Add new content ID function #1766
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
Closed
Closed
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
9ee727c
Add new content ID function
TG1999 b6e2895
Add tests and address review comments
TG1999 6e959ee
New content ID pipeline
TG1999 309f7fd
New content ID pipeline
TG1999 4083a5b
Address review comments
TG1999 61a9ed0
Address review comments
TG1999 8439670
Address review comments
TG1999 4d892ec
Address review comments
TG1999 2fb7da1
Address review comments
TG1999 e0868e9
Address review comments
TG1999 72d0d94
Address review comments
TG1999 1c18d9e
Address review comments
TG1999 c8e3046
Remove unique content ID from unqiue together
TG1999 8f35101
Remove unique together from advisories
TG1999 e596ba9
Fix migrations
TG1999 7e7f846
Fix pipeline errors
TG1999 9bb565b
Add filter for fast itreation
TG1999 80500f1
Increase batch size
TG1999 161589d
Fix error
TG1999 f07db19
Add logs
TG1999 c48348c
Separate pipelines for recomputing and removing duplicates
TG1999 0fd24ce
Fix type errors
TG1999 d345e52
Fix formatting errors
TG1999 08bc72b
Fix tests
TG1999 7c005fc
Fixes
TG1999 2a2bbee
Add logs for get_advisory_batches
TG1999 35e1042
Add logs and run function in a single process
TG1999 b1b40f5
Change date_imported to date_collected for comparison
TG1999 e36500b
Change batch size to 200 and enable multiprocessing
TG1999 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
23 changes: 23 additions & 0 deletions
23
vulnerabilities/migrations/0089_alter_advisory_unique_content_id.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,23 @@ | ||
| # Generated by Django 4.2.16 on 2025-02-12 13:41 | ||
|
|
||
| from django.db import migrations, models | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ("vulnerabilities", "0088_fix_alpine_purl_type"), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AlterField( | ||
| model_name="advisory", | ||
| name="unique_content_id", | ||
| field=models.CharField( | ||
| blank=True, | ||
| db_index=True, | ||
| help_text="A 64 character unique identifier for the content of the advisory since we use sha256 as hex", | ||
| max_length=64, | ||
| ), | ||
| ), | ||
| ] |
17 changes: 17 additions & 0 deletions
17
vulnerabilities/migrations/0090_alter_advisory_unique_together.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,17 @@ | ||
| # Generated by Django 4.2.16 on 2025-02-14 16:27 | ||
|
|
||
| from django.db import migrations | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ("vulnerabilities", "0089_alter_advisory_unique_content_id"), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AlterUniqueTogether( | ||
| name="advisory", | ||
| unique_together=set(), | ||
| ), | ||
| ] |
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.
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.