-
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
Add visited on most days query #4267
Comments
Just confirming here: we can't have subscriber-level queries so this query is not supposed to take a subscriber ID as an input and spit out the location they visited on most days. |
We can have subscriber-level queries in flowmachine, but don't want to directly expose them through the API. So e.g. an API user wouldn't be able to get the result of a VisitedOnMostDays query, but could get the result of a SpatialAggregate query that has a VisitedOnMostDays sub-query. |
Thanks for clarifying. If that's the case here I need to look at other examples of subqueries that aren't exposed but used in aggregates. |
For the exposing-through-API side of things, see e.g. ReferenceLocationSchema, which defines the allowed reference location types (currently daily location, modal location, most frequent location) as parameters for queries such as SpatialAggregate. Query schemas that are not included in FlowmachineQuerySchema will not be directly exposed as top-level queries through the API. |
Right I think I've got something but still struggling with the test dataset and hardcoded values in unit tests. |
…t-days-query Fix/#4267 add visited on most days query
Reopening this because #4463 doesn't include a flowclient function. |
Another type of reference location which localises subscribers to the location they visited on most days from a span of days, and breaks ties according to the number of events they had at each location.
The text was updated successfully, but these errors were encountered: