From 1e84b6f0775486821f381886d5b5fc5eb23dd532 Mon Sep 17 00:00:00 2001 From: Marius Bobin <mbobin@gitlab.com> Date: Tue, 14 Nov 2023 13:51:20 +0000 Subject: [PATCH] Remove configure_sentry_in_application_settings feature flag This makes the sentry settings in the admin panel to appear by default Changelog: other --- .../application_settings/_sentry.html.haml | 8 +++++-- .../metrics_and_profiling.html.haml | 21 +++++++++---------- ...nfigure_sentry_in_application_settings.yml | 8 ------- locale/gitlab.pot | 3 +++ 4 files changed, 19 insertions(+), 21 deletions(-) delete mode 100644 config/feature_flags/development/configure_sentry_in_application_settings.yml diff --git a/app/views/admin/application_settings/_sentry.html.haml b/app/views/admin/application_settings/_sentry.html.haml index 7058a4b5cca35..962672376771b 100644 --- a/app/views/admin/application_settings/_sentry.html.haml +++ b/app/views/admin/application_settings/_sentry.html.haml @@ -1,8 +1,12 @@ = gitlab_ui_form_for @application_setting, url: metrics_and_profiling_admin_application_settings_path(anchor: 'js-sentry-settings'), html: { class: 'fieldset-form', id: 'sentry-settings' } do |f| = form_errors(@application_setting) - %fieldset.gl-text-secondary - = safe_format(s_('AdminSettings|GitLab uses the %{bold_start}Rails%{bold_end} and %{bold_start}Browser JavaScript%{bold_end} Sentry SDKs to send events to Sentry. For changes to Rails integration settings to take effect, restart GitLab.'), tag_pair(tag.b, :bold_start, :bold_end)) + - if Feature.disabled?(:enable_new_sentry_integration) || Feature.disabled?(:enable_new_sentry_clientside_integration, current_user) + %fieldset.gl-text-secondary + = safe_format(s_('AdminSettings|GitLab uses the %{bold_start}Rails%{bold_end} and %{bold_start}Browser JavaScript%{bold_end} Sentry SDKs to send events to Sentry. For changes to Rails integration settings to take effect, enable the %{code_start}enable_new_sentry_integration%{code_end} and %{code_start}enable_new_sentry_clientside_integration%{code_end} feature flags and restart GitLab.'), tag_pair(tag.b, :bold_start, :bold_end), tag_pair(tag.code, :code_start, :code_end)) + - else + %fieldset.gl-text-secondary + = safe_format(s_('AdminSettings|GitLab uses the %{bold_start}Rails%{bold_end} and %{bold_start}Browser JavaScript%{bold_end} Sentry SDKs to send events to Sentry. For changes to Rails integration settings to take effect, restart GitLab.'), tag_pair(tag.b, :bold_start, :bold_end)) %fieldset .form-group diff --git a/app/views/admin/application_settings/metrics_and_profiling.html.haml b/app/views/admin/application_settings/metrics_and_profiling.html.haml index 23f536bd6d425..efab8bc943262 100644 --- a/app/views/admin/application_settings/metrics_and_profiling.html.haml +++ b/app/views/admin/application_settings/metrics_and_profiling.html.haml @@ -52,14 +52,13 @@ .settings-content = render 'usage' -- if Feature.enabled?(:configure_sentry_in_application_settings) - %section.settings.as-sentry.no-animate#js-sentry-settings{ class: ('expanded' if expanded_by_default?) } - .settings-header - %h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only - = _('Sentry') - = render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do - = expanded_by_default? ? _('Collapse') : _('Expand') - %p.gl-text-secondary - = _('Configure Sentry integration for error tracking') - .settings-content - = render 'sentry' +%section.settings.as-sentry.no-animate#js-sentry-settings{ class: ('expanded' if expanded_by_default?) } + .settings-header + %h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only + = _('Sentry') + = render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do + = expanded_by_default? ? _('Collapse') : _('Expand') + %p.gl-text-secondary + = _('Configure Sentry integration for error tracking') + .settings-content + = render 'sentry' diff --git a/config/feature_flags/development/configure_sentry_in_application_settings.yml b/config/feature_flags/development/configure_sentry_in_application_settings.yml deleted file mode 100644 index 82b2261994b7f..0000000000000 --- a/config/feature_flags/development/configure_sentry_in_application_settings.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -name: configure_sentry_in_application_settings -introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/73381 -rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/344832 -milestone: '14.5' -type: development -group: group::pipeline execution -default_enabled: false diff --git a/locale/gitlab.pot b/locale/gitlab.pot index 7a488a1cdb970..fb4b6552a4133 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -3549,6 +3549,9 @@ msgstr "" msgid "AdminSettings|Git abuse rate limit" msgstr "" +msgid "AdminSettings|GitLab uses the %{bold_start}Rails%{bold_end} and %{bold_start}Browser JavaScript%{bold_end} Sentry SDKs to send events to Sentry. For changes to Rails integration settings to take effect, enable the %{code_start}enable_new_sentry_integration%{code_end} and %{code_start}enable_new_sentry_clientside_integration%{code_end} feature flags and restart GitLab." +msgstr "" + msgid "AdminSettings|GitLab uses the %{bold_start}Rails%{bold_end} and %{bold_start}Browser JavaScript%{bold_end} Sentry SDKs to send events to Sentry. For changes to Rails integration settings to take effect, restart GitLab." msgstr "" -- GitLab