[v9.0.x] Splunk: Use legacy annotation runner (#52079)

This commit is contained in:
Joey Tawadrous
2022-07-13 09:27:58 +01:00
committed by GitHub
parent d351b07795
commit 7d8fbb83f4
@@ -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'
);
}