Skip to content

Add reset button for language filter

Tomas Bulva requested to merge 342651-add-reset-button into master

What does this MR do and why?

Add "Reset filters" button for the language filter.

This MR is a follow-up stemming from this comment: !107973 (comment 1264001729)

Screenshots or screen recordings

before after
Screenshot_2023-02-06_at_17.20.48 Screenshot_2023-02-07_at_14.14.49

How to set up and validate locally

  1. Checkout this branch
  2. Enable the language aggregation
    echo 'Feature.enable(:search_blobs_language_aggregation)' | rails c
  3. Setup the Advanced Search https://gitlab.com/gitlab-org/gitlab-development-kit/blob/main/doc/howto/elasticsearch.md
  4. Enable the Advanced Search http://gdk:3000/admin/application_settings/advanced_search
  5. Visit the search page http://gdk:3000/search
  6. Scope blobs (code item in the sidebar menu) are now only visible when a group or project is selected.
  7. Scope 'blobs' contains language filter

MR acceptance checklist

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

Related to #342651 (closed)

Edited by Tomas Bulva

Merge request reports