Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
parent
baf5b5480a
commit
ded741a939
3 changed files with 9 additions and 4 deletions
|
@ -5,8 +5,8 @@ module Projects::AlertManagementHelper
|
|||
{
|
||||
'project-path' => project.full_path,
|
||||
'enable-alert-management-path' => project_settings_operations_path(project, anchor: 'js-alert-management-settings'),
|
||||
'alerts-help-url' => help_page_url('operations/incident_management/index.md'),
|
||||
'populating-alerts-help-url' => help_page_url('operations/incident_management/index.md', anchor: 'enable-alert-management'),
|
||||
'alerts-help-url' => help_page_url('operations/incident_management/alerts.md'),
|
||||
'populating-alerts-help-url' => help_page_url('operations/incident_management/integrations.md', anchor: 'configuration'),
|
||||
'empty-alert-svg-path' => image_path('illustrations/alert-management-empty-state.svg'),
|
||||
'user-can-enable-alert-management' => can?(current_user, :admin_operations, project).to_s,
|
||||
'alert-management-enabled' => alert_management_enabled?(project).to_s,
|
||||
|
|
5
changelogs/unreleased/sy-update-alerts-docs-urls.yml
Normal file
5
changelogs/unreleased/sy-update-alerts-docs-urls.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Link to more helpful docs from alert management pages
|
||||
merge_request: 51665
|
||||
author:
|
||||
type: changed
|
|
@ -28,8 +28,8 @@ RSpec.describe Projects::AlertManagementHelper do
|
|||
expect(helper.alert_management_data(current_user, project)).to match(
|
||||
'project-path' => project_path,
|
||||
'enable-alert-management-path' => setting_path,
|
||||
'alerts-help-url' => 'http://test.host/help/operations/incident_management/index.md',
|
||||
'populating-alerts-help-url' => 'http://test.host/help/operations/incident_management/index.md#enable-alert-management',
|
||||
'alerts-help-url' => 'http://test.host/help/operations/incident_management/alerts.md',
|
||||
'populating-alerts-help-url' => 'http://test.host/help/operations/incident_management/integrations.md#configuration',
|
||||
'empty-alert-svg-path' => match_asset_path('/assets/illustrations/alert-management-empty-state.svg'),
|
||||
'user-can-enable-alert-management' => 'true',
|
||||
'alert-management-enabled' => 'false',
|
||||
|
|
Loading…
Reference in a new issue