Explore: Remove deprecated DataSourceWithLogsVolumeSupport (#66266)

Logs volume: Remove deprecated DataSourceWithLogsVolumeSupport
This commit is contained in:
Ivana Huckova
2023-04-12 14:10:14 +02:00
committed by GitHub
parent 2eed889ab7
commit 29c43fcf7e
4 changed files with 0 additions and 52 deletions
@@ -10,7 +10,6 @@ import {
DataQueryErrorType,
DataQueryResponse,
DataSourceApi,
hasLogsVolumeSupport,
hasQueryExportSupport,
hasQueryImportSupport,
HistoryItem,
@@ -630,27 +629,6 @@ export const runQueries = (
})
);
if (!canReuseSupplementaryQueryData(supplementaryQueries[type].data, queries, absoluteRange)) {
dispatch(cleanSupplementaryQueryAction({ exploreId, type }));
if (supplementaryQueries[type].enabled) {
dispatch(loadSupplementaryQueryData(exploreId, type));
}
}
// Code below (else if scenario) is for backward compatibility with data sources that don't support supplementary queries
// TODO: Remove in next major version - v10 (https://github.com/grafana/grafana/issues/61845)
} else if (hasLogsVolumeSupport(datasourceInstance) && type === SupplementaryQueryType.LogsVolume) {
const dataProvider = datasourceInstance.getLogsVolumeDataProvider({
...transaction.request,
requestId: `${transaction.request.requestId}_${snakeCase(type)}`,
});
dispatch(
storeSupplementaryQueryDataProviderAction({
exploreId,
type,
dataProvider,
})
);
if (!canReuseSupplementaryQueryData(supplementaryQueries[type].data, queries, absoluteRange)) {
dispatch(cleanSupplementaryQueryAction({ exploreId, type }));
if (supplementaryQueries[type].enabled) {