From 035b724725728c870e3898a1236993ee221b4d20 Mon Sep 17 00:00:00 2001 From: Marcus Efraimsson Date: Wed, 31 Jan 2018 17:25:14 +0100 Subject: [PATCH] dashboards: remove slug property in dashboard search responses Removes slug property in dashboard search responses since this property isn't needed anymore and it haven't been released to any stable release. --- pkg/services/search/models.go | 1 - pkg/services/sqlstore/dashboard.go | 1 - public/app/core/services/search_srv.ts | 2 -- 3 files changed, 4 deletions(-) diff --git a/pkg/services/search/models.go b/pkg/services/search/models.go index c543befc454..f5d87b1f5c8 100644 --- a/pkg/services/search/models.go +++ b/pkg/services/search/models.go @@ -17,7 +17,6 @@ type Hit struct { Title string `json:"title"` Uri string `json:"uri"` Url string `json:"url"` - Slug string `json:"slug"` Type HitType `json:"type"` Tags []string `json:"tags"` IsStarred bool `json:"isStarred"` diff --git a/pkg/services/sqlstore/dashboard.go b/pkg/services/sqlstore/dashboard.go index a23f07cd895..c59b9574b74 100644 --- a/pkg/services/sqlstore/dashboard.go +++ b/pkg/services/sqlstore/dashboard.go @@ -270,7 +270,6 @@ func makeQueryResult(query *search.FindPersistedDashboardsQuery, res []Dashboard Title: item.Title, Uri: "db/" + item.Slug, Url: url, - Slug: item.Slug, Type: getHitType(item), FolderId: item.FolderId, FolderTitle: item.FolderTitle, diff --git a/public/app/core/services/search_srv.ts b/public/app/core/services/search_srv.ts index 9092b30fd4b..cb9862f8cce 100644 --- a/public/app/core/services/search_srv.ts +++ b/public/app/core/services/search_srv.ts @@ -134,7 +134,6 @@ export class SearchSrv { items: [], toggle: this.toggleFolder.bind(this), url: hit.url, - slug: hit.slug, icon: 'fa fa-folder', score: _.keys(sections).length, }; @@ -154,7 +153,6 @@ export class SearchSrv { uid: hit.uid, title: hit.folderTitle, url: hit.url, - slug: hit.slug, items: [], icon: 'fa fa-folder-open', toggle: this.toggleFolder.bind(this),