added opensearch annotations to not use default ui (#50655)

This commit is contained in:
Sven Grossmann
2022-06-13 17:07:38 +02:00
committed by GitHub
parent 3e5e86d926
commit d8d3a9c561

View File

@@ -236,7 +236,9 @@ export function getAnnotationsFromData(
*/
export function shouldUseMappingUI(datasource: DataSourceApi): boolean {
const { type } = datasource;
return type !== 'prometheus' && type !== 'elasticsearch' && type !== 'loki';
return (
type !== 'prometheus' && type !== 'elasticsearch' && type !== 'loki' && type !== 'grafana-opensearch-datasource'
);
}
/**
@@ -244,5 +246,7 @@ export function shouldUseMappingUI(datasource: DataSourceApi): boolean {
*/
export function shouldUseLegacyRunner(datasource: DataSourceApi): boolean {
const { type } = datasource;
return type === 'prometheus' || type === 'elasticsearch' || type === 'loki';
return (
type === 'prometheus' || type === 'elasticsearch' || type === 'loki' || type === 'grafana-opensearch-datasource'
);
}