summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-05-01 03:09:48 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-05-01 03:09:48 +0000
commit14763e2fc6a658e973d656280c5644ec38fa5b3a (patch)
treeb41ad6543546ad4edab48cf7ac8810d0201c849a
parent3795b229ab9d63846002ebb9b95073c3cbf5ab98 (diff)
downloadgitlab-ce-14763e2fc6a658e973d656280c5644ec38fa5b3a.tar.gz
Add latest changes from gitlab-org/gitlab@master
-rw-r--r--app/assets/javascripts/pages/projects/shared/permissions/components/settings_panel.vue8
-rw-r--r--app/controllers/projects_controller.rb4
-rw-r--r--changelogs/unreleased/jivanvl-remove-feature-flag-visibility-toggle-monitoring.yml5
-rw-r--r--spec/frontend/pages/projects/shared/permissions/components/settings_panel_spec.js3
4 files changed, 6 insertions, 14 deletions
diff --git a/app/assets/javascripts/pages/projects/shared/permissions/components/settings_panel.vue b/app/assets/javascripts/pages/projects/shared/permissions/components/settings_panel.vue
index e4edcc2448c..d507bca5f98 100644
--- a/app/assets/javascripts/pages/projects/shared/permissions/components/settings_panel.vue
+++ b/app/assets/javascripts/pages/projects/shared/permissions/components/settings_panel.vue
@@ -3,7 +3,6 @@ import { GlSprintf, GlLink } from '@gitlab/ui';
import settingsMixin from 'ee_else_ce/pages/projects/shared/permissions/mixins/settings_pannel_mixin';
import { s__ } from '~/locale';
-import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin';
import projectFeatureSetting from './project_feature_setting.vue';
import projectFeatureToggle from '~/vue_shared/components/toggle_button.vue';
import projectSettingRow from './project_setting_row.vue';
@@ -26,7 +25,7 @@ export default {
GlSprintf,
GlLink,
},
- mixins: [settingsMixin, glFeatureFlagsMixin()],
+ mixins: [settingsMixin],
props: {
currentSettings: {
@@ -200,10 +199,6 @@ export default {
'ProjectSettings|View and edit files in this project. Non-project members will only have read access',
);
},
-
- metricsDashboardVisibilitySwitchingAvailable() {
- return this.glFeatures.metricsDashboardVisibilitySwitchingAvailable;
- },
},
watch: {
@@ -480,7 +475,6 @@ export default {
/>
</project-setting-row>
<project-setting-row
- v-if="metricsDashboardVisibilitySwitchingAvailable"
ref="metrics-visibility-settings"
:label="__('Metrics Dashboard')"
:help-text="
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 92fc2d202f3..9875d38b683 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -36,10 +36,6 @@ class ProjectsController < Projects::ApplicationController
layout :determine_layout
- before_action do
- push_frontend_feature_flag(:metrics_dashboard_visibility_switching_available)
- end
-
def index
redirect_to(current_user ? root_path : explore_root_path)
end
diff --git a/changelogs/unreleased/jivanvl-remove-feature-flag-visibility-toggle-monitoring.yml b/changelogs/unreleased/jivanvl-remove-feature-flag-visibility-toggle-monitoring.yml
new file mode 100644
index 00000000000..dca7f86418f
--- /dev/null
+++ b/changelogs/unreleased/jivanvl-remove-feature-flag-visibility-toggle-monitoring.yml
@@ -0,0 +1,5 @@
+---
+title: Add metric dashboard public visibility toggle
+merge_request: 29718
+author:
+type: added
diff --git a/spec/frontend/pages/projects/shared/permissions/components/settings_panel_spec.js b/spec/frontend/pages/projects/shared/permissions/components/settings_panel_spec.js
index 369b1a93957..d79c59daa8d 100644
--- a/spec/frontend/pages/projects/shared/permissions/components/settings_panel_spec.js
+++ b/spec/frontend/pages/projects/shared/permissions/components/settings_panel_spec.js
@@ -57,9 +57,6 @@ describe('Settings Panel', () => {
return mountFn(settingsPanel, {
propsData,
- provide: {
- glFeatures: { metricsDashboardVisibilitySwitchingAvailable: true },
- },
});
};