WIP: dashboard search by type (folder or dash)

This commit is contained in:
Daniel Lee
2017-06-12 15:49:09 +02:00
parent b4576edc90
commit 68b9342de3
4 changed files with 13 additions and 0 deletions
+2
View File
@@ -14,6 +14,7 @@ func Search(c *middleware.Context) {
tags := c.QueryStrings("tag")
starred := c.Query("starred")
limit := c.QueryInt("limit")
dashboardType := c.Query("type")
if limit == 0 {
limit = 1000
@@ -35,6 +36,7 @@ func Search(c *middleware.Context) {
IsStarred: starred == "true",
OrgId: c.OrgId,
DashboardIds: dbids,
Type: dashboardType,
}
err := bus.Dispatch(&searchQuery)