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
5de47766
Commit
5de47766
authored
Jul 10, 2019
by
Małgorzata Ksionek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add attribute reader to project level
parent
198df06f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
app/models/cycle_analytics/project_level.rb
app/models/cycle_analytics/project_level.rb
+7
-4
No files found.
app/models/cycle_analytics/project_level.rb
View file @
5de47766
...
@@ -2,19 +2,22 @@
...
@@ -2,19 +2,22 @@
module
CycleAnalytics
module
CycleAnalytics
class
ProjectLevel
<
Base
class
ProjectLevel
<
Base
attr_reader
:project
,
:options
def
initialize
(
project
,
options
:)
def
initialize
(
project
,
options
:)
@project
=
project
@project
=
project
@options
=
options
@options
=
options
end
end
def
summary
def
summary
@summary
||=
::
Gitlab
::
CycleAnalytics
::
StageSummary
.
new
(
@
project
,
@summary
||=
::
Gitlab
::
CycleAnalytics
::
StageSummary
.
new
(
project
,
from:
@
options
[
:from
],
from:
options
[
:from
],
current_user:
@
options
[
:current_user
]).
data
current_user:
options
[
:current_user
]).
data
end
end
def
permissions
(
user
:)
def
permissions
(
user
:)
Gitlab
::
CycleAnalytics
::
Permissions
.
get
(
user:
user
,
project:
@
project
)
Gitlab
::
CycleAnalytics
::
Permissions
.
get
(
user:
user
,
project:
project
)
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