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

Unify sa.GetAuthorizations2 and sa.GetValidAuthorizations2 #7663

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

aarongable
Copy link
Contributor

These two methods were already nearly identical, their only meaningful differences being the set of statuses they select for in their database query, and the condition on which they prioritize entries in their output.

Update them to have the exact same structure and logic. Most meaningfully, update GetValidAuthorizations2 to hint the database to use the same index which GetAuthorizations2 already hints.

@aarongable aarongable requested a review from a team as a code owner August 13, 2024 00:00
@aarongable aarongable merged commit 4482818 into main Aug 19, 2024
12 checks passed
@aarongable aarongable deleted the unify-get-authzs branch August 19, 2024 17:36
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