Fix cannot merge icon showing in dropdown when user can merge

Merged Paul Slaughter requested to merge 31386-fix-cannot-merge-icon-is-wrong into master

What does this MR do?

This MR fixes the cannot merge tooltip showing for users who can merge.

What was the cause of the bug?

The root cause of this bug was that the information for the assigned users did not come from the AJAX response, but instead was inserted through some hidden HAML elements. This was noticeable whenever assigned users were not part of the users AJAX response.

Screenshots

Before (on master) After (in this MR)
20190919_sidebar_assignee_bug 20190919_sidebar_assignee_fix

Does this MR meet the acceptance criteria?

Conformity

References

Edited by 🤖 GitLab Bot 🤖