If you base MR 2 on top of MR 1, merging MR 1 first (and auto-deleting branch for MR 1) causes a 500 error
To reproduce
- Create a merge request (MR1) from a branch (branch-1)
- Create another merge request (MR2) from another branch (branch-2)
- Change MR2 to have a merge target of branch-1 (aka, MR2 builds on MR1)
- Merge MR1 (and check the box that cleans up branch-1)
- Try to view MR2
Expected
You'd see MR2 and all it's detail, maybe with a message "This was based on MR1 and branch-1 which no longer exists. To work with this MR, update the target branch to a valid one."
(Or maybe just automatically update the target branch to be the one that branch-1 was merged into, in this case, master).
Actual
500 error :'(
/cc @kleyow