Show link to existing MR on the branch list instead of not-working "create merge request" button
Problem to solve
At the moment, the branch-list view under Repository->Branches
is not aware of already existing merge-requests, so no matter if we have a pending MR or not, there is always a Merge Request
CTA. When we click the button and try to create a MR, we will end up with an error like "There is already an open MR for this branch"
This is unnecessary, we could know on the branch-list view that wont work.
Intended users
Developers / Release-Managers
Further details
Proposal
Instead of showing a CTA that wont lead anywhere, we should show a link to the pending Merge-Request
Permissions and Security
Not sure if the security scope for creating MRs and showing them is the same, but it sounds likely
Documentation
Testing
I dont see any risks for this, as we are basically just dropping a faulty path. The affection to the product would be that it becomes better, increases the usability. I dont think cross-browser testing would be needed.
What does success look like, and how can we measure that?
Success would be if the link is shown if a MR exists and does lead to the MR-details page.