-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
APIv2: Behavioral filtering #4980
+914
−177
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
ff9a8e9
Expose site_id and site_native_stats_start_at via query
macobo 37784a8
Very basic has_done/has_done_not operator support
macobo efced25
Add validations that only event: dimensions can be used within has_do…
macobo 4109b4e
Allow event:goal filters nested within has_done/has_done_not behavior…
macobo aa6eeee
Minor fix for do_decide_custom_prop_table
macobo 871c76e
has_done support for goals
macobo 675ddc9
Dont query imports when behavioral filters are present
macobo cbf7b32
Update callsites of filtering_on_dimension? to work with new behavior…
macobo 72a339e
has_done_not -> has_not_done
macobo d6155ea
Changelog entry
macobo 5170a80
Typegen
macobo 36420ac
credo cleanup
macobo bc314ef
Fix changelog
macobo 83aa4cb
Remove changelog
macobo ced32da
Mark has_done as internal-only
macobo 59ec12d
combine two validations into a single loop
macobo 02e274d
has_done is now session-based not user-based
macobo 6d57cfe
Update a test
macobo 25ccf2d
Update transform_tree
macobo a4aa371
Merge remote-tracking branch 'origin/master' into has-done
macobo 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
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.
Where is
all
used and why?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.
Good question.
I needed to change the structure of
preloaded_goals
since we need to know what goals match the top-level is/contains filter for group by and other logics as it will affect what gets displayed (e.g. do all have the same currency, whether we can include imports. For this reasonmatching_toplevel_filters
exists.Behavioral filters
has_done
andhas_not_done
do not impact these bits of business logic but we still need to know what condition(s) these goals have when building the Ecto Query. Hence theall
key. This gets used only in this same file when building the Ecto query: