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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
80dfe40e
Commit
80dfe40e
authored
Jul 04, 2019
by
Małgorzata Ksionek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update controllers method calls
parent
6f6805ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/controllers/projects/cycle_analytics/events_controller.rb
...controllers/projects/cycle_analytics/events_controller.rb
+1
-1
app/controllers/projects/cycle_analytics_controller.rb
app/controllers/projects/cycle_analytics_controller.rb
+1
-1
No files found.
app/controllers/projects/cycle_analytics/events_controller.rb
View file @
80dfe40e
...
@@ -50,7 +50,7 @@ module Projects
...
@@ -50,7 +50,7 @@ module Projects
end
end
def
cycle_analytics
def
cycle_analytics
@cycle_analytics
||=
::
CycleAnalytics
.
new
(
project
,
options
(
events_params
))
@cycle_analytics
||=
::
CycleAnalytics
::
ProjectLevel
.
new
(
project:
project
,
options:
options
(
events_params
))
end
end
def
events_params
def
events_params
...
...
app/controllers/projects/cycle_analytics_controller.rb
View file @
80dfe40e
...
@@ -9,7 +9,7 @@ class Projects::CycleAnalyticsController < Projects::ApplicationController
...
@@ -9,7 +9,7 @@ class Projects::CycleAnalyticsController < Projects::ApplicationController
before_action
:authorize_read_cycle_analytics!
before_action
:authorize_read_cycle_analytics!
def
show
def
show
@cycle_analytics
=
::
CycleAnalytics
.
new
(
@project
,
options
(
cycle_analytics_params
))
@cycle_analytics
=
::
CycleAnalytics
::
ProjectLevel
.
new
(
project:
@project
,
options:
options
(
cycle_analytics_params
))
@cycle_analytics_no_data
=
@cycle_analytics
.
no_stats?
@cycle_analytics_no_data
=
@cycle_analytics
.
no_stats?
...
...
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