From 82afe8228f9c7fa2aa921b877cc10c6b54f4544a Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Wed, 24 May 2017 18:51:07 +0200 Subject: [PATCH] WIP: add parentid to getdashboard query result --- pkg/api/dashboard.go | 1 + pkg/api/dtos/dashboard.go | 1 + 2 files changed, 2 insertions(+) diff --git a/pkg/api/dashboard.go b/pkg/api/dashboard.go index b4511c916a8..1809c6ca486 100644 --- a/pkg/api/dashboard.go +++ b/pkg/api/dashboard.go @@ -81,6 +81,7 @@ func GetDashboard(c *middleware.Context) { Version: dash.Version, HasAcl: dash.HasAcl, IsFolder: dash.IsFolder, + ParentId: dash.ParentId, }, } diff --git a/pkg/api/dtos/dashboard.go b/pkg/api/dtos/dashboard.go index e0ff44ff016..5fbba1c9844 100644 --- a/pkg/api/dtos/dashboard.go +++ b/pkg/api/dtos/dashboard.go @@ -23,6 +23,7 @@ type DashboardMeta struct { Version int `json:"version"` HasAcl bool `json:"hasAcl"` IsFolder bool `json:"isFolder"` + ParentId int64 `json:"parentId"` } type DashboardFullWithMeta struct {