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
0584442d
Commit
0584442d
authored
Dec 31, 2018
by
Felipe Artur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adress review comments
parent
a6995970
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ee/app/models/ee/epic.rb
ee/app/models/ee/epic.rb
+1
-1
ee/lib/ee/gitlab/usage_data.rb
ee/lib/ee/gitlab/usage_data.rb
+1
-1
No files found.
ee/app/models/ee/epic.rb
View file @
0584442d
...
...
@@ -169,7 +169,7 @@ module EE
# epic2 - parent: epic1
# Returns: 2
def
deepest_relationship_level
return
unless
::
G
itlab
::
Database
.
postgresql
?
return
unless
::
G
roup
.
supports_nested_objects
?
result
=
ActiveRecord
::
Base
.
connection
.
execute
(
...
...
ee/lib/ee/gitlab/usage_data.rb
View file @
0584442d
...
...
@@ -106,7 +106,7 @@ module EE
}).
merge
(
service_desk_counts
).
merge
(
security_products_usage
)
# MySql does not support recursive queries so we can't retrieve epics relationship depth
if
::
G
itlab
::
Database
.
postgresql
?
if
::
G
roup
.
supports_nested_objects
?
usage_data
[
:counts
]
=
usage_data
[
:counts
].
merge
(
epics_deepest_relationship_level
)
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