Frontend: Browser popup appears when updating CI yml content and submit a merge request together with pipeline editor
Summary
While trying to edit a project's CI yml file using Pipeline Editor tool, I wanted to try out this change in a new branch first so I selected option Start a new merge request with these changes
.
However, when I click Commit changes
, the editor shows unsaved changes popup instead of redirect me to create new merge request page.
Although this action did submit the change and push the new branch to the repo, I wasn't aware of this because of the popup alert as well as I wasn't able to create a merge request as expected.
Steps to reproduce
- In your project with an existing CI yml file, navigate to pipeline editor page (on left navbar CI/CD -> Editor)
- Attempt change the content of the CI yml file.
- Change target branch name to a new branch.
- Select start a new merge request check box below the target branch field.
- Click Commit changes button.
What is the current bug behavior?
An alert popup on the page that prevents redirection to create new merge request page.
What is the expected correct behavior?
- No alert popup
- The new branch is pushed to the repo
- The changes is committed to the new branch
- User is redirected to create new merge request page with the new branch
Output of checks
Can test against your GDK or on gitlab.com
Edited by Mark Nuzzo