Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/admin/application_settings_controller.rb')
-rw-r--r--app/controllers/admin/application_settings_controller.rb11
1 files changed, 5 insertions, 6 deletions
diff --git a/app/controllers/admin/application_settings_controller.rb b/app/controllers/admin/application_settings_controller.rb
index ef6af01eff6..ce71730cef1 100644
--- a/app/controllers/admin/application_settings_controller.rb
+++ b/app/controllers/admin/application_settings_controller.rb
@@ -8,7 +8,7 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController
# ApplicationSetting model uses Gitlab::ThreadMemoryCache for caching and the
# cache might be stale immediately after an update.
# https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/30233
- before_action :set_application_setting
+ before_action :set_application_setting, except: :integrations
before_action :whitelist_query_limiting, only: [:usage_data]
@@ -29,12 +29,11 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController
def integrations
if Feature.enabled?(:instance_level_integrations)
- # TODO: Update this with actual integrations
- # To be fixed with https://gitlab.com/gitlab-org/gitlab/-/issues/199388
- @integrations = []
+ @integrations = Service.find_or_initialize_instances.sort_by(&:title)
+ else
+ set_application_setting
+ perform_update if submitted?
end
-
- perform_update if submitted?
end
def update