"Create Merge Request" button displayed in activity when MR already exists

In a user's activity feed, IMO we shouldn't display "Create Merge Request" for a new branch when an MR already exists

Screen_Shot_2017-07-19_at_5.51.45_PM

As checking for whether an MR already exists or not can be expensive, we can just have a "Merge Request" link that will redirect to an existing MR or the create MR form as appropriate, like we do on the branches page:

image

Edited Jul 24, 2017 by Sean McGivern
Assignee Loading
Time tracking Loading