-
-
Notifications
You must be signed in to change notification settings - Fork 928
feat(doctrine): new search filters #7121
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
base: main
Are you sure you want to change the base?
feat(doctrine): new search filters #7121
Conversation
0271e3e
to
774ba0c
Compare
8322356
to
773ce67
Compare
ae2ad0e
to
662ad04
Compare
continues the work at api-platform#6865
Continues the work at api-platform#7079 and before at api-platform#6865
Continues the work at api-platform#7079 and before at api-platform#6865
Continues the work at api-platform#7079 and before at api-platform#6865
Continues the work at api-platform#7079 and before at api-platform#6865
Continues the work at api-platform#7079 and before at api-platform#6865
Continues the work at api-platform#7079 and before at api-platform#6865
Continues the work at api-platform#7079 and before at api-platform#6865
Continues the work at api-platform#7079 and before at api-platform#6865
Continues the work at api-platform#7079 and before at api-platform#6865 See api-platform#6971.
Continues the work at api-platform#7079 and before at api-platform#6865 See api-platform#6971.
662ad04
to
f6bbe8b
Compare
Continues the work at api-platform#7079 and before at api-platform#6865 See api-platform#6971.
Continues the work at api-platform#7079 and before at api-platform#6865 See api-platform#6971.
Continues the work at api-platform#7079 and before at api-platform#6865
return new OpenApiParameter(name: $parameter->getKey().'[]', in: 'query', style: 'deepObject', explode: true); | ||
} | ||
|
||
public function getDescription(string $resourceClass): array |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's move this method to a trait inside Metadata, also add * @deprecated in 4.2, to be removed in 5.0
to the Metadata\FilterInterface (we'll handle the bc later)
* @throws ServerExceptionInterface | ||
*/ | ||
#[DataProvider('filterDataProvider')] | ||
public function testOrFilter(string $url, int $expectedCount, array $expectedNames): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure this correctly tests an Or filter
c7b4646
to
caf1ac7
Compare
main
The aim of this PR is to have the API Platform search filters like API Platform eloquent filters.
This PR continues the improvements initiated in pull requests #7079 and #6865, aiming to finalize the efforts started initially in pull request #6775.
TODO (by order of priority) :