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
34d7984b
Commit
34d7984b
authored
Oct 08, 2019
by
Vitali Tatarintev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change `start_at` label to Start time
Humanize a start_at label in Prometheus::AlertPresenter
parent
4055c2fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ee/app/presenters/projects/prometheus/alert_presenter.rb
ee/app/presenters/projects/prometheus/alert_presenter.rb
+1
-1
ee/spec/presenters/projects/prometheus/alert_presenter_spec.rb
...ec/presenters/projects/prometheus/alert_presenter_spec.rb
+3
-3
No files found.
ee/app/presenters/projects/prometheus/alert_presenter.rb
View file @
34d7984b
...
...
@@ -58,7 +58,7 @@ module Projects
def
metadata_list
metadata
=
[]
metadata
<<
list_item
(
'
starts_at
'
,
starts_at
)
if
starts_at
metadata
<<
list_item
(
'
Start time
'
,
starts_at
)
if
starts_at
metadata
<<
list_item
(
'full_query'
,
backtick
(
full_query
))
if
full_query
metadata
.
join
(
MARKDOWN_LINE_BREAK
)
...
...
ee/spec/presenters/projects/prometheus/alert_presenter_spec.rb
View file @
34d7984b
...
...
@@ -45,7 +45,7 @@ describe Projects::Prometheus::AlertPresenter do
<<~
MARKDOWN
.
chomp
#### Summary
**
starts_at
:**
#{
presenter
.
starts_at
}
**
Start time
:**
#{
presenter
.
starts_at
}
MARKDOWN
)
...
...
@@ -62,7 +62,7 @@ describe Projects::Prometheus::AlertPresenter do
<<~
MARKDOWN
.
chomp
#### Summary
**
starts_at
:**
#{
presenter
.
starts_at
}
**
Start time
:**
#{
presenter
.
starts_at
}
#### Alert Details
...
...
@@ -82,7 +82,7 @@ describe Projects::Prometheus::AlertPresenter do
<<~
MARKDOWN
.
chomp
#### Summary
**
starts_at
:**
#{
presenter
.
starts_at
}
\n
**full_query:** `query`
**
Start time
:**
#{
presenter
.
starts_at
}
\n
**full_query:** `query`
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