Can't move epic into another epic
The bug is caused by the Epic depth validation code. It checks if max depth doesn't exceed 5 but it counts the number of descendants of the Epic to be added instead of depth.
Steps to reproduce
Generic steps to reproduce:
- Create Epic A
- Add 4 child epics to Epic A
- Create Epic B
- Add Epic A as a child to Epic B
What is the current bug behavior?
Nothing happens. The relationship is not created
A 404 is shown in the console.
What is the expected correct behavior?
Relationship should be created.
Output of checks
This bug happens on GitLab.com