Closed cortadocodes closed 1 year ago
Patch coverage: 50.00
% and project coverage change: -0.76
:warning:
Comparison is base (
cf3b26f
) 60.87% compared to head (cec5a3d
) 60.11%.
:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
We should refactor "session" to measurement_campaign" or something like that, to avoid confusion.
Is the sessions table part of this PR relevant anymore as we'll be calculating sessions dynamically using the RawSignal
class?
Is the sessions table part of this PR relevant anymore as we'll be calculating sessions dynamically using the
RawSignal
class?
As discussed in https://github.com/aerosense-ai/data-gateway/issues/107#issuecomment-1346570662
This PR creates something that we can call "Measurement Campaign table" rather than "Measurement session table", as per our definition of "session" and "campaign". So we just need to rename session to campaign.. otherwise it makes perfect sense to reference each campaign by a cool slug name, for each campaign have a start and end, and only certain sensors / nodes involved.
But we can discuss more in detail on how this can be used, before implementing.
Summary
Add support for thew new measurement campaigns table in BigQuery. This allows data to be associated with a measurement campaign that can be given a label and description. The code has also been cleaned up and some bugs fixed.
Contents (#108)
IMPORTANT: There are 2 breaking changes.
New features
session
table when uploading a windowEnhancements
label
field withsession_reference
in existing tablesFixes
Reversions
Operations
snok/install-poetry
to avoid missing poetry bugDependencies
python3.7
supportoctue==0.41.0
pandas
dev dependencypyarrow
dev dependencydev-dependencies
group with newdev
groupRefactoring
BatchingUploader
Testing
MockBigQueryClient
MockBigQueryClient.rows
attribute toinserted_rows
Mock
instead oftypes.SimpleNamespace
Upgrade instructions
💥 Remove ability to provide label via CLI
Provide a "label" key mapped to the label in the "measurement_campaign" dictionary of the configuration file instead.💥 Drop python3.7 support
Update to `python>=3.8`.