Chore: Remove deprecated dashboardId from panel query runner (#64786)

This commit is contained in:
Ryan McKinley
2023-04-14 16:50:10 -07:00
committed by GitHub
parent d43482a463
commit 39c04a8e36
27 changed files with 17 additions and 43 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ export class AnnotationChangeEvent extends BusEventWithPayload<Partial<Annotatio
// Loaded the first time a dashboard is loaded (not on every render)
export type DashboardLoadedEventPayload<T> = {
dashboardId: string;
dashboardId: string; // eeep, this should be UID
orgId?: number;
userId?: number;
grafanaVersion?: string;
@@ -514,8 +514,6 @@ export interface DataQueryRequest<TQuery extends DataQuery = DataQuery> {
rangeRaw?: RawTimeRange;
timeInfo?: string; // The query time description (blue text in the upper right)
panelId?: number;
/** @deprecate */
dashboardId?: number;
dashboardUID?: string;
publicDashboardAccessToken?: string;
@@ -15,7 +15,7 @@ export interface QueryRunnerOptions {
datasource: DataSourceRef | DataSourceApi | null;
queries: DataQuery[];
panelId?: number;
dashboardId?: number;
dashboardUID?: string;
timezone: TimeZone;
timeRange: TimeRange;
timeInfo?: string; // String description of time range for display
@@ -9,6 +9,7 @@ import { EchoEvent, EchoEventType } from '../services/EchoSrv';
* @public
*/
export interface DashboardInfo {
/** @deprecated -- use UID not internal ID */
dashboardId: number;
dashboardUid: string;
dashboardName: string;