You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "diveshdut (via GitHub)" <gi...@apache.org> on 2026/08/04 09:11:40 UTC
[PR] OFBIZ-13457 Add REST sort order-by alias resolver [ofbiz-framework]
diveshdut opened a new pull request, #1556:
URL: https://github.com/apache/ofbiz-framework/pull/1556
## Summary
Adds a generic REST framework helper for resolving public `sort` expressions into EntityQuery-compatible order-by fields.
## Changes
- Adds `RestApiUtil.resolveOrderBy(...)`
- Reuses existing REST sort syntax validation
- Supports endpoint-defined public sort aliases mapped to entity fields
- Preserves descending sort syntax such as `-displayName`
- Appends default order-by fields as stable tie-breakers
- Rejects unsupported, malformed, or duplicate mapped fields
- Adds focused unit coverage in `RestApiUtilPaginationTest`
--
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: notifications-unsubscribe@ofbiz.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] OFBIZ-13457 Add REST sort order-by alias resolver [ofbiz-framework]
Posted by "diveshdut (via GitHub)" <gi...@apache.org>.
diveshdut merged PR #1556:
URL: https://github.com/apache/ofbiz-framework/pull/1556
--
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: notifications-unsubscribe@ofbiz.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org