Skip to content

Fix custom dashboards not using default branch

What does this MR do and why?

This MR resolves an issue with the custom dashboards & visualization designer where it could not save change unless the default branch was main. When the default branch was not main the commits API would return You can only create or edit files when you are on a branch and the user would be stuck.

Related issue: Analytics dashboards - Update the customDashboa... (#415922 - closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

No visual changes.

How to set up and validate locally

  1. You need a GitLab Ultimate license.
  2. Follow the instructions to setup Product Analytics on your GDK.
  3. Create a new project in a group.
  4. Create a new branch at Project > Code > Branches.
  5. Change the default branch to the new branch at Project > Settings > Repository > Branch defaults.
  6. View analytics dashboards at Project > Analytics > Analytics dashboards.
  7. Follow the alert to enable custom dashboards.
  8. At Project > Analytics > Analytics dashboards click on the set up button to onboard Product Analytics.
  9. At Project > Analytics > Analytics dashboards click on New dashboard to create and save a new dashboard.
  10. At Project > Analytics > Analytics dashboards click on Visualization designer to create and save a new visualization.
Edited by Jiaan Louw

Merge request reports