Skip to content

Exclude archive projects by default behind a feature flag

Madelein van Niekerk requested to merge 18262-feature-flag-default-hiding into master

What does this MR do and why?

Puts the functionality introduced in !121981 (merged) behind a feature flag. This is so that we can wait until the frontend is completed.

How to set up and validate locally

  1. Do a basic search (add &basic_search=true to the url) for an existing project and verify that the project is returned in search results
    1. Without selecting a group/project
    2. With a group selected
  2. Archive the project
  3. Do the same basic searches and verify that the project is not returned
  4. Unarchive the project
  5. Do an advanced search (make sure Elasticsearch is setup) for the project and verify that the project is returned
    1. Without selecting a group/project
    2. With a group selected
  6. Archive the project
  7. Do the same advanced searches and verify that the project is not returned
  8. Disable the feature flag: Feature.disable(:search_projects_hide_archived) and test that archived projects are returned for both basic and Advanced search.

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 #18262 (closed)

Edited by Madelein van Niekerk

Merge request reports