-
Notifications
You must be signed in to change notification settings - Fork 21
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
Expose 'event_types' parameters #2632
Conversation
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
Codecov Report
@@ Coverage Diff @@
## master #2632 +/- ##
==========================================
+ Coverage 93.86% 93.88% +0.02%
==========================================
Files 241 241
Lines 9401 9435 +34
Branches 851 852 +1
==========================================
+ Hits 8824 8858 +34
Misses 448 448
Partials 129 129
Continue to review full report at Codecov.
|
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.
Minor stuff then all good.
flowclient/flowclient/aggregates.py
Outdated
@@ -113,6 +113,7 @@ def meaningful_locations_aggregate_spec( | |||
aggregation_unit: str, | |||
tower_cluster_radius: float = 1.0, | |||
tower_cluster_call_threshold: int = 0, | |||
event_types: Union[None, List[str]] = None, |
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.
Make it consistently Optional[List[str]]
?
flowclient/flowclient/aggregates.py
Outdated
@@ -167,6 +168,8 @@ def meaningful_locations_aggregate_spec( | |||
more towers, and fewer clusters. | |||
tower_cluster_call_threshold : int | |||
Exclude towers from a subscriber's clusters if they have been used on less than this number of days. | |||
event_types : None or list of {"calls", "sms", "mds"}, default None |
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.
Or topups?
Almost feel like worth using the str Enum trick for this.
Closes #2631
I have:
Description
Exposes an
event_types
parameter for all queries that internally have atable
/tables
parameter for selecting a subset of events tables inEventsTablesUnion
.