USACE / USACE/cwms-data-api

Add ability to toggle active/inactive for a rating

Open
#1,714 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Is your feature request related to a problem? Please describe.
Currently the PATCH endpoint for /ratings requires you to send the entire rating and all data.

Describe the solution you'd like
Would like to be able to granularly toggle the active state on a rating via the PATCH endpoint and it allow doing so if not full value is given just keep the old curve.

Describe alternatives you've considered
New endpoints for doing things like controlling active state of various cwms items

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.

Research direction

Start at the PATCH /ratings entry point and trace how partial requests are currently handled. Done means a request can toggle only the active state while retaining the existing curve, while full rating updates continue to work; add or update endpoint tests for both cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.