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

fix(releases): Create distributions if missing in JS code path [INGEST-240] #28647

Merged
merged 1 commit into from
Sep 17, 2021

Conversation

jjbayer
Copy link
Member

@jjbayer jjbayer commented Sep 17, 2021

In the same way that releases are created when missing in javascript processing (see #5472) , add missing distributions to the db.

This fixes #28048.

https://getsentry.atlassian.net/browse/INGEST-240

@jjbayer jjbayer requested a review from a team as a code owner September 17, 2021 09:32
@@ -675,14 +675,6 @@ def add_dist(self, name, date_added=None):
defaults={"date_added": date_added, "organization_id": self.organization_id},
)[0]

def get_dist(self, name):
Copy link
Member Author

Choose a reason for hiding this comment

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

I removed this function because it is not used anywhere else, and its callers are at risk of confusing "does not exist" with dist=None i.e. the default distribution.

@jjbayer jjbayer merged commit a97b113 into master Sep 17, 2021
@jjbayer jjbayer deleted the fix/add-dist-early branch September 17, 2021 10:50
@github-actions github-actions bot locked and limited conversation to collaborators Oct 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing dist check when matching release files stored in archives
2 participants