Skip to content

Commit

Permalink
fix(analytics): backwards-compatible granularities [MA-2149]
Browse files Browse the repository at this point in the history
Last 6 hours needs to support 1 hour granularity in order to remain compatible with its old set of allowed granularities.
  • Loading branch information
adorack committed Dec 6, 2024
1 parent 3e40921 commit 8153f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/analytics/analytics-utilities/src/timeframes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export const TimePeriods = new Map<string, Timeframe>([
dataGranularity: 'hourly',
isRelative: true,
allowedTiers: ['free', 'trial', 'plus', 'enterprise'],
allowedGranularitiesOverride: ['thirtySecondly', 'minutely', 'fiveMinutely', 'tenMinutely', 'thirtyMinutely'],
allowedGranularitiesOverride: ['thirtySecondly', 'minutely', 'fiveMinutely', 'tenMinutely', 'thirtyMinutely', 'hourly'],
}),
],
[
Expand Down

0 comments on commit 8153f81

Please sign in to comment.