Skip to content

"Create merge request and branch" from issue not correctly sets branch name input field after title alteration

Summary

Using the Create merge request and branch from an issue automatically creates an branch name in the input field. The predefined placeholder gets created on first access to the issue. After changing the title of the issue, the placeholder gets not updated to the new title. After a force reload of the issue, the placeholder will be updated to the current title of the issue.

I would expect an updated branch name. Probably nobody before me thought about changing the title and then creating branch and merge request without reloading the issue page.

Steps to reproduce

  1. Create issue in a repo
  2. Click on the Create merge request button
  3. Take a look at the recommended branch name
  4. Change the issue title
  5. Click in the Create merge request button
  6. Take a look at the recommended branch name which does not match the changed issue title

Example Project

https://gitlab.com/schwedenmut/branchName but also works on every issue currently on GitLab.com and self hosted.

What is the current bug behavior?

The recommended branch name will only be set on load of the issue page.

What is the expected correct behavior?

The recommended branch name should be loaded like the title asynchronous or get updated on the fly.

Relevant logs and/or screenshots

After title change After reload
Bildschirmfoto_2018-06-03_um_00.02.49 Bildschirmfoto_2018-06-03_um_00.02.57

Output of checks

This bug happens on GitLab.com

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

Edited by schwedenmut