diff --git a/ee/app/helpers/admin/application_settings_helper.rb b/ee/app/helpers/admin/application_settings_helper.rb index e0aaf0285343fed83f77a721dd91bce461c51b05..06f90f8505871e9072b8fec8e44f362ca79c7ecd 100644 --- a/ee/app/helpers/admin/application_settings_helper.rb +++ b/ee/app/helpers/admin/application_settings_helper.rb @@ -7,7 +7,7 @@ module ApplicationSettingsHelper delegate :duo_availability, :instance_level_ai_beta_features_enabled, :enabled_expanded_logging, - to: :'Gitlab::CurrentSettings.current_application_settings' + to: :current_application_settings def ai_powered_testing_agreement safe_format( @@ -101,6 +101,13 @@ def ai_settings_helper_data private + def current_application_settings + # clear cached settings so that duo_availability shows up correctly + Gitlab::CurrentSettings.expire_current_application_settings + + Gitlab::CurrentSettings.current_application_settings + end + # rubocop:disable Gitlab/DocumentationLinks/HardcodedUrl # We want to link SaaS docs for flexibility for every URL related to Code Suggestions on Self Managed. # We expect to update docs often during the Beta and we want to point user to the most up to date information.