Commit 9685f862 authored by Phil Hughes's avatar Phil Hughes

Merge branch 'sy-surface-runbook-in-alert' into 'master'

Show runbook in alert detail view

See merge request gitlab-org/gitlab!39477
parents 1d9f9121 9ba9b397
......@@ -324,6 +324,12 @@ export default {
</div>
<div class="gl-pl-2" data-testid="service">{{ alert.service }}</div>
</div>
<div v-if="alert.runbook" class="gl-my-5 gl-display-flex">
<div class="bold gl-w-13 gl-text-right gl-pr-3">
{{ s__('AlertManagement|Runbook') }}:
</div>
<div class="gl-pl-2" data-testid="runbook">{{ alert.runbook }}</div>
</div>
<template>
<div v-if="alert.notes.nodes" class="issuable-discussion py-5">
<ul class="notes main-notes-list timeline">
......
......@@ -11,6 +11,7 @@ fragment AlertDetailItem on AlertManagementAlert {
updatedAt
endedAt
details
runbook
todos {
nodes {
id
......
---
title: Show runbook for alert in detail view
merge_request: 39477
author:
type: added
......@@ -2180,6 +2180,9 @@ msgstr ""
msgid "AlertManagement|Resolved"
msgstr ""
msgid "AlertManagement|Runbook"
msgstr ""
msgid "AlertManagement|Service"
msgstr ""
......
......@@ -118,6 +118,8 @@ describe('AlertDetails', () => {
${'monitoringTool'} | ${undefined} | ${false}
${'service'} | ${'Prometheus'} | ${true}
${'service'} | ${undefined} | ${false}
${'runbook'} | ${undefined} | ${false}
${'runbook'} | ${'run.com'} | ${true}
`(`$desc`, ({ field, data, isShown }) => {
beforeEach(() => {
mountComponent({ data: { alert: { ...mockAlert, [field]: data } } });
......
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