USGS-WiM / STNServices2

Web services for the Short-Term Network (STN) database
Other
0 stars 0 forks source link

Wrong deployment type shown in FEV #121

Closed HansVraga closed 6 years ago

HansVraga commented 6 years ago

Todd found the wrong deployment type on a sensor in FEV. I Suspect the issue comes from the services. On this Endpoint, the site comes back with the wrong deployment type - (find the site PRNAR23505 in response - StatusID 4 = proposed) https://stn.wim.usgs.gov/STNServices/Instruments/FilteredInstruments.json?Event=182&EventType=&EventStatus=&States=&County=&CurrentStatus=&CollectionCondition=&SensorType=&DeploymentType=

Todd's findings below:

I just ran across another strangeness in FEV. Site number PRNAR23505 for the Irma event shows a status of "Proposed" in FEV, but it is clearly "Retrieved" in STN: image

image

troddick commented 6 years ago

Fixed functionality of proposing new sensors in stnweb ( occasionally an existing sensor was getting grabbed instead of creating a new one and then a new status of proposed was getting added to it). Need to search the db for any other sensor statuses with a proposed state after its deployed/retrieved state dates.

troddick commented 6 years ago

This particular case has been fixed. There is still an underlying flaw in the design of posting new sensors when a sensor with matching properties already exist in the db.