Chore: removing folderId from plugindashboard service (#80570)

* removing folderId from plugindashboard service

* fixing linting
pull/80671/head
Timur Olzhabayev 1 year ago committed by GitHub
parent 55106c6ba8
commit c02d57c6a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      pkg/services/plugindashboards/plugindashboards.go
  2. 1
      public/app/features/datasources/components/DashboardsTable.test.tsx
  3. 1
      public/app/types/plugins.ts

@ -8,16 +8,14 @@ import (
// PluginDashboard plugin dashboard model..
type PluginDashboard struct {
UID string `json:"uid"`
PluginId string `json:"pluginId"`
Title string `json:"title"`
Imported bool `json:"imported"`
ImportedUri string `json:"importedUri"`
ImportedUrl string `json:"importedUrl"`
Slug string `json:"slug"`
DashboardId int64 `json:"dashboardId"`
// Deprecated: use FolderUID instead
FolderId int64 `json:"folderId"`
UID string `json:"uid"`
PluginId string `json:"pluginId"`
Title string `json:"title"`
Imported bool `json:"imported"`
ImportedUri string `json:"importedUri"`
ImportedUrl string `json:"importedUrl"`
Slug string `json:"slug"`
DashboardId int64 `json:"dashboardId"`
ImportedRevision int64 `json:"importedRevision"`
Revision int64 `json:"revision"`
Description string `json:"description"`

@ -25,7 +25,6 @@ describe('DashboardsTable', () => {
mockDashboard = {
dashboardId: 0,
description: '',
folderId: 0,
imported: false,
importedRevision: 0,
importedUri: '',

@ -3,7 +3,6 @@ import { PanelPlugin, PluginError, PluginMeta } from '@grafana/data';
export interface PluginDashboard {
dashboardId: number;
description: string;
folderId: number;
imported: boolean;
importedRevision: number;
importedUri: string;

Loading…
Cancel
Save