Commit db42a531 authored by Kamil Trzciński's avatar Kamil Trzciński

Merge branch '6954_remove_feature_flag' into 'master'

Remove FF for group security dashboard history

See merge request gitlab-org/gitlab-ee!8853
parents 0cd97628 21eb2cd3
......@@ -79,9 +79,6 @@ export default {
html: true,
};
},
chartFlagEnabled() {
return gon.features && gon.features.groupSecurityDashboardHistory;
},
},
created() {
this.setVulnerabilitiesEndpoint(this.vulnerabilitiesEndpoint);
......@@ -119,10 +116,8 @@ export default {
</span>
</template>
<vulnerability-count-list />
<template v-if="chartFlagEnabled">
<h4 class="my-4">{{ __('Vulnerability Chart') }}</h4>
<vulnerability-chart />
</template>
<h4 class="my-4">{{ __('Vulnerability Chart') }}</h4>
<vulnerability-chart />
<h4 class="my-4">{{ __('Vulnerability List') }}</h4>
<security-dashboard-table
:dashboard-documentation="dashboardDocumentation"
......
# frozen_string_literal: true
class Groups::Security::DashboardController < Groups::Security::ApplicationController
layout 'group'
before_action do
push_frontend_feature_flag(:group_security_dashboard_history, group)
end
end
......@@ -2,8 +2,6 @@
class Groups::Security::VulnerabilitiesController < Groups::Security::ApplicationController
HISTORY_RANGE = 3.months
before_action :check_group_security_dashboard_history_feature_flag!, only: [:history]
def index
@vulnerabilities = group.latest_vulnerabilities
.sast # FIXME: workaround until https://gitlab.com/gitlab-org/gitlab-ee/issues/6240
......@@ -35,8 +33,4 @@ class Groups::Security::VulnerabilitiesController < Groups::Security::Applicatio
end
end
end
def check_group_security_dashboard_history_feature_flag!
render_404 unless ::Feature.enabled?(:group_security_dashboard_history, group, default_enabled: true)
end
end
- breadcrumb_title _("Security Dashboard")
- page_title _("Security Dashboard")
- vulnerabilities_history_endpoint = Feature.enabled?(:group_security_dashboard_history, @group) ? history_group_security_vulnerabilities_path(@group) : ''
#js-group-security-dashboard{ data: { vulnerabilities_endpoint: group_security_vulnerabilities_path(@group),
vulnerabilities_summary_endpoint: summary_group_security_vulnerabilities_path(@group),
vulnerabilities_history_endpoint: vulnerabilities_history_endpoint,
vulnerabilities_history_endpoint: history_group_security_vulnerabilities_path(@group),
vulnerability_feedback_help_path: help_page_path("user/project/merge_requests/index", anchor: "interacting-with-security-reports-ultimate"),
empty_state_svg_path: image_path('illustrations/security-dashboard-empty-state.svg'),
dashboard_documentation: help_page_path('user/group/security_dashboard/index') } }
......@@ -230,19 +230,6 @@ describe Groups::Security::VulnerabilitiesController do
end
end
context 'when group security dashboard history feature flag is disabled' do
before do
stub_licensed_features(security_dashboard: true)
stub_feature_flags(group_security_dashboard_history: false)
group.add_developer(user)
end
it 'returns 404' do
subject
expect(response).to have_gitlab_http_status(404)
end
end
context 'when security dashboard feature is enabled' do
before do
stub_licensed_features(security_dashboard: true)
......
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