From 63abaee232d472f6ed05c28d4897ad20946058b6 Mon Sep 17 00:00:00 2001 From: Rocky Date: Wed, 11 Dec 2024 10:09:30 -0500 Subject: [PATCH] feat(analytics): fine-grained time for current / previous week [MA-2499] (#1845) --- packages/analytics/analytics-utilities/src/timeframes.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/analytics/analytics-utilities/src/timeframes.ts b/packages/analytics/analytics-utilities/src/timeframes.ts index 8f7020c277..28210ce5de 100644 --- a/packages/analytics/analytics-utilities/src/timeframes.ts +++ b/packages/analytics/analytics-utilities/src/timeframes.ts @@ -377,6 +377,7 @@ export const TimePeriods = new Map([ dataGranularity: 'daily', isRelative: false, allowedTiers: ['plus', 'enterprise'], + allowedGranularitiesOverride: ['thirtyMinutely', 'hourly', 'twoHourly', 'twelveHourly', 'daily'], }), ], [ @@ -409,6 +410,7 @@ export const TimePeriods = new Map([ dataGranularity: 'daily', isRelative: false, allowedTiers: ['plus', 'enterprise'], + allowedGranularitiesOverride: ['thirtyMinutely', 'hourly', 'twoHourly', 'twelveHourly', 'daily'], }), ], [