Skip to content

Labels as a facet - new component - part 4

Tomas Bulva requested to merge labels-as-a-facet-new-component into master

What does this MR do and why?

Related to #369541 (closed)

This MR is adding one small missing piece to connect the frontend part of the labels filter to the backend. Allows to filter the results based on the filter attr in the URL.

There is a follow-up issue for the labels in the search results #414415 (closed)

parts status
Labels as a facet - backend tweaks - part 1 merged
Labels as a facet - minor visual updates - part 2 merged
Labels as a facet - state update - part 3 merged
Labels as a facet - new component - part 4 in review 👈

Screenshots or screen recordings

before after
before-labels after-labels

How to set up and validate locally

  1. Enable ff
    Feature.enable(:search_issue_label_aggregation)
  2. set up gdk for elasticsearch
  3. enable advanced search and index everything
  4. Navigate to the search page http://gdk.test:3000/search?scope=issues&search=*
  5. You are able to filter issues using labels

Note: this MR contains only the backend changes so you will not be able to interact with this using the frontend (only through the URL params)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Tomas Bulva

Merge request reports