Commit d34d596e authored by Fernando's avatar Fernando

Update License Compliance docs url

* Update all known references

Add changelog

* Changelog for docs change

Move changelog

* Move changelog entry to ee directory
parent 921ccfd8
...@@ -98,7 +98,7 @@ module Projects ...@@ -98,7 +98,7 @@ module Projects
project_licenses_endpoint: project_licenses_path(@project, detected: true, format: :json), project_licenses_endpoint: project_licenses_path(@project, detected: true, format: :json),
read_license_policies_endpoint: expose_path(api_v4_projects_managed_licenses_path(id: @project.id)), read_license_policies_endpoint: expose_path(api_v4_projects_managed_licenses_path(id: @project.id)),
write_license_policies_endpoint: write_license_policies_endpoint, write_license_policies_endpoint: write_license_policies_endpoint,
documentation_path: help_page_path('user/application_security/license_compliance/index'), documentation_path: help_page_path('user/compliance/license_compliance/index'),
empty_state_svg_path: helpers.image_path('illustrations/Dependency-list-empty-state.svg') empty_state_svg_path: helpers.image_path('illustrations/Dependency-list-empty-state.svg')
} }
end end
......
...@@ -20,8 +20,8 @@ module Projects ...@@ -20,8 +20,8 @@ module Projects
container_scanning: 'user/application_security/container_scanning/index', container_scanning: 'user/application_security/container_scanning/index',
dast: 'user/application_security/dast/index', dast: 'user/application_security/dast/index',
dependency_scanning: 'user/application_security/dependency_scanning/index', dependency_scanning: 'user/application_security/dependency_scanning/index',
license_management: 'user/application_security/license_compliance/index', license_management: 'user/compliance/license_compliance/index',
license_scanning: 'user/application_security/license_compliance/index', license_scanning: 'user/compliance/license_compliance/index',
sast: 'user/application_security/sast/index' sast: 'user/application_security/sast/index'
}.freeze }.freeze
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
.settings-header .settings-header
%h4 %h4
= s_('LicenseCompliance|License Compliance') = s_('LicenseCompliance|License Compliance')
= link_to icon('question-circle'), help_page_path('user/application_security/license_compliance/index.md'), target: '_blank', rel: 'noopener noreferrer' = link_to icon('question-circle'), help_page_path('user/compliance/license_compliance/index'), target: '_blank', rel: 'noopener noreferrer'
%button.btn.js-settings-toggle{ type: 'button' } %button.btn.js-settings-toggle{ type: 'button' }
= expanded ? _('Collapse') : _('Expand') = expanded ? _('Collapse') : _('Expand')
%p %p
......
---
title: Update License Compliance docs url
merge_request: 28853
author:
type: changed
...@@ -32,7 +32,7 @@ describe Projects::LicensesController do ...@@ -32,7 +32,7 @@ describe Projects::LicensesController do
expect(licenses_app_data[:project_licenses_endpoint]).to eql(controller.helpers.project_licenses_path(project, detected: true, format: :json)) expect(licenses_app_data[:project_licenses_endpoint]).to eql(controller.helpers.project_licenses_path(project, detected: true, format: :json))
expect(licenses_app_data[:read_license_policies_endpoint]).to eql(controller.helpers.api_v4_projects_managed_licenses_path(id: project.id)) expect(licenses_app_data[:read_license_policies_endpoint]).to eql(controller.helpers.api_v4_projects_managed_licenses_path(id: project.id))
expect(licenses_app_data[:write_license_policies_endpoint]).to eql('') expect(licenses_app_data[:write_license_policies_endpoint]).to eql('')
expect(licenses_app_data[:documentation_path]).to eql(help_page_path('user/application_security/license_compliance/index')) expect(licenses_app_data[:documentation_path]).to eql(help_page_path('user/compliance/license_compliance/index'))
expect(licenses_app_data[:empty_state_svg_path]).to eql(controller.helpers.image_path('illustrations/Dependency-list-empty-state.svg')) expect(licenses_app_data[:empty_state_svg_path]).to eql(controller.helpers.image_path('illustrations/Dependency-list-empty-state.svg'))
end end
...@@ -261,7 +261,7 @@ describe Projects::LicensesController do ...@@ -261,7 +261,7 @@ describe Projects::LicensesController do
expect(licenses_app_data[:project_licenses_endpoint]).to eql(controller.helpers.project_licenses_path(project, detected: true, format: :json)) expect(licenses_app_data[:project_licenses_endpoint]).to eql(controller.helpers.project_licenses_path(project, detected: true, format: :json))
expect(licenses_app_data[:read_license_policies_endpoint]).to eql(controller.helpers.api_v4_projects_managed_licenses_path(id: project.id)) expect(licenses_app_data[:read_license_policies_endpoint]).to eql(controller.helpers.api_v4_projects_managed_licenses_path(id: project.id))
expect(licenses_app_data[:write_license_policies_endpoint]).to eql(controller.helpers.api_v4_projects_managed_licenses_path(id: project.id)) expect(licenses_app_data[:write_license_policies_endpoint]).to eql(controller.helpers.api_v4_projects_managed_licenses_path(id: project.id))
expect(licenses_app_data[:documentation_path]).to eql(help_page_path('user/application_security/license_compliance/index')) expect(licenses_app_data[:documentation_path]).to eql(help_page_path('user/compliance/license_compliance/index'))
expect(licenses_app_data[:empty_state_svg_path]).to eql(controller.helpers.image_path('illustrations/Dependency-list-empty-state.svg')) expect(licenses_app_data[:empty_state_svg_path]).to eql(controller.helpers.image_path('illustrations/Dependency-list-empty-state.svg'))
end end
end end
......
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