added opensearch annotations to not use default ui (#50655)
This commit is contained in:
1 parent
3e5e86d926
commit
d8d3a9c561
1 file changed
+6
-2
@@ -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'
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user