-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(data-exploration): implement retention insight (fixes #14015) #14019
Conversation
Hey @thmsobrmlr! 👋 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like another nice refactor! Let's get it in... 👍 ... when merging is unblocked again.
@@ -64,7 +64,7 @@ export function dayjsLocalToTimezone( | |||
// eslint-disable-next-line @typescript-eslint/no-empty-interface | |||
export interface Dayjs extends DayjsOriginal {} | |||
|
|||
export type UnitTypeShort = 'd' | 'M' | 'y' | 'h' | 'm' | 's' | 'ms' | |||
export type UnitTypeShort = 'd' | 'D' | 'M' | 'y' | 'h' | 'm' | 's' | 'ms' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
Problem
This PR converts the retention insight to data exploration, as part of the ongoing effort at PostHog/meta#84. It was one of the easier ones and thus a complete conversion.
Also fixes #14015.
Changes
retentionLogic
into multiple logics that "do one thing well" e.g.retentionTableLogic
,retentionLineChartLogic
retention-breakdowns
feature flag, as they aren't working (return an empty array at all times or throws)How did you test this code?
Manual testing.