Skip to content

Fix Elastic Search settings form localization

What does this MR do and why?

This fixes the use of translation helpers. A namespaced translation was translated using the default translation helper leaving the namespace in the translation

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. Have a GitLab Premium license added
  2. Visit https://3000-[...].ws-eu67.gitpod.io/admin/application_settings/advanced_search (or locally, Admin Area > Settings > Advanced Search)
Workaround if you don't have a GitLab Premium license:
diff --git a/ee/app/models/license.rb b/ee/app/models/license.rb
index 3c6a0b4d64a0..8b222f0d85a4 100644
--- a/ee/app/models/license.rb
+++ b/ee/app/models/license.rb
@@ -68,7 +68,7 @@ def block_changes?
     end
 
     def feature_available?(feature)
-      !!current&.feature_available?(feature)
+      true
     end
 
     def reset_curren

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports