mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Elasticsearch: Fix impossibility to perform non-logs queries after importing queries from loki or prometheus in explore (#31518)
* Chore: remove isLogsQuery flag from ES datasource * Minore chores * Update public/app/plugins/datasource/elasticsearch/datasource.ts Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com> Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
This commit is contained in:
@@ -28,8 +28,8 @@ describe('getAlertingValidationMessage', () => {
|
||||
getInstanceSettings: (() => {}) as any,
|
||||
};
|
||||
const targets: ElasticsearchQuery[] = [
|
||||
{ refId: 'A', query: '@hostname:$hostname', isLogsQuery: false },
|
||||
{ refId: 'B', query: '@instance:instance', isLogsQuery: false },
|
||||
{ refId: 'A', query: '@hostname:$hostname' },
|
||||
{ refId: 'B', query: '@instance:instance' },
|
||||
];
|
||||
const transformations: DataTransformerConfig[] = [];
|
||||
|
||||
@@ -95,8 +95,8 @@ describe('getAlertingValidationMessage', () => {
|
||||
},
|
||||
};
|
||||
const targets: ElasticsearchQuery[] = [
|
||||
{ refId: 'A', query: '@hostname:$hostname', isLogsQuery: false },
|
||||
{ refId: 'B', query: '@instance:$instance', isLogsQuery: false },
|
||||
{ refId: 'A', query: '@hostname:$hostname' },
|
||||
{ refId: 'B', query: '@instance:$instance' },
|
||||
];
|
||||
const transformations: DataTransformerConfig[] = [];
|
||||
|
||||
@@ -124,8 +124,8 @@ describe('getAlertingValidationMessage', () => {
|
||||
},
|
||||
};
|
||||
const targets: ElasticsearchQuery[] = [
|
||||
{ refId: 'A', query: '@hostname:hostname', isLogsQuery: false },
|
||||
{ refId: 'B', query: '@instance:instance', isLogsQuery: false },
|
||||
{ refId: 'A', query: '@hostname:hostname' },
|
||||
{ refId: 'B', query: '@instance:instance' },
|
||||
];
|
||||
const transformations: DataTransformerConfig[] = [];
|
||||
|
||||
@@ -153,8 +153,8 @@ describe('getAlertingValidationMessage', () => {
|
||||
},
|
||||
};
|
||||
const targets: ElasticsearchQuery[] = [
|
||||
{ refId: 'A', query: '@hostname:hostname', isLogsQuery: false },
|
||||
{ refId: 'B', query: '@instance:instance', isLogsQuery: false },
|
||||
{ refId: 'A', query: '@hostname:hostname' },
|
||||
{ refId: 'B', query: '@instance:instance' },
|
||||
];
|
||||
const transformations: DataTransformerConfig[] = [{ id: 'A', options: null }];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user