ODM2 / ODM2DataSharingPortal

A Python-Django web application enabling users to upload, share, and display data from their environmental monitoring sites via the app's ODM2 database. Data can either be automatically streamed from Internet of Things (IoT) devices, manually uploaded via CSV files, or manually entered into forms.
BSD 3-Clause "New" or "Revised" License
31 stars 8 forks source link

Restore TimeseriesResult and TimeseriesResultValues ORM Models #657

Closed ptomasula closed 1 year ago

ptomasula commented 1 year ago

I had disabled these models during some investigation into Leafpack issues because the ORM didn't handle the missing primary key field. However, I forgot to reenable these, which breaks tons of other features on the site. This PR restores this data models, but I also declaratively maps these models so that automapper does not handle these. This lets us get around some restrictions related to TimescaleDB.