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

Creation of a StreamWatch Schools checkbox on 'Browse Sites' page #645

Closed ptomasula closed 1 year ago

ptomasula commented 1 year ago

@aufdenkampe Requested as Task2 of the StreamWatch enhancements amendment.

Creation of a StreamWatch Schools “Data Type” category checkbox on the “Browse Sites” page of MonMW, similar to those that exist for the EnviroDIY and Leaf Pack Network program

ptomasula commented 1 year ago

Implementation was completed with commit 97fcad4.

Our approach was to add an additional data field to the SiteRegistration model which keeps count of the number of StreamWatch assessments completed for the site. We separately implemented syncing logic in the form of SQL functions in the database to auto increment/decrement the number when StreamWatch action records are inserted/deleted.

ptomasula commented 1 year ago

The changes are live on the staging server. https://staging.monitormywatershed.org

aufdenkampe commented 1 year ago

@ptomasula, Looks good and works well!

One quick request: Can we change the title of the filter from "Data Types" to "Programs".

image

ptomasula commented 1 year ago

@aufdenkampe. I changed this in commit d1447cc.