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
bab37ef9
Commit
bab37ef9
authored
Nov 04, 2021
by
Martin Wortschack
Committed by
Robert Speicher
Nov 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[VSA] Make lead time tile a link to lead time chart
parent
941c22d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
ee/lib/gitlab/analytics/cycle_analytics/summary/lead_time.rb
ee/lib/gitlab/analytics/cycle_analytics/summary/lead_time.rb
+16
-0
No files found.
ee/lib/gitlab/analytics/cycle_analytics/summary/lead_time.rb
View file @
bab37ef9
...
@@ -16,6 +16,22 @@ module Gitlab
...
@@ -16,6 +16,22 @@ module Gitlab
def
end_event_identifier
def
end_event_identifier
:issue_closed
:issue_closed
end
end
def
links
helpers
=
Gitlab
::
Routing
.
url_helpers
dashboard_link
=
if
@stage
.
parent
.
is_a?
(
::
Group
)
helpers
.
group_analytics_ci_cd_analytics_path
(
@stage
.
parent
,
tab:
'lead-time'
)
else
helpers
.
charts_project_pipelines_path
(
@stage
.
parent
,
chart:
'lead-time'
)
end
[
{
"name"
=>
_
(
'Lead Time'
),
"url"
=>
dashboard_link
,
"label"
=>
s_
(
'ValueStreamAnalytics|Dashboard'
)
},
{
"name"
=>
_
(
'Lead Time'
),
"url"
=>
helpers
.
help_page_path
(
'user/analytics/index'
,
anchor:
'definitions'
),
"docs_link"
=>
true
,
"label"
=>
s_
(
'ValueStreamAnalytics|Go to docs'
)
}
]
end
end
end
end
end
end
end
...
...
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