This PR uses UUID as primary keys in the AGSensor and AGSensorType models, replacing the integer AutoField. It also adds an integer column called serial for interfacing the hardware, so the hardware does not need to change. The PR is to resolve #181 .
Breaking Change: The migration history for ag_data models are rebuilt. Please backup the data on your system before rebuilding the database.
About the coverage drop: it is unclear from Coveralls report. However, this PR does not remove tests, introduce large code bodies, nor making any existing lines not covered in tests.
Types of Changes
Put an x in the boxes that apply
[ ] Feature (non-breaking change which adds functionality)
[x] Bug Fix (non-breaking change that fixes an issue)
[x] Breaking Change (feature/fix that causes existing features to not work as expected)
[ ] Documentation
Checklist
[x] I have read the [contribute]contributing doc
[x] Classes, scripts, and environment variables follow existing naming convention
[x] Lint and Unit tests pass locally
[ ] New features on hardware have been tested on a local Raspberry Pi
[ ] Mention new programs/binaries if any must be installed along with this change
[ ] Mention new environment variables if any have been added to hardware/env file
Title
Use UUID and Serial Number in sensor & sensortype
Description
This PR uses UUID as primary keys in the AGSensor and AGSensorType models, replacing the integer AutoField. It also adds an integer column called serial for interfacing the hardware, so the hardware does not need to change. The PR is to resolve #181 .
Breaking Change: The migration history for ag_data models are rebuilt. Please backup the data on your system before rebuilding the database.
About the coverage drop: it is unclear from Coveralls report. However, this PR does not remove tests, introduce large code bodies, nor making any existing lines not covered in tests.
Types of Changes
Put an
x
in the boxes that applyChecklist