Add service ping for exact code search
What does this MR do and why?
Add a metric class ZoektSearchEnabledMetric
to track if a self managed customer has zoekt enabled in its application setting.
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 |
---|---|
![]() |
![]() |
How to set up and validate locally
zoekt_search_enabled
is true
When setting Run the following command in rails console
ApplicationSetting.last.update(zoekt_settings: {"zoekt_search_enabled"=>true, "zoekt_indexing_paused"=>false, "zoekt_indexing_enabled"=>true})
Now run the following script on terminal
bin/rake gitlab:usage_data:dump_sql_in_json | jq '.settings'
Notice that zoekt_search_enabled
is true
in the JSON
zoekt_search_enabled
is false
When setting Run the following command in rails console
ApplicationSetting.last.update(zoekt_settings: {"zoekt_search_enabled"=>false, "zoekt_indexing_paused"=>false, "zoekt_indexing_enabled"=>true})
Now run the following script on terminal
bin/rake gitlab:usage_data:dump_sql_in_json | jq '.settings'
Notice that zoekt_search_enabled
is false
in the JSON
Related to #461686 (closed)
Edited by Ravi Kumar