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): convert insight display config #14075

Merged
merged 49 commits into from
Feb 7, 2023

Conversation

thmsobrmlr
Copy link
Contributor

@thmsobrmlr thmsobrmlr commented Feb 3, 2023

Problem

This PR converts the display insight config (filters above the chart) to data exploration, as part of the ongoing effort at PostHog/meta#84.

Most of the filters already support data exploration in one way or another (full conversion or just calling updateQuery whenever we call setFilters).

How did you test this code?

Manual testing

@thmsobrmlr thmsobrmlr changed the base branch from master to data-exploration-retention-insight-3 February 3, 2023 10:12
Base automatically changed from data-exploration-retention-insight-3 to master February 3, 2023 13:18
# Conflicts:
#	frontend/src/queries/nodes/InsightViz/EditorFilters.tsx
#	frontend/src/scenes/insights/InsightDisplayConfig.tsx
#	frontend/src/scenes/insights/insightDataLogic.ts
#	frontend/src/scenes/saved-insights/SavedInsights.tsx
@thmsobrmlr thmsobrmlr marked this pull request as ready for review February 6, 2023 11:03
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.

Oh my, showSmoothing is so much cleaner than {isTrendsFilter(filters) && !filters.breakdown_type && !filters.compare && (!filters.display || filters.display === ChartDisplayType.ActionsLineGraph) && featureFlags[FEATURE_FLAGS.SMOOTHING_INTERVAL] 🤣

Looks good to me! 👍

@thmsobrmlr thmsobrmlr merged commit 426df7e into master Feb 7, 2023
@thmsobrmlr thmsobrmlr deleted the data-exploration-insight-display-config branch February 7, 2023 17:50
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.

2 participants