feat(compactRecipe) Add owner filter (ALL / MINE) to recipe list endpoint #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "recipe-owner-filter"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
RecipeOwnerFilterenum (ALL|MINE) toCompactRecipeFilterRequestMINEis sent, the service resolves the creator ID from the JWT — the client never sends a UUIDCompactRecipeFiltergains an optionalcreatorIdfield; the repository applies it as anandWhereonrecipe.createdBycreatedByis already a column on every recipe row viaAbstractEntityFAVORITESlater only requires a new enum value and a new service branchTest plan
CompactRecipeApplicationServicetests:MINEsetscreatorIdto current user,ALLand absent leave itundefinedrecipeOwner: "MINE"and verify only own recipes are returned; sendALLor omit and verify all recipes are returned