-
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
fix(insights): HogQL calculation of saved legacy insights v2 #21595
Merged
Merged
Changes from 18 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
e49394b
fix(insights): HogQL calculation of saved legacy insights v2
Twixes 72f47eb
Only use cached results in `process_query` for insight serializer
Twixes 41c2387
Fix type of results
Twixes 8f657d6
Rename `RecalculationMode` to `ExecutionMode`
Twixes 476f4f8
Fix typing more
Twixes f70aa7f
Properly support dashboard filters
Twixes 1f3d863
Hacky fix for schema.py
Twixes bc0e01c
Don't test legacy `generate_insight_cache_key` with `query`
Twixes d9c7779
Fix importing & typing
Twixes 4d250a8
Fix typo
Twixes 0f44d39
Update test_query_runner.py
Twixes 0f4c230
Account for property filter groups in dashboard filters
Twixes d431127
Do return stale result in CACHE_ONLY case
Twixes 932e10a
Fix `execute_hogql_query` espionage
Twixes f67a764
Fix typing even more
Twixes 4770169
Don't require `pnpm` for `schema:build:python`
Twixes 3abf5ea
Merge branch 'master' into hogql-calculation-bis
Twixes ea3582c
Fix `schema:build:python`
Twixes 6e579f5
Fix sed usage
Twixes 1917ed0
Move `schema:build:python` to a bash script
Twixes e457fd4
Validate cache properly
Twixes 89f0e8a
Merge branch 'master' into hogql-calculation-bis
Twixes 18e7cdb
Fix Python formatting
Twixes fe1003b
Update UI snapshots for `webkit` (2)
github-actions[bot] 77c8edb
Add test to ensure /query/ and /inisghts/ use the same cache
Twixes 0d86acb
Update mypy-baseline.txt
Twixes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Context: We need
EventPropertyFilter.operator
to have a default value, to support the historic assumption that "exact" is the default operator. But that default value needs to be an enum member (PropertyOperator.exact
), whichdatamodel-codegen
doesn't supportThere 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.
Should we move that into a shell file? (See
build:json
above where I also moved to a file cause of more logic)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.
Yeah, that's definitely a good idea at this point! Done