Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Add Event Stats to FEV #207

Open
HansVraga opened this issue Oct 16, 2018 · 2 comments
Open

Add Event Stats to FEV #207

HansVraga opened this issue Oct 16, 2018 · 2 comments
Assignees
Labels

Comments

@HansVraga
Copy link
Member

props to Todd for writing up a bitchin' issue on this.

Issue moved from STNWeb (USGS-WiM/STNWeb#411):

Field managers spend a lot of time reporting daily stats to executives on daily calls for things like HWM counts, sensor counts, etc. These get passed up the line, wasting a lot of time at each step. A dashboard with all of the required elements would streamline the data entry and make the results available to any user with access.

After 10/4/18 meeting, we decided it would be best to make the STN reporting feature part of FEV where everyone could access it, and we would only report stats found in our own data. (I.e. we will not collect other data like personnel, gages down, rating extensions, etc.). Here's a list of Counts that we need to display for the event:

High Water Marks
all HWMs (FilteredHWMs.json?Event=)
surveyed HWMs (FilteredHWMs.json?Event=&SurveyComplete=True)
unsurveyed HWMs (FilteredHWMs.json?Event=&SurveyComplete=False)
approved HWMs (HWMs.json?Event=&IsApproved=True)
unapproved HWMs (HWMs.json?Event=&IsApproved=False)
HWM sites (count of all unique sites that have at least 1 HWM for the event)

Sensors
RDGs (FilteredInstruments.json?Event=&SensorType=5)
Deployed RDGs (FilteredInstruments.json?Event=&SensorType=5&CurrentStatus=1)
Retrieved RDGs (FilteredInstruments.json?Event=&SensorType=5&CurrentStatus=2)
Lost RDGs (FilteredInstruments.json?Event=&SensorType=5&CurrentStatus=3)
SPTs (FilteredInstruments.json?Event=&SensorType=1&DeploymentType=1,2,3)
Barometers (FilteredInstruments.json?Event=&SensorType=1&DeploymentType=3)
Water level (FilteredInstruments.json?Event=&SensorType=1&DeploymentType=1)
Wave level (FilteredInstruments.json?Event=&SensorType=1&DeploymentType=2)
Deployed Water+Wave (FilteredInstruments.json?Event=&SensorType=1&CurrentStatus=1&DeploymentType=1,2)
Retrieved Water+Wave (FilteredInstruments.json?Event=&SensorType=1&CurrentStatus=2&DeploymentType=1,2)
Lost SPTs (FilteredInstruments.json?Event=&SensorType=1&CurrentStatus=3)
Sites (number of sites containing at least one sensor of any sensor type for the event)

Peaks
Peaks (FilteredPeaks.json?Event=)
Sites (number of sites with at least 1 entered peak for the event)

In addition, the stats page needs to break down all of the above by state so that the first column contains the total numbers above, while the remaining columns have the same counts for each state that is currently part of the event.

Finally, we need to create an endpoint that gives the same results so that these stats can be ingested into other reporting applications.

@lprivette
Copy link
Contributor

modal with nice table with counts

lprivette added a commit that referenced this issue Aug 28, 2020
@lprivette
Copy link
Contributor

If we're going to make an endpoint for these counts then we should wait until that's done before starting work on this.

Branch 207 has a skeleton modal for it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants