From 8153f817473f314df542f7ad79b757d165a3827a Mon Sep 17 00:00:00 2001 From: Rocky Fischer Date: Fri, 6 Dec 2024 15:44:56 -0500 Subject: [PATCH] fix(analytics): backwards-compatible granularities [MA-2149] Last 6 hours needs to support 1 hour granularity in order to remain compatible with its old set of allowed granularities. --- packages/analytics/analytics-utilities/src/timeframes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/analytics/analytics-utilities/src/timeframes.ts b/packages/analytics/analytics-utilities/src/timeframes.ts index fb8d2c9a4a..8f7020c277 100644 --- a/packages/analytics/analytics-utilities/src/timeframes.ts +++ b/packages/analytics/analytics-utilities/src/timeframes.ts @@ -301,7 +301,7 @@ export const TimePeriods = new Map([ dataGranularity: 'hourly', isRelative: true, allowedTiers: ['free', 'trial', 'plus', 'enterprise'], - allowedGranularitiesOverride: ['thirtySecondly', 'minutely', 'fiveMinutely', 'tenMinutely', 'thirtyMinutely'], + allowedGranularitiesOverride: ['thirtySecondly', 'minutely', 'fiveMinutely', 'tenMinutely', 'thirtyMinutely', 'hourly'], }), ], [