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

fix: strip uuid in schema_helpers with the other fe only fields #23376

Merged
merged 3 commits into from
Jul 3, 2024

Conversation

aspicer
Copy link
Contributor

@aspicer aspicer commented Jul 1, 2024

Problem

Fixes https://github.com/PostHog/company-internal/issues/1423

The call to insights to load a saved retention query was often cache missing. This caused the front-end to not get data and launch a query.

Changes

Add uuid to filters_to_query. This allows us to cache hit.

There is probably another bug on the frontend where /query responses aren't getting saved locally on the fe the same way the insights responses are.

Does this work well for both Cloud and self-hosted?

yes

How did you test this code?

Tested it locally.

@aspicer aspicer requested a review from a team July 1, 2024 20:07
Copy link
Contributor

@thmsobrmlr thmsobrmlr left a comment

Choose a reason for hiding this comment

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

Hmm.. I think uuid is a frontend-only implementation detail and shouldn't affect how we calculate backend results. Didn't have a deeper look into how caching works, but removing / hiding this prop from backend requests might be the better fix here.

@aspicer aspicer requested a review from thmsobrmlr July 1, 2024 21:01
@aspicer aspicer changed the title fix: add uuid to retention filters_to_query fix: strip uuid in schema_helpers with the other fe only fields Jul 1, 2024
@aspicer aspicer enabled auto-merge (squash) July 1, 2024 22:43
Copy link
Contributor

@thmsobrmlr thmsobrmlr left a comment

Choose a reason for hiding this comment

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

🙌

@aspicer aspicer merged commit 3caeab0 into master Jul 3, 2024
90 checks passed
@aspicer aspicer deleted the aspicer/uuid branch July 3, 2024 14:57
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