Exclude archive projects by default behind a feature flag
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
- 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- Without selecting a group/project
- With a group selected
- Archive the project
- Do the same basic searches and verify that the project is not returned
- Unarchive the project
- Do an advanced search (make sure Elasticsearch is setup) for the project and verify that the project is returned
- Without selecting a group/project
- With a group selected
- Archive the project
- Do the same advanced searches and verify that the project is not returned
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #18262 (closed)
Edited by Madelein van Niekerk