-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Describe the bug
Owners are not ingested properly for dashboards in the grafana source. The fields folder_id and created_by are never set in the Dashboard model. The problem is that the code is looking under dashboard.meta (in the dashboard json) but meta is located at the same level as dashboard, https://grafana.com/docs/grafana/latest/developer-resources/api-reference/http-api/dashboard/#get-dashboard-by-uid, https://github.com/grafana/grafana/blob/4ab198b201acc42077463518d1697ed79a0ce77e/pkg/api/dashboard.go#L261C2-L264C3 so the code does not correctly ingest owners, will probably not map in dashboards correctly to folders either.
To Reproduce
Use the grafana source to some Grafana instance, where dashboards has been created manually.
Expected behavior
It should extract owners.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Linux debian 12.12
- Datahub version (HEAD, v1.4.0-rc1, v1.3.0.1, or any older version with grafana source)
Additional context
None