Commit d3121501 authored by Felipe Artur's avatar Felipe Artur

Add changelog and improve query

parent abf8f4ae
......@@ -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
)
......
---
title: Gather deepest epic relationship data
merge_request:
author:
type: other
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment