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

Create a separate project for QuerydslPredicateResolver and associated machinery #134

Merged
merged 3 commits into from
Aug 29, 2023

Conversation

vierbergenlars
Copy link
Member

@vierbergenlars vierbergenlars commented Aug 28, 2023

Split off QuerydslPredicateResolver that allows supplying arbitrary QueryDSL predicates.

It is a focussed, reusable piece of code that is not tightly bound to Thunx ABAC and can be reused without having to import all of thunx.

Also add the predicate injecting RootResourceInformationHandlerMethodArgumentResolver and autoconfiguration.

The returnvalue of QuerydslPredicateResolver has also changed to split up between predicates for listing/reading/creating/updating and deleting.
That is mainly for Thunx integration, so we can later provide separate predicates and give a better message than 404 if the user is allowed to read an item, but just not allowed to edit/delete it.

@vierbergenlars vierbergenlars requested a review from a team as a code owner August 28, 2023 07:55
@vierbergenlars vierbergenlars force-pushed the separate-querydsl-predicate-resolver branch 2 times, most recently from b95adfd to 230a6dc Compare August 28, 2023 11:28
@vierbergenlars vierbergenlars marked this pull request as draft August 28, 2023 14:09
@vierbergenlars vierbergenlars force-pushed the separate-querydsl-predicate-resolver branch 2 times, most recently from 81c7ad2 to e69d191 Compare August 28, 2023 15:21
@vierbergenlars vierbergenlars marked this pull request as ready for review August 28, 2023 15:25
@vierbergenlars vierbergenlars force-pushed the separate-querydsl-predicate-resolver branch from e69d191 to 03160d5 Compare August 29, 2023 07:00
…dicates

This is a focussed, reusable piece of code that is not tightly bound to the Thunx ABAC system, and that is reusable for other purposes without having to use all of thunx.
…sing a single item

Some filters should only be applied when filtering a collection, not when accessing a single item
@vierbergenlars vierbergenlars force-pushed the separate-querydsl-predicate-resolver branch from df0ed6e to d698b0b Compare August 29, 2023 11:19
@vierbergenlars vierbergenlars merged commit 32e37da into main Aug 29, 2023
2 checks passed
@vierbergenlars vierbergenlars deleted the separate-querydsl-predicate-resolver branch August 29, 2023 11:22
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