jamesfredley opened a new pull request, #15691:
URL: https://github.com/apache/grails-core/pull/15691
## Summary
Adds test coverage for the Map-based multi-field `sort` argument on GORM
queries, exercising `DynamicFinder.applySortForMap()` through both `list()` and
dynamic finders.
This path lets callers pass a `Map` of property to direction, e.g.
`query.list(sort: [firstName: "asc", lastName: "desc"])`, producing multiple
`ORDER BY` clauses. It was documented in #15599 but had no test coverage, so
this PR locks in the contract that was documented.
## Changes
- `OrderBySpec`: three new feature methods covering
- multi-field Map sort, all ascending, via `list()`
- multi-field Map sort with mixed directions via `list()`
- multi-field Map sort via a dynamic finder
## Testing
```
./gradlew :grails-datamapping-core-test:test --tests
"org.grails.datastore.gorm.OrderBySpec"
```
All feature methods pass.
Follow-up to #15599 (review note about missing test coverage for the
Map-sort path).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]