Skip to content
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

Merged
merged 40 commits into from
Feb 3, 2023

Conversation

thmsobrmlr
Copy link
Contributor

@thmsobrmlr thmsobrmlr commented Jan 31, 2023

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

  • Splits retentionLogic into multiple logics that "do one thing well" e.g. retentionTableLogic, retentionLineChartLogic
  • Does not add support for 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.

@posthog-bot
Copy link
Contributor

Hey @thmsobrmlr! 👋
This pull request seems to contain no description. Please add useful context, rationale, and/or any other information that will help make sense of this change now and in the distant Mars-based future.

@thmsobrmlr thmsobrmlr changed the title feat(data-exploration): implement retention insight feat(data-exploration): implement retention insight (fixes #14015) Feb 2, 2023
@thmsobrmlr thmsobrmlr marked this pull request as ready for review February 2, 2023 15:52
Copy link
Collaborator

@mariusandra mariusandra left a 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'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

@thmsobrmlr thmsobrmlr merged commit bd136ea into master Feb 3, 2023
@thmsobrmlr thmsobrmlr deleted the data-exploration-retention-insight-3 branch February 3, 2023 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

People don't load for modal triggered from retention chart
3 participants