Issues with merging draft merge request
Summary
There are a couple of issue currently happening when setting an MR as draft:
First: The page doesn't autoload when an MR is marked as draft. We have to manually refresh the page for getting it updated.
Second: When marking an MR as ready. It throws an error Something went wrong
and if you merge that MR without refreshing the page, then the merge commit will have draft in its title.
Steps to reproduce
- Create an MR.
- Mark it as draft.
- Refresh the page. This is the first issue where the title doesn't get updated if you don't refresh the page.
- Mark the MR ready to merge. At this time, it will throw the error.
- Second issue: Without refreshing the page just merge the MR
- Check the merge commits and it will have draft in it's title.
Example Project
What is the current bug behavior?
What is the expected correct behavior?
It should work without refreshing the page.
Relevant logs and/or screenshots
Attached above
Output of checks
/label reproduced on GitLab.com
Workaround
- Refresh the page after you mark the MR as draft and refresh the page once you mark the MR as ready to merge.
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)