-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand segments in queries #4982
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
Conversation
1bbe5a9 to
13a843d
Compare
13a843d to
c46ac4c
Compare
| end | ||
|
|
||
| defp traverse(filters, depth \\ -1) do | ||
| def traverse(filters, depth \\ -1) do |
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.
Annoyingly, usages of this as-is is going to cause annoying conflicts with #4980.
To reduce headaches depending on the order of the merge I suggest copying the implementation from that PR and maybe adding a default to state/state_transformer.
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.
Can we cross that bridge when we come to it?
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.
Yup - just wanted to point out an annoyance you might run into trying to get this merged.
c78b169 to
d25d088
Compare
test/plausible_web/controllers/api/external_stats_controller/query_test.exs
Outdated
Show resolved
Hide resolved
72f9a90 to
2cd949b
Compare
Changes
This PR introduces functions that handle expanding segments in queries to constituent filters.
Tests
Changelog
Documentation
Dark mode