From 7d8fbb83f4f4f5e508f323a4b4fd609faa8fc820 Mon Sep 17 00:00:00 2001 From: Joey Tawadrous <90795735+joey-grafana@users.noreply.github.com> Date: Wed, 13 Jul 2022 09:27:58 +0100 Subject: [PATCH] [v9.0.x] Splunk: Use legacy annotation runner (#52079) --- .../annotations/standardAnnotationSupport.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/public/app/features/annotations/standardAnnotationSupport.ts b/public/app/features/annotations/standardAnnotationSupport.ts index 4d4c5cbb5a4..66e5587b639 100644 --- a/public/app/features/annotations/standardAnnotationSupport.ts +++ b/public/app/features/annotations/standardAnnotationSupport.ts @@ -235,12 +235,20 @@ export function getAnnotationsFromData( * Opt out of using the default mapping functionality on frontend. */ export function shouldUseMappingUI(datasource: DataSourceApi): boolean { - return datasource.type !== 'prometheus' && datasource.type !== 'grafana-opensearch-datasource'; + return ( + datasource.type !== 'prometheus' && + datasource.type !== 'grafana-opensearch-datasource' && + datasource.type !== 'grafana-splunk-datasource' + ); } /** * Use legacy runner. Used only as an escape hatch for easier transition to React based annotation editor. */ export function shouldUseLegacyRunner(datasource: DataSourceApi): boolean { - return datasource.type === 'prometheus' || datasource.type === 'grafana-opensearch-datasource'; + return ( + datasource.type === 'prometheus' || + datasource.type === 'grafana-opensearch-datasource' || + datasource.type === 'grafana-splunk-datasource' + ); }