From 18aba61cbdacccec7336c17a4c42416b599487f6 Mon Sep 17 00:00:00 2001 From: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com> Date: Sun, 14 May 2023 13:29:19 +0200 Subject: [PATCH] Explore: Remove localStorage key migration for logs volume (#68360) --- .../explore/utils/supplementaryQueries.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/public/app/features/explore/utils/supplementaryQueries.ts b/public/app/features/explore/utils/supplementaryQueries.ts index 75ca46ce5af..aeba3e21dca 100644 --- a/public/app/features/explore/utils/supplementaryQueries.ts +++ b/public/app/features/explore/utils/supplementaryQueries.ts @@ -38,21 +38,6 @@ export const loadSupplementaryQueries = (): SupplementaryQueries => { }; for (const type of supplementaryQueryTypes) { - if (type === SupplementaryQueryType.LogsVolume) { - // TODO: Remove this in 10.0 (#61626) - // For LogsVolume we need to migrate old key to new key. So check for old key: - // If we have old key: 1) use it 2) migrate to new key 3) delete old key - // If not, continue with new key - const oldLogsVolumeEnabledKey = 'grafana.explore.logs.enableVolumeHistogram'; - const shouldBeEnabled = store.get(oldLogsVolumeEnabledKey); - if (shouldBeEnabled) { - supplementaryQueries[type] = { enabled: shouldBeEnabled === 'true' ? true : false }; - storeSupplementaryQueryEnabled(shouldBeEnabled === 'true', SupplementaryQueryType.LogsVolume); - localStorage.removeItem(oldLogsVolumeEnabledKey); - continue; - } - } - // We want to skip LogsSample and default it to false for now to trigger it only on user action if (type === SupplementaryQueryType.LogsSample) { continue;