Skip to content

Add frontend archived filter for zoekt code search

What does this MR do and why?

Related to #411833 (closed)

Add frontend for archived filter for zoekt code search

behind a wip type ff search_add_archived_filter_to_zoekt

backend in !146696 (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

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
image image
image

How to set up and validate locally

  1. enable and configure zoekt for a namespace

  2. enable search_add_archived_filter_to_zoekt feature flag

    echo "Feature.enable(:search_add_archived_filter_to_zoekt)" | gdk rails c
  3. make sure the namespace has at least one archived project with searchable text. Since i created new projects with the default README, I searched for "To make it easy for you to get started with GitLab"

  4. do a group code search (ensure that Zoekt code search is enabled in your user preferences)

  5. verify the include archived checkbox shows up and by default is unchecked

  6. verify archived results not returned

  7. select include archived and re-run the search

  8. verify archived results are returned

Edited by Terri Chu

Merge request reports