Skip to content

Conversation

miketheman
Copy link
Member

In refactoring the string-based loaders to class-based attributes, I
found that we do nothing with the resulting user data from joinedload("user"),
we're only looking for existence of a user-linked macaroon based on user_id.

Simplified query response.

Signed-off-by: Mike Fiedler miketheman@gmail.com

In refactoring the string-based loader to class-based attributes, I
found that we do nothing with the resulting user data, we're only
looking for existence in the form that uses it.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
Simplifies the code a little, since `one_or_none()` does the None-ness
for us.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
@miketheman miketheman requested a review from a team as a code owner May 26, 2023 14:32
@miketheman miketheman requested a review from woodruffw May 26, 2023 14:33
@miketheman miketheman merged commit 10f72eb into pypi:main May 26, 2023
@miketheman miketheman deleted the miketheman/simplify-macaroon-finder branch May 26, 2023 15:26
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.

3 participants