Skip to content

feat: support filters with stateOptions#7739

Merged
soyuka merged 1 commit intoapi-platform:4.2from
alexislefebvre:feat-add-tests-of-filters-with-stateOptions
Feb 13, 2026
Merged

feat: support filters with stateOptions#7739
soyuka merged 1 commit intoapi-platform:4.2from
alexislefebvre:feat-add-tests-of-filters-with-stateOptions

Conversation

@alexislefebvre
Copy link
Contributor

@alexislefebvre alexislefebvre commented Feb 6, 2026

Q A
Branch? main
Tickets Closes #7610
License MIT
Doc PR .

@alexislefebvre alexislefebvre force-pushed the feat-add-tests-of-filters-with-stateOptions branch 4 times, most recently from 68033d1 to 975ba8d Compare February 10, 2026 15:52
@alexislefebvre alexislefebvre changed the title feat: add tests of filters with stateOptions feat: support filters with stateOptions Feb 11, 2026
@alexislefebvre alexislefebvre force-pushed the feat-add-tests-of-filters-with-stateOptions branch from ff91980 to 9fa0fd2 Compare February 11, 2026 10:33
@alexislefebvre alexislefebvre marked this pull request as ready for review February 11, 2026 10:35
@soyuka
Copy link
Member

soyuka commented Feb 11, 2026

We should merge this as a bug fix, can you squash also?

@alexislefebvre alexislefebvre force-pushed the feat-add-tests-of-filters-with-stateOptions branch 2 times, most recently from 3b04c05 to 732c965 Compare February 11, 2026 11:07
@alexislefebvre
Copy link
Contributor Author

It may create conflicts with #7711

@soyuka soyuka changed the base branch from main to 4.2 February 12, 2026 21:32
…y resolution

| Q             | A
| ------------- | ---
| Branch?       | main
| Tickets       | Closes api-platform#7610
| License       | MIT
| Doc PR        | ∅

* Add filterClass property to Parameter to store entity class from stateOptions
* Modify ParameterResourceMetadataCollectionFactory to resolve filter properties using
  entity class instead of resource class
* Adjust Doctrine metadata factory decoration priorities to ensure correct execution order
@soyuka soyuka force-pushed the feat-add-tests-of-filters-with-stateOptions branch from 732c965 to 7964c22 Compare February 12, 2026 21:35
@soyuka soyuka merged commit 6f85f2a into api-platform:4.2 Feb 13, 2026
127 of 130 checks passed
@alexislefebvre alexislefebvre deleted the feat-add-tests-of-filters-with-stateOptions branch February 13, 2026 08:46
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.

[Filters] Improve filter compatibility with stateOptions

2 participants