Skip to content

Load dashboard list and single dashboard from selected repository

Tim Zallmann requested to merge tz-load-dashboards-from-other-repo-v1 into master

What does this MR do and why?

  1. Checks if for this project a custom dashboards project is set, if not showing an info alert box. Button links to the settings page
  2. If custom dashboards project is set, it loads file listing from .gitlab/dashboards/ and adds based on that items to the list
  3. Dashboard Detail loads the full file from .gitlab/dashboards/selected-dashboard-file.yml
  4. Based on the dashboard it loads if added the single visualization files from .gitlab/dashboards/product_analytics/visualizations/

Screenshots or screen recordings

Alert if no custom dashboard project is set:

Bildschirm_foto_2023-02-21_um_16.14.29

How to set up and validate locally

  1. Make sure you are on GitLab Ultimate
  2. You need to set up the Product Analytics DevKit if you haven't already done so. And follow the instructions on Connecting GDK to your devkit.
  3. Access /-/product_analytics/dashboards/ on an product analytics activated project like [GDK_HOST]/gitlab-org/gitlab-shell/-/product_analytics/dashboards/.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Robert Hunt

Merge request reports

Loading