-
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
'get_aggregation_unit' action and 'aggregation_unit' params for all spatial aggregates #5278
Merged
Merged
Changes from 34 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
8537429
OneOfQuerySchema
jc-harrison 1a980cf
Remove hack for making query_kind read-only
jc-harrison 9f40488
Try adding read-only aggregation unit to SpatialAggregateSchema
jc-harrison 8cccc16
Don't create new scopes from read-only aggregation unit
jc-harrison 67d9670
Fix get_available_queries action
jc-harrison 90bac9b
Re-approve API schema
jc-harrison 16ea188
Helper function to load query
jc-harrison db52326
Add "get_aggregation_unit" action handler
jc-harrison 43bacdb
Update "unknown action" test
jc-harrison 91c6ce2
Add some tests for get_aggregation_unit action
jc-harrison 8820019
Fix #4816
jc-harrison c18d822
Add regression test for #4816
jc-harrison 4d4c9eb
Add tests for all spatial aggregate query kinds
jc-harrison cd03113
Add aggregation_unit property to active_at_reference_location_counts
jc-harrison 74a4ed7
add aggregation_unit property to aggregate_network_objects
jc-harrison c662c92
Add aggregation_unit property to flows
jc-harrison 11ed189
Make aggregation_unit attribute of DFSTotalMetricAmountExposed consis…
jc-harrison 4e3f383
Don't silently treat badly-formed aggregation units as not-aggregatio…
jc-harrison c59924f
Fix default direction param
jc-harrison 82cb141
Add aggregation_unit property to joined_spatial_aggregate
jc-harrison 1543fba
Add aggregation_unit property to labelled_flows
jc-harrison 84ee9fd
Add aggregation_unit property to labelled_spatial_aggregate
jc-harrison f348afb
Add aggregation_unit property to unique_visitor_counts
jc-harrison 790ffb4
Add aggregation_unit property to unmoving_counts
jc-harrison 3960186
Add aggregation_unit property to unmoving_at_reference_location_counts
jc-harrison 4763ccb
Ensure all required fields are marked as such
jc-harrison f8edee4
Skip schema validation on field errors
jc-harrison b3c7354
Fix Direction field
jc-harrison 4092a35
Use real db connection for action handler test
jc-harrison 112db6d
Fix LocationIntroversion
jc-harrison 97c4847
Add missing query field in test params
jc-harrison 4a8edee
Integrate nocturnal_events spec change into flowclient
jc-harrison 0220f09
Re-approve API spec
jc-harrison f1abe58
Add docs section on exposing a new query kind
jc-harrison 47d161e
Fix docs
jc-harrison ff419e1
Update flowmachine/flowmachine/core/server/query_schemas/aggregation_…
jc-harrison f2dba5d
Merge branch 'master' into explicit-aggregation-unit
jc-harrison a2a6f8e
More tests
jc-harrison b2bc665
Approve query IDs for modified query specs
jc-harrison bc60f17
Docstrings
jc-harrison 96794da
Merge remote-tracking branch 'origin/master' into explicit-aggregatio…
jc-harrison b06785e
Update CHANGELOG.md
jc-harrison 0560a96
Merge branch 'master' into explicit-aggregation-unit
jc-harrison d8faf2c
Merge branch 'master' into explicit-aggregation-unit
jc-harrison d3af691
Quiet pip install to avert threading issue
jc-harrison 64a9ff7
Merge branch 'master' into explicit-aggregation-unit
jc-harrison 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
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.
We might consider changing the names of these really.
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.
Yes, could do. What would you suggest?
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.
I was wondering about
BaseIndividualQuery
andBaseAggregateQuery
, but I'm not sure it makes sense given that it may not be universally the case that these are the appropriate bases.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.
Hmm, yes, I don't know whether it will always be the case that we'd want to allow sampling for all non-aggregates and never for aggregates.
I wonder whether we'd be better-off rolling the sampling stuff into
BaseExposedQuery
(i.e. apply sampling if there's a sampling parameter, otherwise don't), and turningBaseQueryWithSamplingSchema
into a mixin - then we don't have to worry about having two different bases.