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(backup): Fix OrganizationMember.user_id type confusion bug #70826

Merged
merged 2 commits into from
May 14, 2024

Conversation

azaslavsky
Copy link
Contributor

The code previously assumed that user_id from OrganizationMember could not be None. The gradual typing for python is unable to deduce that what we assumed was set[int] is actually, in practice, set[int | None] because of this. There is now an explicit check-and-remove for this in the constructor for Filter, which relies on this invariant.

@azaslavsky azaslavsky marked this pull request as ready for review May 13, 2024 23:18
@azaslavsky azaslavsky requested a review from a team as a code owner May 13, 2024 23:18
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label May 13, 2024
@azaslavsky azaslavsky enabled auto-merge (squash) May 13, 2024 23:18
@azaslavsky azaslavsky merged commit 0b85460 into master May 14, 2024
49 checks passed
@azaslavsky azaslavsky deleted the azaslavsky/fix-rpc-filter-bug branch May 14, 2024 16:04
@github-actions github-actions bot locked and limited conversation to collaborators May 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants