Commit 2504979a authored by Savas Vedova's avatar Savas Vedova

Rename scan policies tab to policies

The Scan Policies page under the Security & Compliance tab is being
converted to Policies page where we will display a list of policies
and add the ability to select the project to scan the policies from.
This commit simply renames the menu and the breadcrumb to reflect
the changes from the migration.
parent efbcd8cd
- breadcrumb_title _("Scan Policies")
- breadcrumb_title _("Policies")
- disable_security_policy_project = !can_update_security_orchestration_policy_project?(project)
#js-security-policies-list{ data: { assigned_policy_project: assigned_policy_project(project).to_json,
......
......@@ -149,7 +149,7 @@ module EE
end
::Sidebars::MenuItem.new(
title: _('Scan Policies'),
title: _('Policies'),
link: project_security_policy_path(context.project),
active_routes: { controller: ['projects/security/policies'] },
item_id: :scan_policies
......
......@@ -193,7 +193,7 @@ RSpec.describe Sidebars::Projects::Menus::SecurityComplianceMenu do
end
end
describe 'Scan Policies' do
describe 'Policies' do
let(:item_id) { :scan_policies }
context 'when feature flag :security_orchestration_policies_configuration is enabled' do
......@@ -202,11 +202,11 @@ RSpec.describe Sidebars::Projects::Menus::SecurityComplianceMenu do
stub_licensed_features(security_orchestration_policies: true)
end
context 'when user can access scan policies' do
context 'when user can access policies tab' do
it { is_expected.not_to be_nil }
end
context 'when user cannot access scan policies' do
context 'when user cannot access policies tab' do
let(:user) { nil }
it { is_expected.to be_nil }
......
......@@ -203,8 +203,8 @@ RSpec.describe 'layouts/nav/sidebar/_project' do
expect(rendered).to have_link('Threat Monitoring', href: project_threat_monitoring_path(project))
end
it 'scan policies link is visible' do
expect(rendered).to have_link('Scan Policies', href: project_security_policy_path(project))
it 'policies link is visible' do
expect(rendered).to have_link('Policies', href: project_security_policy_path(project))
end
it 'security configuration link is visible' do
......
......@@ -24855,6 +24855,9 @@ msgstr ""
msgid "Point to any links you like: documentation, built binaries, or other related materials. These can be internal or external links from your GitLab instance. Duplicate URLs are not allowed."
msgstr ""
msgid "Policies"
msgstr ""
msgid "Policy project doesn't exist"
msgstr ""
......@@ -28805,9 +28808,6 @@ msgstr ""
msgid "Saving project."
msgstr ""
msgid "Scan Policies"
msgstr ""
msgid "Scanner"
msgstr ""
......
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