Skip to content

After creating a branch the message to invite to Create a new MR isn't shown until a second page load

Summary

We have a message that invites the user to create an MR for a newly pushed branch.

When creating a new branch, this warning skips the page load immediately after and appears on the page load after that.

Steps to reproduce

  1. Go to New Branch page
  2. Fill details out
  3. Submit
  4. Message isn't shown
  5. Reload the page
  6. Message is shown

What is the current bug behavior?

Message isn't shown.

Docs seem to reflect the intention that it should:

https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html#when-you-create-a-branch

What is the expected correct behavior?

Message is shown on the immediate page load after submission.

Possible fixes

Edited by 🤖 GitLab Bot 🤖