sdk
sdk copied to clipboard
Dashboard search results should include what folder they belong to.
trafficstars
When searching for dashboards, the current API will include information about the dashboard if it belongs to one that is not the "default" folder. This is what the JSON looks like.
{
"id":1,
"uid":"<redacted>",
"title":"Jobs Dashboard",
"uri":"<redacted>",
"url":"/dashboards/d/<redacted>/jobs-dashboard",
"slug":"",
"type":"dash-db",
"tags":[],
"isStarred":false,
"folderId":34,
"folderUid":"<redacted>",
"folderTitle":"Test Folder",
"folderUrl":"/dashboards/dashboards/f/<redacted>/test-folder"
}
The FoundDashboard interface should probably include that information.
So why not continue with https://github.com/grafana-tools/sdk/pull/101 ? :)
Just wanted to make sure y'all were okay with the work before creating a PR with no context, I'll go ahead and reopen it!
This is fixed I think? Since #101 is now closed.