When a user with `developer` access tries to duplicate a dashboard and save to master, they receive a confusing error message.
Summary
When a user with developer
access tries to duplicate a dashboard and save to master, they receive a confusing error message.
Steps to reproduce
- Go to a project in which you are a
developer
, which has Metrics available. - Visit the metrics dashboard (Operations -> Metrics).
- Click on the "Dashboard" dropdown.
- Click on "duplicate" dashboard.
- Attempt to duplicate the dashboard by saving to
master
.
Example Project
The monitoring demo project:
- https://gitlab.com/gitlab-org/monitor/tanuki-inc
https://gitlab.com/gitlab-org/monitor/tanuki-inc/-/environments/1118134/metrics
What is the current bug behavior?
The error message is confusing/irrelevant.
What is the expected correct behavior?
The error message should be clear, in explaining to the user, that they should have access to modifying the default branch, and they they may choose another branch.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Possible fixes
Possibly, an update on the error message prompting the user to creating another branch or opening a merged request is enough.
Edited by Miguel Rincon