Improve error message for orderBy with missing parameters in aggregation framework
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem
When ordering by parameterized dimensions in the aggregation framework's GraphQL API without providing the required parameters argument, the error message is not specific enough to help users understand what went wrong.
Current error message:
"the specified identifier is not available: 'created_event_at'"
Expected error message:
"specified identifier 'event_date' is not available for given parameters"
Example
When querying with a parameterized dimension like eventDate that requires a granularity parameter:
orderBy: [
{ identifier: "eventDate", direction: DESC }
# Missing: parameters: { granularity: "daily" }
]
The error should clearly indicate that the identifier exists but is not available without the required parameters.
Related
- Introduced in !223111 (merged)
- Discussion thread
- Relates to #589652 (closed)
Edited by 🤖 GitLab Bot 🤖