You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
In my , all 's are behaving as "sortable={true}", despite only a subset of property names being configured in the OrderFilter.
How to reproduce
Create a Doctrine Entity
Add an OrderFilter with limited sortable properties like this: `#[ApiFilter(OrderFilter::class, properties: ['name'])]
Create a corresponding ApiPlatform Admin Resource with a ListGuesser and multiple FieldGuessers
See that all field headers look sortable from a UI perspective, although only "name" will function as sortable, because the API actually works as expected.
`
Possible Solution
My guess is that in FieldGuesser::isFieldSortable(), schema.parameters is not resolved. Shouldn't that be using SchemaAnalyzer? Like schemaAnalyzer .getOrderParametersFromSchema(schema)
The text was updated successfully, but these errors were encountered:
API Platform version(s) affected: 4.0.3
Description
In my , all 's are behaving as "sortable={true}", despite only a subset of property names being configured in the OrderFilter.
How to reproduce
`
Possible Solution
My guess is that in FieldGuesser::isFieldSortable(), schema.parameters is not resolved. Shouldn't that be using SchemaAnalyzer? Like
schemaAnalyzer .getOrderParametersFromSchema(schema)
The text was updated successfully, but these errors were encountered: