Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Create endpoints to get counts #127

Open
tkoenigusgs opened this issue Nov 15, 2017 · 2 comments
Open

Create endpoints to get counts #127

tkoenigusgs opened this issue Nov 15, 2017 · 2 comments
Labels
Milestone

Comments

@tkoenigusgs
Copy link

We need to be able to pull counts of these items from the database:

  • planned HWMs

  • flagged HWMs

  • surveyed HWMs

  • approved / unapproved HWMs

  • deployed Sensors

  • recovered Sensors

  • uploaded Sensors

  • approved Sensors

We also need to filter those counts by sensor type (storm-tide / wave / RDG / precip) or by State. So rather than creating a huge mess of new endpoints for counting, I'm thinking the easiest thing might be to add a "counts_only=true" attribute to the FilteredHWMs and FilteredSensors endpoints. Then I can use all the existing filtering logic of those two endpoints, rather than creating a bunch of new counting endpoints.

@lprivette lprivette added this to the 2.1.1 milestone Apr 19, 2018
@tkoenigusgs
Copy link
Author

This issue may be replaced by FEV issue #411, or at least see issue 411 for a more updated list of endpoints that need counts.

@HansVraga
Copy link
Member

USGS-WiM/FEV#207 ☝️ FEV issue Todd is referring to

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

3 participants