Merge button disabled after approved
Part of #1979 (closed)
Summary
This is a bug when approval_rules is enabled.
When a MR is just approved, the merge widget is updated accordingly. However the button is still disabled.
(before approval_rules is enabled, correct behavior)
(after approval_rules is enabled)
Note that the wording are correctly refreshed, it is only the button disabled status being wrong.
Steps to reproduce
- Find a project with ultimate plan.
- Enable its
approval_rulesfeature flag. - For approval_rules, add one approver and set approvals_required to be 1.
- Open a merge request, check that it is not approved yet
- Open that merge request in a second window, login as another project member, approve it
- Switch to first window, wait and observe the approval widget auto-updating itself.
Example Project
What is the current bug behavior?
"Merge" button is not clickable (disabled) once MR is approved
What is the expected correct behavior?
"Merge" button should be clickable (not disabled) once MR is approved
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise.)
Output of checks
(If you are reporting a bug on GitLab.com, write: This bug happens on GitLab.com)
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)


