-
-
Notifications
You must be signed in to change notification settings - Fork 5
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(relevant-warnings) Read PR instead of commit #2128
Conversation
def _fetch_issues_for_pr_file_cache_key( | ||
organization_id: int, provider: str, external_id: str, pr_file: PrFile, *args | ||
) -> tuple[str]: | ||
return hashkey(organization_id, provider, external_id, pr_file.filename, pr_file.sha) |
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.
the commit before this implemented PrFile.__hash__
and PrFile.__eq__
and passed pr_file
here instead. but that causes the hash key to be the whole PrFile
obj, which can include a large patch
. keep the key small by manually passing the filename and sha
patch=file.patch, | ||
status=file.status, | ||
changes=file.changes, | ||
sha=file.sha, |
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.
this is indeed the blob SHA
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.
unintuitive lol
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
context in slack