Bump GLQL to 0.41.0
What does this MR do and why?
Bumps gitlab_query_language and @gitlab/query-language-rust to 0.41.0, integration work tracked in glql#237 (closed).
0.41.0 ships three GLQL changes; this MR adds the monolith side of each:
- glql!537 (merged) -
!=andnot inon analytics list filters. Docs only: operator tables on the seven analytics data source pages and thenot inrow in the operators table. - glql!539 (merged) - the Duo workflows
modeldimension becomes a catalog metadata object. Registers the new typename for chart labels, table cells and sorting, so it renders instead of a blank label or an empty link. Docs for the dimension. - glql!541 (merged) -
totalCount(event=...)on AI usage events. Updates the stat description and the docs, including theStringlist item kind in the schema API doc.
Known limitation: the engine still groups model by the raw model_used string, so several raw ids resolving to the same catalog name come back as separate rows sharing one label. In two-dimension charts those rows overwrite each other. Discussed in the thread below; everything involved is behind dap_impact_v1. A client-side stopgap that sums only additive metrics is coming in a separate MR; the engine merge on the resolved model name is the proper fix, tracked in #631132.
Not in this MR: DAP dashboard YAML changes, same split as the previous bumps.
References
- Integration work item: glql#237 (closed)
- Negation operators: glql!537 (merged)
- Model dimension metadata: glql!539 (merged)
totalCount(event=...): glql!541 (merged)- Overlapping
chart_data.jschange: !257748 (closed) - Unrecognised exclusion value validation follow-up: https://gitlab.com/gitlab-org/gitlab/-/issues/629846
- Previous bump (0.40.0): !257300 (merged)
Screenshots or screen recordings
Screenshots taken on GDK with npm 0.41.0 against local synthetic ClickHouse data (Duo workflow and AI usage event rows seeded locally; numbers are not real).
| GLQL | Screenshot |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Expected compile error: |
|
|
|
|
|
How to set up and validate locally
- Check out the branch,
bundle install,yarn install. - Enable the
dap_impact_v1feature flag in a Rails console (Feature.enable(:dap_impact_v1)), and have Duo workflow and AI usage event rows in ClickHouse for a group you can query. - Put the GLQL blocks above in a work item description, replacing the group paths, and check: the model table/chart labels show model names,
not in/!=rows are the complement of the unfiltered table,flowType not in ()renders the compile error, and thetotalCount(event=...)columns split the counts by event. GET /api/v4/glql/schemareports"version": "0.41.0"and listsnot inunderoperators.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.










