Skip to content
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

Implementing labelling disaggregation #4677

Merged
merged 23 commits into from
Dec 9, 2021
Merged

Conversation

Thingus
Copy link
Contributor

@Thingus Thingus commented Dec 7, 2021

Closes #4668

I have:

  • Formatted any Python files with black
  • Brought the branch up to date with master
  • Added any relevant Github labels
  • Added tests for any new additions
  • Added or updated any relevant documentation
  • Added an Architectural Decision Record (ADR), if appropriate
  • Added an MPLv2 License Header if appropriate
  • Updated the Changelog

Description

Adds paramater to spatial_aggregate that takes a query containing subscribers + labels to disaggregate by

@Thingus Thingus marked this pull request as draft December 7, 2021 14:13
@cypress
Copy link

cypress bot commented Dec 7, 2021



Test summary

43 0 0 0Flakiness 0


Run details

Project FlowAuth
Status Passed
Commit 0262577
Started Dec 9, 2021 9:37 AM
Ended Dec 9, 2021 9:42 AM
Duration 04:59 💡
OS Linux Debian - 10.5
Browser Electron 94

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
Copy link

codecov bot commented Dec 8, 2021

Codecov Report

Merging #4677 (0262577) into master (906bdf4) will increase coverage by 0.02%.
The diff coverage is 98.18%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4677      +/-   ##
==========================================
+ Coverage   93.46%   93.48%   +0.02%     
==========================================
  Files         265      267       +2     
  Lines       10444    10496      +52     
  Branches     1236     1247      +11     
==========================================
+ Hits         9761     9812      +51     
- Misses        550      551       +1     
  Partials      133      133              
Flag Coverage Δ
autoflow_unit_tests 93.03% <ø> (ø)
flowapi_unit_tests 72.76% <ø> (ø)
flowauth_unit_tests 78.41% <ø> (ø)
flowclient_unit_tests 74.57% <ø> (ø)
flowetl_unit_tests 95.49% <ø> (ø)
flowkit_jwt_generator_unit_tests 95.10% <ø> (ø)
flowmachine_unit_tests 91.08% <98.18%> (+0.05%) ⬆️
integration_tests 66.18% <5.45%> (-0.39%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ne/features/location/labelled_spatial_aggregate.py 97.05% <97.05%> (ø)
flowmachine/flowmachine/core/spatial_unit.py 95.49% <100.00%> (ø)
...es/location/redacted_labelled_spatial_aggregate.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 906bdf4...0262577. Read the comment docs.

@Thingus Thingus requested a review from greenape December 8, 2021 12:18
@Thingus Thingus added enhancement New feature or request FlowMachine Issues related to FlowMachine labels Dec 8, 2021
@Thingus Thingus marked this pull request as ready for review December 8, 2021 15:06
@Thingus
Copy link
Contributor Author

Thingus commented Dec 8, 2021

Does this need an ADR for the redaction strategy?

@jc-harrison
Copy link
Member

Does this need an ADR for the redaction strategy?

Yes, that's not a bad idea. We're likely to need to make similar decisions again, so recording the reasoning behind this choice would be good.

@Thingus Thingus self-assigned this Dec 9, 2021
Copy link
Member

@jc-harrison jc-harrison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Thingus Thingus added the ready-to-merge Label indicating a PR is OK to automerge label Dec 9, 2021
@mergify mergify bot merged commit b1cc720 into master Dec 9, 2021
@mergify mergify bot deleted the labelled_aggs_and_flows branch December 9, 2021 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request FlowMachine Issues related to FlowMachine ready-to-merge Label indicating a PR is OK to automerge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Labelled spatial aggregates
3 participants