+
+ You have legacy alert rules in this dashboard that were deprecated in Grafana 11 and are no longer supported.
+
+
+ Refer to{' '}
+
+ our documentation
+ {' '}
+ on how to migrate legacy alert rules and how to import and export using Grafana Alerting.
+
+
+
+ String(panel.id)} pageSize={5} />
+
+
+ );
+}
diff --git a/public/app/features/alerting/unified/utils/misc.ts b/public/app/features/alerting/unified/utils/misc.ts
index e8e1a7e8dcb..2fd698b3796 100644
--- a/public/app/features/alerting/unified/utils/misc.ts
+++ b/public/app/features/alerting/unified/utils/misc.ts
@@ -157,8 +157,15 @@ export function makeDashboardLink(dashboardUID: string): string {
return createUrl(`/d/${encodeURIComponent(dashboardUID)}`);
}
-export function makePanelLink(dashboardUID: string, panelId: string): string {
- return createUrl(`/d/${encodeURIComponent(dashboardUID)}`, { viewPanel: panelId });
+type PanelLinkParams = {
+ viewPanel?: string;
+ editPanel?: string;
+ tab?: 'alert' | 'transform' | 'query';
+};
+
+export function makePanelLink(dashboardUID: string, panelId: string, queryParams: PanelLinkParams = {}): string {
+ const panelParams = new URLSearchParams(queryParams);
+ return createUrl(`/d/${encodeURIComponent(dashboardUID)}`, panelParams);
}
// keep retrying fn if it's error passes shouldRetry(error) and timeout has not elapsed yet
diff --git a/public/app/features/dashboard-scene/settings/JsonModelEditView.tsx b/public/app/features/dashboard-scene/settings/JsonModelEditView.tsx
index bd7626b5d61..819d5704ad5 100644
--- a/public/app/features/dashboard-scene/settings/JsonModelEditView.tsx
+++ b/public/app/features/dashboard-scene/settings/JsonModelEditView.tsx
@@ -3,9 +3,11 @@ import React from 'react';
import { GrafanaTheme2, PageLayoutType } from '@grafana/data';
import { SceneComponentProps, SceneObjectBase, sceneUtils } from '@grafana/scenes';
+import { Dashboard } from '@grafana/schema';
import { Button, CodeEditor, useStyles2 } from '@grafana/ui';
import { Page } from 'app/core/components/Page/Page';
import { Trans } from 'app/core/internationalization';
+import LegacyAlertsDeprecationNotice from 'app/features/alerting/unified/integration/LegacyAlertsDeprecationNotice';
import { getPrettyJSON } from 'app/features/inspector/utils/utils';
import { DashboardDTO } from 'app/types';
@@ -38,9 +40,13 @@ export class JsonModelEditView extends SceneObjectBase