USGS-WiM / NSS

NSS client application
https://streamstats.usgs.gov/nss/
Other
2 stars 1 forks source link

Statistics/Characteristics Batch Update Question #382

Open kjacobsen16 opened 3 years ago

kjacobsen16 commented 3 years ago

After a talk with Pete, there's a pretty big step that we'll need in the gage stats interface.

We are going to add a "status" attribute to the stations (https://github.com/USGS-WiM/GageStatsServices/issues/76), which would be included when statistics are added (would need to be included in the batch upload as well). The problem is sometimes the gage statistics will be added in bulk, then at a later date the citation will be published or deprecated, meaning the user will need to update the status for all statistics (or characteristics) associated with that citation, which might be scattered across multiple stations.

A couple potential options:

  1. Add in an additional modal for the purpose of bulk updating stats and chars by filtering by citation and allowing them to update the status there. This would probably be the easiest to do to match this need, but would be very specialized.
  2. Use bulk upload to also bulk edit. We could give them the option to export all items with certain filters applied, edit them, then reupload. Then they could use it for stations, statistics or characteristics. We could also add in a check to see if items exist, e.g. if a statistic at that gage with that statistic type and citation ID exists, then just update the properties that are different?

There was also a small discussion about displaying all statistics, if I understood correctly. If we need to, we could duplicate the main gage table and filters for statistics and characteristics and. I think this might be overkill, but Pete might be able to fill us in on the use cases.

This will require some updates to the services as well.

kjacobsen16 commented 3 years ago

@USGSPMM3 can you speak to the display needs for statistics and characteristics? Is displaying the statistics within the gage page sufficient or do we need to think about replicating a whole statistics table with pagination and filters, similar to the gages table?