Skip to content

Draft: Replace zoekt feature_flags with application_settings

What does this MR do and why?

Added the condition of zoekt_settings from the application_settings. Change the default to true for the feature_flags index_code_with_zoekt and search_code_with_zoekt. Add a new page to toggle the Zoket settings

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

New page: Screenshot_2024-04-09_at_23.39.57

Before After
Screenshot_2024-04-09_at_23.45.36 after

How to set up and validate locally

  1. Make sure Zoekt is set up.
  2. Run the gdk locally and navigate to /admin. You might need to restart the gdk. Notice that there is a new item Exact Code Search in the Settings
  3. Open a rails console and verify that checkbox values match with the ApplicationSetting.last.zoekt_settings
  4. Check/Uncheck the options and verify the changes reflected in the record ApplicationSetting.last.zoekt_settings

Related to #389765

#452340

Edited by Ravi Kumar

Merge request reports