Tracy Logan
09/21/2026, 9:55 PMsbglasius
09/22/2026, 6:57 AM<mailto:user@grails.apache.org|user@grails.apache.org> is for user questions, where as <mailto:dev@grails.apache.org|dev@grails.apache.org> is focused on Grails development. If you post your <mailto:user@grails.apache.org|user@grails.apache.org> you actually help promoting that list and migrating the questions of SlackDave
09/25/2026, 4:39 PM/console because it uses the removed Metadata accessor (app.grails.version).
I noticed the fix is already on 8.0.x and #27 mentions releasing a milestone. Is anything blocking that, or is there a published snapshot we can try? Happy to test it against our application.retokiefer
09/30/2026, 7:57 AMretokiefer
09/30/2026, 9:56 AMsbglasius
09/30/2026, 10:28 AMjdaugherty
09/30/2026, 10:47 AMretokiefer
09/30/2026, 11:12 AMjdaugherty
09/30/2026, 11:51 AMjdaugherty
09/30/2026, 11:52 AMretokiefer
09/30/2026, 12:17 PMretokiefer
09/30/2026, 4:07 PMretokiefer
09/30/2026, 4:07 PMjdaugherty
09/30/2026, 4:30 PMretokiefer
09/30/2026, 5:22 PMgene
10/07/2026, 9:51 PMsbglasius
10/08/2026, 7:39 AMrss
10/08/2026, 12:14 PMHenrique Lobo Weissmann
10/08/2026, 2:29 PMgsandrew
10/08/2026, 7:52 PMHenrique Lobo Weissmann
10/08/2026, 8:10 PMHenrique Lobo Weissmann
10/08/2026, 8:10 PMHenrique Lobo Weissmann
10/13/2026, 12:44 PMgiangio
10/14/2026, 9:10 AMfetchParams.sort = [
'date' : 'asc',
'individual.lastname': 'asc', // <- This is not working anymore
]
used in:
List<TWorkLog> listAll(Map filterParams = [:], Map fetchParams = [:]) {
if (!fetchParams.sort) fetchParams.sort = [dateTimeStart: 'asc']
if (!fetchParams.fetch) fetchParams.fetch = fetch
def query = buildQuery(filterParams)
return query.list(fetchParams)
}
With a where query:
@CompileDynamic
private DetachedCriteria<TWorkLog> buildQuery(Map filterParams) {
def query = TWorkLog.where {}
...
return query
}
Reading the documentation I am supposed to create an alias for the association, something like def sortIndividual = individual and then sorting on that. Since we have an automation in table headers that automatically sort columns based on their names, I was wondering if there is a way to revert to the old behaviourgiangio
10/14/2026, 9:11 AMgiangio
10/14/2026, 9:12 AMgiangio
10/14/2026, 10:15 AMdef query = TWorkLog.where {
def individualSort = individual
}
// Adding other fragments to the query...
Then sorting with the following:
fetchParams.sort = [
'date' : 'asc',
'individualSort.lastname': 'asc', // <- This is not working anymore
]
throws:
java.lang.IllegalArgumentException: Invalid sort propertygiangio
10/14/2026, 10:37 AMgene
10/14/2026, 1:17 PMgiangio
10/14/2026, 1:34 PM