Skip to content
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

Merged
merged 3 commits into from
Mar 17, 2023
Merged

Completely remove old AffectedCommit code. #1130

merged 3 commits into from
Mar 17, 2023

Conversation

oliverchang
Copy link
Collaborator

Part of #951.

Copy link
Member

@michaelkedar michaelkedar left a 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)
Copy link
Member

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, removed!

Comment on lines 148 to 156
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()

Copy link
Member

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...)

Copy link
Collaborator Author

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.

@oliverchang oliverchang merged commit 363c720 into master Mar 17, 2023
@oliverchang oliverchang deleted the remove-ac branch March 17, 2023 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants