Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
47544c54
Commit
47544c54
authored
Sep 03, 2020
by
Tristan Read
Committed by
Rémy Coutable
Sep 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Summary heading from auto-generated incidents
parent
afec9e8d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
24 deletions
+0
-24
app/presenters/alert_management/alert_presenter.rb
app/presenters/alert_management/alert_presenter.rb
+0
-2
app/presenters/projects/prometheus/alert_presenter.rb
app/presenters/projects/prometheus/alert_presenter.rb
+0
-2
spec/presenters/alert_management/alert_presenter_spec.rb
spec/presenters/alert_management/alert_presenter_spec.rb
+0
-2
spec/presenters/alert_management/prometheus_alert_presenter_spec.rb
...nters/alert_management/prometheus_alert_presenter_spec.rb
+0
-2
spec/presenters/projects/prometheus/alert_presenter_spec.rb
spec/presenters/projects/prometheus/alert_presenter_spec.rb
+0
-16
No files found.
app/presenters/alert_management/alert_presenter.rb
View file @
47544c54
...
...
@@ -31,8 +31,6 @@ module AlertManagement
def
issue_summary_markdown
<<~
MARKDOWN
.
chomp
#### Summary
#{
metadata_list
}
#{
alert_details
}#{
metric_embed_for_alert
}
MARKDOWN
...
...
app/presenters/projects/prometheus/alert_presenter.rb
View file @
47544c54
...
...
@@ -51,8 +51,6 @@ module Projects
def
issue_summary_markdown
<<~
MARKDOWN
.
chomp
#### Summary
#{
metadata_list
}
#{
alert_details
}#{
metric_embed_for_alert
}
MARKDOWN
...
...
spec/presenters/alert_management/alert_presenter_spec.rb
View file @
47544c54
...
...
@@ -27,8 +27,6 @@ RSpec.describe AlertManagement::AlertPresenter do
it
'returns an alert issue description'
do
expect
(
presenter
.
issue_description
).
to
eq
(
<<~
MARKDOWN
.
chomp
#### Summary
**Start time:**
#{
presenter
.
start_time
}#{
markdown_line_break
}
**Severity:**
#{
presenter
.
severity
}#{
markdown_line_break
}
**Service:**
#{
alert
.
service
}#{
markdown_line_break
}
...
...
spec/presenters/alert_management/prometheus_alert_presenter_spec.rb
View file @
47544c54
...
...
@@ -30,8 +30,6 @@ RSpec.describe AlertManagement::PrometheusAlertPresenter do
it
'returns an alert issue description'
do
expect
(
presenter
.
issue_description
).
to
eq
(
<<~
MARKDOWN
.
chomp
#### Summary
**Start time:**
#{
presenter
.
start_time
}#{
markdown_line_break
}
**Severity:**
#{
presenter
.
severity
}#{
markdown_line_break
}
**full_query:** `vector(1)`
#{
markdown_line_break
}
...
...
spec/presenters/projects/prometheus/alert_presenter_spec.rb
View file @
47544c54
...
...
@@ -63,8 +63,6 @@ RSpec.describe Projects::Prometheus::AlertPresenter do
it
do
is_expected
.
to
eq
(
<<~
MARKDOWN
.
chomp
#### Summary
**Start time:**
#{
presenter
.
start_time
}
MARKDOWN
...
...
@@ -80,8 +78,6 @@ RSpec.describe Projects::Prometheus::AlertPresenter do
it
do
is_expected
.
to
eq
(
<<~
MARKDOWN
.
chomp
#### Summary
**Start time:**
#{
presenter
.
start_time
}
#### Alert Details
...
...
@@ -101,8 +97,6 @@ RSpec.describe Projects::Prometheus::AlertPresenter do
it
do
is_expected
.
to
eq
(
<<~
MARKDOWN
.
chomp
#### Summary
**Start time:**
#{
presenter
.
start_time
}#{
markdown_line_break
}
**full_query:** `query`
...
...
@@ -129,8 +123,6 @@ RSpec.describe Projects::Prometheus::AlertPresenter do
it
do
is_expected
.
to
eq
(
<<~
MARKDOWN
.
chomp
#### Summary
**Start time:**
#{
presenter
.
start_time
}#{
markdown_line_break
}
**Service:** service_name
#{
markdown_line_break
}
**Monitoring tool:** monitoring_tool_name
#{
markdown_line_break
}
...
...
@@ -151,8 +143,6 @@ RSpec.describe Projects::Prometheus::AlertPresenter do
it
do
is_expected
.
to
eq
(
<<~
MARKDOWN
.
chomp
#### Summary
**Start time:**
#{
presenter
.
start_time
}#{
markdown_line_break
}
**Hosts:** http://localhost:3000
...
...
@@ -168,8 +158,6 @@ RSpec.describe Projects::Prometheus::AlertPresenter do
shared_examples_for
'markdown with metrics embed'
do
let
(
:expected_markdown
)
do
<<~
MARKDOWN
.
chomp
#### Summary
**Start time:**
#{
presenter
.
start_time
}#{
markdown_line_break
}
**full_query:** `avg(metric) > 1.0`
...
...
@@ -222,8 +210,6 @@ RSpec.describe Projects::Prometheus::AlertPresenter do
context
'when not enough information is present for an embed'
do
let
(
:expected_markdown
)
do
<<~
MARKDOWN
.
chomp
#### Summary
**Start time:**
#{
presenter
.
start_time
}#{
markdown_line_break
}
**full_query:** `avg(metric) > 1.0`
...
...
@@ -249,8 +235,6 @@ RSpec.describe Projects::Prometheus::AlertPresenter do
context
'without full_query'
do
let
(
:expected_markdown
)
do
<<~
MARKDOWN
.
chomp
#### Summary
**Start time:**
#{
presenter
.
start_time
}
MARKDOWN
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment