Commit 13ea2833 authored by Justin Ho's avatar Justin Ho

Remove the ff instance_level_integrations completely

- Set as enabled since we are launching the feature.
- Add  changelog with new feature.
parent 009e4b63
...@@ -32,12 +32,7 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController ...@@ -32,12 +32,7 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController
end end
def integrations def integrations
if Feature.enabled?(:instance_level_integrations) @integrations = Service.find_or_initialize_instances.sort_by(&:title)
@integrations = Service.find_or_initialize_instances.sort_by(&:title)
else
set_application_setting
perform_update if submitted?
end
end end
def update def update
......
...@@ -12,7 +12,7 @@ class Admin::IntegrationsController < Admin::ApplicationController ...@@ -12,7 +12,7 @@ class Admin::IntegrationsController < Admin::ApplicationController
end end
def integrations_enabled? def integrations_enabled?
Feature.enabled?(:instance_level_integrations) true
end end
def scoped_edit_integration_path(integration) def scoped_edit_integration_path(integration)
......
...@@ -116,11 +116,10 @@ ...@@ -116,11 +116,10 @@
.settings-content .settings-content
#js-maintenance-mode-settings #js-maintenance-mode-settings
- if Feature.enabled?(:instance_level_integrations) = render_if_exists 'admin/application_settings/elasticsearch_form'
= render_if_exists 'admin/application_settings/elasticsearch_form' = render 'admin/application_settings/plantuml'
= render 'admin/application_settings/plantuml' = render 'admin/application_settings/sourcegraph'
= render 'admin/application_settings/sourcegraph' = render_if_exists 'admin/application_settings/slack'
= render_if_exists 'admin/application_settings/slack' = render 'admin/application_settings/third_party_offers'
= render 'admin/application_settings/third_party_offers' = render 'admin/application_settings/snowplow'
= render 'admin/application_settings/snowplow' = render 'admin/application_settings/eks'
= render 'admin/application_settings/eks'
...@@ -2,29 +2,19 @@ ...@@ -2,29 +2,19 @@
- page_title _('Integrations') - page_title _('Integrations')
- @content_class = 'limit-container-width' unless fluid_layout - @content_class = 'limit-container-width' unless fluid_layout
- if Feature.enabled?(:instance_level_integrations) - if show_admin_integrations_moved?
- if show_admin_integrations_moved? .gl-alert.gl-alert-info.js-admin-integrations-moved.mt-3{ role: 'alert', data: { feature_id: UserCalloutsHelper::ADMIN_INTEGRATIONS_MOVED, dismiss_endpoint: user_callouts_path } }
.gl-alert.gl-alert-info.js-admin-integrations-moved.mt-3{ role: 'alert', data: { feature_id: UserCalloutsHelper::ADMIN_INTEGRATIONS_MOVED, dismiss_endpoint: user_callouts_path } } = sprite_icon('information-o', css_class: 'gl-icon gl-alert-icon gl-alert-icon-no-title')
= sprite_icon('information-o', css_class: 'gl-icon gl-alert-icon gl-alert-icon-no-title') %button.js-close.gl-alert-dismiss{ type: 'button', 'aria-label' => _('Dismiss') }
%button.js-close.gl-alert-dismiss{ type: 'button', 'aria-label' => _('Dismiss') } = sprite_icon('close', css_class: 'gl-icon')
= sprite_icon('close', css_class: 'gl-icon') .gl-alert-body
.gl-alert-body %h4.gl-alert-title= s_('AdminSettings|Some settings have moved')
%h4.gl-alert-title= s_('AdminSettings|Some settings have moved') = html_escape_once(s_('AdminSettings|Elasticsearch, PlantUML, Slack application, Third party offers, Snowplow, Amazon EKS have moved to Settings &gt; General.')).html_safe
= html_escape_once(s_('AdminSettings|Elasticsearch, PlantUML, Slack application, Third party offers, Snowplow, Amazon EKS have moved to Settings &gt; General.')).html_safe .gl-alert-actions
.gl-alert-actions = link_to s_('AdminSettings|Go to General Settings'), general_admin_application_settings_path, class: 'btn gl-alert-action btn-info new-gl-button'
= link_to s_('AdminSettings|Go to General Settings'), general_admin_application_settings_path, class: 'btn gl-alert-action btn-info new-gl-button'
%h4= s_('AdminSettings|Apply integration settings to all Projects') %h4= s_('AdminSettings|Apply integration settings to all Projects')
%p %p
= s_('AdminSettings|Integrations configured here will automatically apply to all projects on this instance.') = s_('AdminSettings|Integrations configured here will automatically apply to all projects on this instance.')
= link_to _('Learn more'), '#' = link_to _('Learn more'), '#'
= render 'shared/integrations/index', integrations: @integrations = render 'shared/integrations/index', integrations: @integrations
- else
= render_if_exists 'admin/application_settings/elasticsearch_form'
= render 'admin/application_settings/plantuml'
= render 'admin/application_settings/sourcegraph'
= render_if_exists 'admin/application_settings/slack'
= render 'admin/application_settings/third_party_offers'
= render 'admin/application_settings/snowplow'
= render 'admin/application_settings/eks'
---
title: Move old integrations to Settings > General and introduce instance-level integrations
merge_request: 38488
author:
type: added
...@@ -10,16 +10,6 @@ RSpec.describe Admin::IntegrationsController do ...@@ -10,16 +10,6 @@ RSpec.describe Admin::IntegrationsController do
end end
describe '#edit' do describe '#edit' do
context 'when instance_level_integrations not enabled' do
it 'returns not_found' do
stub_feature_flags(instance_level_integrations: false)
get :edit, params: { id: Service.available_services_names.sample }
expect(response).to have_gitlab_http_status(:not_found)
end
end
Service.available_services_names.each do |integration_name| Service.available_services_names.each do |integration_name|
context "#{integration_name}" do context "#{integration_name}" do
it 'successfully displays the template' do it 'successfully displays the template' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment