Skip to content

Remember user preference for showing labels on work item widgets

What does this MR do and why?

Remember what the user's preference was for showing or hiding labels on

  • Work item tree (children)
  • Work item Relationships (Linked items)
  • Work item links (Task list on an issue)

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

Area Before After
Task list on issue Screen_Recording_2024-08-23_at_17.41.38 Screen_Recording_2024-08-23_at_17.40.38
Work item "Child items" list Screen_Recording_2024-08-23_at_17.42.22 Screen_Recording_2024-08-23_at_17.38.46
Work item "Linked items" list Screen_Recording_2024-08-23_at_17.43.04 Screen_Recording_2024-08-23_at_17.39.41

How to set up and validate locally

  1. Check out this branch
  2. Visit an issue in the GDK that has tasks (or add tasks to an existing issue)
  3. Make sure that at least one of the tasks has a label applied to it
  4. On the issue page, in the "Child items" section turn off the "Show labels" preference
  5. The labels will stop showing
  6. Refresh the page. The labels will not show once the page loads, and the "Show labels" preference toggle will be in the off position.
  7. Toggle the "Show labels" setting back on and refresh the page
  8. You will see that the labels show again on page load.
  9. Ensure you are using the epic work items feature flag
  10. Navigate to or create an epic that has at least one child epic
  11. Make sure that at least one of the child epics has a label applied to it
  12. In the "Child items" of the epic that has at least one child item with a label on it, toggle off the "Show labels" preference
  13. The labels will stop showing on child items
  14. Refresh the page. The labels will not show once the page loads, and the "Show labels" preference toggle will be in the off position.
  15. Toggle the "Show labels" setting back on and refresh the page
  16. You will see that the labels show again on page load.
  17. Link an issue that has at least one label applied to it to the epic in the "Linked items" section
  18. Turn off the "Show labels" preference for the Linked items section
  19. Refresh the page. The labels will not show once the page loads, and the "Show labels" preference toggle will be in the off position.
  20. Toggle the "Show labels" setting back on and refresh the page
  21. You will see that the labels show again on page load.

Related to #478618 (closed), #469616

Edited by Chad Lavimoniere

Merge request reports