Return configured project dashboards when set
requested to merge 394847-update-dashboard-configuration-fetching-to-work-from-configured-dashboard-repository into master
What does this MR do and why?
This updates the dashbards
GraphQL query to use a configured project repository when set, instead of locally defined dashboards
How to set up and validate locally
Query
query {
project(fullPath: "gitlab-org/gitlab-shell") {
name
productAnalyticsDashboards {
edges {
node {
title
}
}
}
}
}
.gitlab/product_analytics/dashboards/A.yml
---
title: A Custom Dashboard
.gitlab/product_analytics/dashboards/B.yml
---
title: B Custom Dashboard
- Enable product analytics feature flags (
project_analytics_dashboards_page
andproduct_analytics_internal_preview
) - Create two projects, A and B
- Add local dashboards to the A repository at
.gitlab/product_analytics/dashboards
- Add other dashboards to B at the same location
- Go to A >> Settings >> Analytics Dashboards and set the project there to B
- A GraphQL query for A's dashboards should now show B's dashboards instead (i.e.
B Custom Dashboard
)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #394847 (closed)
Edited by Allen Cook