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

Auth NPE on favs and favorite ownership #102

Merged
merged 7 commits into from
Sep 22, 2024
Merged

Auth NPE on favs and favorite ownership #102

merged 7 commits into from
Sep 22, 2024

Conversation

barneyb
Copy link
Member

@barneyb barneyb commented Sep 22, 2024

When kickstart services a query, not only data loading may be spread across several threads, field resolving may too. So can't rely on Spring Security's context holder in resolvers. This hasn't been a problem so far, but suggesting recipes (at least when paired with library search) sometimes does - #100 - when resolving favorites.

Resolving favorites was coded with the assumption that user can only favorite their own recipes - #101 - which is inaccurate. The favorites field is not used by the UI, even though it's often queried for. Rather, it queries for favorites separately and does the join client-side.

closes #100 and #101.

@barneyb barneyb self-assigned this Sep 22, 2024
@barneyb barneyb merged commit 66ec810 into master Sep 22, 2024
1 check passed
@barneyb barneyb deleted the auth-npe-on-favs branch September 22, 2024 15:56
@barneyb barneyb linked an issue Sep 22, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant