-
-
Notifications
You must be signed in to change notification settings - Fork 950
feat(laravel): boolean filter #6806
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
Conversation
|
Could you add a test (like https://github.com/api-platform/core/blob/main/src/Laravel/Tests/Eloquent/Filter/DateFilterTest.php)? |
|
There were missing a few things, I've added a test and registered the filter (https://github.com/api-platform/core/pull/6806/files#diff-1f34d8685c9bbcc2037ef47c41cb6dac916a0fe6fc06e2047b9635e35fa13527R423) I'll rebase this later. As you can see adding a functional test really helped to check it's working properly. |
Thanks for the feedback |
9a0e008 to
530f030
Compare
|
needs #6860 |
530f030 to
430abed
Compare
430abed to
f1448fb
Compare
|
thanks @adryyy10! |
* feat: Adding boolean filter * refactor: return early if wrong values * tests: boolean filter test * refactor(BooleanFilter): cs fixer * add test --------- Co-authored-by: adriafigueres <[email protected]> Co-authored-by: soyuka <[email protected]>
|
@adryyy10, could you please add a documentation PR for this feature, targeting the Check our CONTRIBUTING Guide and do not hesitate if you need help. |
* feat: Adding boolean filter * refactor: return early if wrong values * tests: boolean filter test * refactor(BooleanFilter): cs fixer * add test --------- Co-authored-by: adriafigueres <[email protected]> Co-authored-by: soyuka <[email protected]>
Adding new boolean filter in order to filter by boolean attributes