|
|
|
@ -14,6 +14,7 @@ func Search(c *middleware.Context) { |
|
|
|
tags := c.QueryStrings("tag") |
|
|
|
tags := c.QueryStrings("tag") |
|
|
|
starred := c.Query("starred") |
|
|
|
starred := c.Query("starred") |
|
|
|
limit := c.QueryInt("limit") |
|
|
|
limit := c.QueryInt("limit") |
|
|
|
|
|
|
|
dashboardType := c.Query("type") |
|
|
|
|
|
|
|
|
|
|
|
if limit == 0 { |
|
|
|
if limit == 0 { |
|
|
|
limit = 1000 |
|
|
|
limit = 1000 |
|
|
|
@ -35,6 +36,7 @@ func Search(c *middleware.Context) { |
|
|
|
IsStarred: starred == "true", |
|
|
|
IsStarred: starred == "true", |
|
|
|
OrgId: c.OrgId, |
|
|
|
OrgId: c.OrgId, |
|
|
|
DashboardIds: dbids, |
|
|
|
DashboardIds: dbids, |
|
|
|
|
|
|
|
Type: dashboardType, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
err := bus.Dispatch(&searchQuery) |
|
|
|
err := bus.Dispatch(&searchQuery) |
|
|
|
|