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

Data Exploration Insights #84

Closed
9 of 34 tasks
thmsobrmlr opened this issue Jan 11, 2023 · 1 comment
Closed
9 of 34 tasks

Data Exploration Insights #84

thmsobrmlr opened this issue Jan 11, 2023 · 1 comment
Assignees

Comments

@thmsobrmlr
Copy link
Contributor

thmsobrmlr commented Jan 11, 2023

This issue captures the current state of data exploration for insights.

Priorities

  • Make refresh work as expected
  • Remove legacy code (this should improve quality as well)
  • Allow standalone <Query /> nodes / make queries work on debug page

Prio 1: Make refresh work as expected

There are at least two unrelated issues related to refreshes:

  1. Previously we've called a different code path when we have a saved insight and the current filters match the saved ones, but there isn't a result https://github.com/PostHog/posthog/blob/master/frontend/src/scenes/insights/insightLogic.ts#L327-L337
  2. The "last computed at" property doesn't properly update in all cases Refreshing an insight should update the "last computed at" property posthog#16082

See the list of this issue and verify they are working after fixing the above:

Prio 2: Remove legacy code

Longlist of things to clean up (not necessarily now)

  • Make ActionFilter and entityFilter logic based on series, not actions and events
  • Replace compareFilters with compareQuery and make the function robust wrt defaults and undefined values comparyQuery(a,b, defaults)
  • Remove the unfinished retention breakdowns feature
  • Delete the feature flag from app.posthog.com
  • Clicking save before the query completes -> changes should get saved
  • Hidden legend items should get saved with the query
  • Prevent requests when only client-side settings change e.g formula: '' vs. formula: undefined, layout, hidden_legend_keys, show_legend
  • Remove filter based helpers from frontend/src/scenes/insights/sharedUtils.ts e.g. isTrendsFilter or isFilterWithDisplay
  • Remove usage of filtersToQueryNode, queryNodeToFilters, etc. in as many places as possible
  • Remove all usages of the cleanFilter function
  • Agree on a "final" node schema:
    • rename breakdown to breakdownFilter
    • rename date_from to dateFrom or more generally agree on camel or snake case
@thmsobrmlr thmsobrmlr self-assigned this Jan 11, 2023
@thmsobrmlr
Copy link
Contributor Author

Closing this in favor of #130

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

No branches or pull requests

1 participant