Sort columns in a GLQL table
What is GLQL?
GitLab Query Language (GLQL) is an experimental attempt to create a single query language for all of GitLab which allows for filtering and embedding content from anywhere in the product.
See epic summary: &14767 for more details.
What does this MR do and why?
Sort columns in a GLQL table
Include a new module sorter
to allow sorting columns in a GLQL table column. Related to #477308 (closed).
This is a multi-MR effort to split !161632 (closed) into smaller MRs.
- Push feature flag :glql_integration to frontend (!161942 - merged)
- Render GLQL blocks into a simple list of issues (!162050 - merged)
- Render GLQL blocks into a table of issues (!162081 - merged)
- Add field presenters for GLQL: bool, time, heal... (!162951 - merged)
- Add presenters for GitLab objects for GLQL (!163056 - merged)
-
Sort columns in a GLQL table (!163317 - merged) (
👈 This MR) - Allow resizing table columns in a GLQL table (!163306 - merged)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screen Recording 2024-08-21 at 00.26.15.mov
How to set up and validate locally
- Enable feature flag
:glql_integration
. - In a project, assign yourself some issues.
- Create a wiki page with the following content:
```glql
---
display: table
fields: title, assignees, labels, milestone, epic
---
assignee = currentUser()
```
- Save the page.
- Once the GLQL table is rendered, click any header cell to sort the column by that field in ascending order.
- Click again to sort in descending order.
Edited by Himanshu Kapoor