USACE / USACE/cwms-data-api

Allow querying for *last* gate change

Open
#1,000 2 comments 0 reactions 1 assignee View on GitHub

@krowvin is already working on this.

Since Feb 18, 2025.

enhancement
Dominant language
Java
Stars
28
Forks
25
Avg merge
4d 22h
Merged PRs (30d)
20

Description

Query for a projects last known gate change

How do you go about getting the last gate change without specifying a large range, possibly pulled from the TS extents as a guess? (I don't think we have another way to determine the life of a project via API)

For example you have a project that had a gate change 7 years ago. Would I have to query 40 years of data just to be sure we get the last gate change? Maybe a feature request?

Suggest we add an endpoint that allows you to get the last gate change of a project and a cursor in that point in time (i.e. a page that lets you move backwards through the changes - assuming this is the latest)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.