WIP: remove browse mode for dashboard search

Dashboard folders included in all searches. If a dashboard matches
a search and has a parent folder then the parent folder is appended
to the search result. A hierarchy is then returned in the result
with child dashboards under their parent folders.
This commit is contained in:
Daniel Lee
2017-06-12 15:49:09 +02:00
parent f1e1da39e3
commit 53d11d50fc
9 changed files with 44 additions and 52 deletions
-2
View File
@@ -14,7 +14,6 @@ func Search(c *middleware.Context) {
tags := c.QueryStrings("tag")
starred := c.Query("starred")
limit := c.QueryInt("limit")
browseMode := c.Query("browseMode")
if limit == 0 {
limit = 1000
@@ -36,7 +35,6 @@ func Search(c *middleware.Context) {
IsStarred: starred == "true",
OrgId: c.OrgId,
DashboardIds: dbids,
BrowseMode: browseMode == "true",
}
err := bus.Dispatch(&searchQuery)