Skip to content

Display "None" when a collection is empty

Himanshu Kapoor requested to merge himkp-glql-collection-empty into master

What does this MR do and why?

Display "None" when a collection is empty

In a GLQL rendered table, when a collection, like a list of labels or a list of assignees is empty, display "None" there using the null presenter.

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

Before After
image image

How to set up and validate locally

  1. Enable feature flag :glql_integration.
  2. In a project, assign yourself some issues.
  3. Create a wiki page with the following content:
```glql
---
display: table
fields: title, assignees, labels, milestone, epic
---
assignee = none and label = none
```
  1. Save the page.
  2. Notice that the assignees and labels column show "None" instead of being empty.
Edited by Himanshu Kapoor

Merge request reports

Loading