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
e373b2e9
Commit
e373b2e9
authored
Sep 27, 2018
by
Filipa Lacerda
Committed by
Phil Hughes
Sep 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes performance bar looking for a key in a undefined prop
parent
44fbb7a8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
13 deletions
+31
-13
app/assets/javascripts/performance_bar/components/performance_bar_app.vue
...cripts/performance_bar/components/performance_bar_app.vue
+1
-1
app/assets/javascripts/performance_bar/components/simple_metric.vue
.../javascripts/performance_bar/components/simple_metric.vue
+25
-12
changelogs/unreleased/51569-performance-bar.yml
changelogs/unreleased/51569-performance-bar.yml
+5
-0
No files found.
app/assets/javascripts/performance_bar/components/performance_bar_app.vue
View file @
e373b2e9
...
...
@@ -42,7 +42,7 @@ export default {
keys
:
[
'
feature
'
,
'
request
'
],
},
],
simpleMetrics
:
[
'
redis
'
,
'
sidekiq
'
],
simpleMetrics
:
[
'
redis
'
],
data
()
{
return
{
currentRequestId
:
''
};
},
...
...
app/assets/javascripts/performance_bar/components/simple_metric.vue
View file @
e373b2e9
<
script
>
export
default
{
props
:
{
currentRequest
:
{
type
:
Object
,
required
:
true
,
export
default
{
props
:
{
currentRequest
:
{
type
:
Object
,
required
:
true
,
},
metric
:
{
type
:
String
,
required
:
true
,
},
},
metric
:
{
type
:
String
,
required
:
true
,
computed
:
{
duration
()
{
return
(
this
.
currentRequest
.
details
[
this
.
metric
]
&&
this
.
currentRequest
.
details
[
this
.
metric
].
duration
);
},
calls
()
{
return
(
this
.
currentRequest
.
details
[
this
.
metric
]
&&
this
.
currentRequest
.
details
[
this
.
metric
].
calls
);
},
},
},
};
};
</
script
>
<
template
>
<div
...
...
@@ -21,9 +34,9 @@ export default {
v-if=
"currentRequest.details"
class=
"bold"
>
{{
currentRequest
.
details
[
metric
].
duration
}}
{{
duration
}}
/
{{
c
urrentRequest
.
details
[
metric
].
c
alls
}}
{{
calls
}}
</span>
{{
metric
}}
</div>
...
...
changelogs/unreleased/51569-performance-bar.yml
0 → 100644
View file @
e373b2e9
---
title
:
Fixes performance bar looking for a key in a undefined prop
merge_request
:
author
:
type
:
fixed
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