Dashboards: Add alert and panel icon for dashboards that use Angular plugins (#70951)

* Add angularDeprecationUI feature toggle

* Add angular notice in angular panel header

* Show angular notice for angular datasources

* Show angular notice at the top of the dashboard

* Changed Angular deprecation messages

* Fix angular deprecation alert displayed for new dashboards

* re-generate feature flags

* Removed unnecessary changes

* Add angular deprecation dashboard notice tests

* Add test for angular deprecation panel icon

* Update test suite name

* Moved isAngularDatasourcePlugin to app/features/plugins/angularDeprecation

* Add hasAngularPlugins to DashboardModel

* re-generate feature toggles

* Fix tests

* Fix data source spelling

* Fix typing issues

* Extract plugin type into a separate function

* re-generate feature flags

* reportInteraction on angular dashboard notice dismiss

* re-generate feature flags

* Re-generate feature flags

* lint
This commit is contained in:
Giuseppe Guerra
2023-08-29 16:05:47 +02:00
committed by GitHub
parent 6b9f51c209
commit bf4d025012
13 changed files with 269 additions and 3 deletions
+7
View File
@@ -708,5 +708,12 @@ var (
Owner: grafanaAlertingSquad,
RequiresRestart: true,
},
{
Name: "angularDeprecationUI",
Description: "Display new Angular deprecation-related UI features",
Stage: FeatureStageExperimental,
FrontendOnly: true,
Owner: grafanaPluginsPlatformSquad,
},
}
)
+1
View File
@@ -101,3 +101,4 @@ configurableSchedulerTick,experimental,@grafana/alerting-squad,false,false,true,
influxdbSqlSupport,experimental,@grafana/observability-metrics,false,false,false,false
noBasicRole,experimental,@grafana/grafana-authnz-team,false,false,true,true
alertingNoDataErrorExecution,privatePreview,@grafana/alerting-squad,false,false,true,false
angularDeprecationUI,experimental,@grafana/plugins-platform-backend,false,false,false,true
1 Name Stage Owner requiresDevMode RequiresLicense RequiresRestart FrontendOnly
101 influxdbSqlSupport experimental @grafana/observability-metrics false false false false
102 noBasicRole experimental @grafana/grafana-authnz-team false false true true
103 alertingNoDataErrorExecution privatePreview @grafana/alerting-squad false false true false
104 angularDeprecationUI experimental @grafana/plugins-platform-backend false false false true
+4
View File
@@ -414,4 +414,8 @@ const (
// FlagAlertingNoDataErrorExecution
// Changes how Alerting state manager handles execution of NoData/Error
FlagAlertingNoDataErrorExecution = "alertingNoDataErrorExecution"
// FlagAngularDeprecationUI
// Display new Angular deprecation-related UI features
FlagAngularDeprecationUI = "angularDeprecationUI"
)