Commit d3121501 authored by Felipe Artur's avatar Felipe Artur

Add changelog and improve query

parent abf8f4ae
...@@ -179,13 +179,12 @@ module EE ...@@ -179,13 +179,12 @@ module EE
FROM epics FROM epics
WHERE parent_id IS NOT NULL WHERE parent_id IS NOT NULL
UNION UNION
SELECT e.id, d.depth+ 1 SELECT e.id, d.depth + 1
FROM epics e FROM epics e
INNER JOIN descendants d INNER JOIN descendants d
ON e.parent_id = d.id ON e.parent_id = d.id
) )
SELECT MAX(depth) as deepest_level SELECT MAX(depth) as deepest_level FROM descendants
FROM descendants
SQL 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