mirror of
https://github.com/grafana/grafana.git
synced 2026-08-18 17:15:08 -05:00
Chore: Rename dashboardUID to dashboardUIDs in search endpoint and up… (#52766)
* Chore: Rename dashboardUID to dashboardUIDs in search endpoint and update doc * make it backward compatible
This commit is contained in:
@@ -42,6 +42,10 @@ type SearchParams struct {
|
||||
// in:query
|
||||
// required: false
|
||||
DashboardIds []int64 `json:"dashboardIds"`
|
||||
// List of dashboard uid’s to search for
|
||||
// in:query
|
||||
// required: false
|
||||
DashboardUIDs []string `json:"dashboardUIDs"`
|
||||
// List of folder id’s to search in for dashboards
|
||||
// in:query
|
||||
// required: false
|
||||
|
||||
+5
-1
@@ -39,7 +39,11 @@ func (hs *HTTPServer) Search(c *models.ReqContext) response.Response {
|
||||
}
|
||||
}
|
||||
|
||||
dbUIDs := c.QueryStrings("dashboardUID")
|
||||
dbUIDs := c.QueryStrings("dashboardUIDs")
|
||||
if len(dbUIDs) == 0 {
|
||||
// To keep it for now backward compatible for grafana 9
|
||||
dbUIDs = c.QueryStrings("dashboardUID")
|
||||
}
|
||||
|
||||
folderIDs := make([]int64, 0)
|
||||
for _, id := range c.QueryStrings("folderIds") {
|
||||
|
||||
Reference in New Issue
Block a user