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
e198007e
Commit
e198007e
authored
Dec 09, 2020
by
Jose Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing check for analytics page
parent
d96ff9aa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
app/controllers/projects/pipelines_controller.rb
app/controllers/projects/pipelines_controller.rb
+4
-1
No files found.
app/controllers/projects/pipelines_controller.rb
View file @
e198007e
...
...
@@ -186,12 +186,15 @@ class Projects::PipelinesController < Projects::ApplicationController
def
charts
@charts
=
{}
@counts
=
{}
return
unless
Feature
.
enabled?
(
:graphql_pipeline_analytics
)
@charts
[
:week
]
=
Gitlab
::
Ci
::
Charts
::
WeekChart
.
new
(
project
)
@charts
[
:month
]
=
Gitlab
::
Ci
::
Charts
::
MonthChart
.
new
(
project
)
@charts
[
:year
]
=
Gitlab
::
Ci
::
Charts
::
YearChart
.
new
(
project
)
@charts
[
:pipeline_times
]
=
Gitlab
::
Ci
::
Charts
::
PipelineTime
.
new
(
project
)
@counts
=
{}
@counts
[
:total
]
=
@project
.
all_pipelines
.
count
(
:all
)
@counts
[
:success
]
=
@project
.
all_pipelines
.
success
.
count
(
:all
)
@counts
[
:failed
]
=
@project
.
all_pipelines
.
failed
.
count
(
:all
)
...
...
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