-
Notifications
You must be signed in to change notification settings - Fork 185
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
Completely remove old AffectedCommit code. #1130
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -520,12 +515,7 @@ def _do_update(self, source_repo, repo, vulnerability, relative_path, | |||
|
|||
bug.put() | |||
|
|||
# Temporary migration exclusion: Don't write legacy Linux AffectedComit | |||
# entries as they cause Datastore scaling issues. | |||
write_legacy = not _is_linux_ecosystem(vulnerability) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should _is_linux_ecosystem()
also be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, removed!
docker/worker/worker_test.py
Outdated
should_be_deleted = osv.AffectedCommit( | ||
id='OSV-2020-1337-abcd', | ||
bug_id='OSV-2020-1337', | ||
commit='abcd', | ||
project='project', | ||
ecosystem='ecosystem', | ||
public=False) | ||
should_be_deleted.put() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there no equivalent new version of this?
(I don't really know what this was testing...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, this was just checking if the new analysis overwrites previous results. I'll add the new equivalent here and a comment to explain.
Part of #951.