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
d3121501
Commit
d3121501
authored
Dec 21, 2018
by
Felipe Artur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add changelog and improve query
parent
abf8f4ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
ee/app/models/ee/epic.rb
ee/app/models/ee/epic.rb
+2
-3
ee/changelogs/unreleased/issue_8744.yml
ee/changelogs/unreleased/issue_8744.yml
+5
-0
No files found.
ee/app/models/ee/epic.rb
View file @
d3121501
...
...
@@ -179,13 +179,12 @@ module EE
FROM epics
WHERE parent_id IS NOT NULL
UNION
SELECT e.id, d.depth+ 1
SELECT e.id, d.depth
+ 1
FROM epics e
INNER JOIN descendants d
ON e.parent_id = d.id
)
SELECT MAX(depth) as deepest_level
FROM descendants
SELECT MAX(depth) as deepest_level FROM descendants
SQL
)
...
...
ee/changelogs/unreleased/issue_8744.yml
0 → 100644
View file @
d3121501
---
title
:
Gather deepest epic relationship data
merge_request
:
author
:
type
:
other
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