WIP: rough prototype of dashboard folders

Breaks some stuff like selected dash in the search result.
In dashboard search, if the user is not searching then the result is
returned as a tree structure. No ACL's or user group ux yet.
This commit is contained in:
Daniel Lee
2017-03-27 14:36:28 +02:00
parent d10d897d65
commit 1248728d7f
15 changed files with 306 additions and 45 deletions

View File

@@ -14,6 +14,7 @@ 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
@@ -35,6 +36,7 @@ func Search(c *middleware.Context) {
IsStarred: starred == "true",
OrgId: c.OrgId,
DashboardIds: dbids,
BrowseMode: browseMode == "true",
}
err := bus.Dispatch(&searchQuery)