Skip to content

Fix checkbox to url mapping

What does this MR do and why?

Making the mechanism to map, URL param include_archived= to check box, more robust.

Screenshots or screen recordings

before and after
Screenshot_2023-08-01_at_12.40.36

Technical depth no visual change

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. This MR requires advanced search to be configured and enabled.
  2. Enable including archived projects FF
    echo 'Feature.enable(:search_projects_hide_archived)' | rails c
  3. Visit the following search page http://gdk.test:3000/search?scope=projects&search=*
  4. Toggle the "Include archived" checkbox

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

Edited by Tomas Bulva

Merge request reports

Loading