[Bug]: Location Group endpoint doesn't allow for updating metadata
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 28
- Forks
- 25
- Avg merge
- 4d 22h
- Merged PRs (30d)
- 20
Description
Describe the bug
The location group POST endpoint calls cwms_loc.create_loc_group which throws an error if the group already exists. The PATCH endpoint supports rename and updating assigned locations. This means neither endpoint supports editing the shared loc ref, shared loc alias id, description, or attribute metadata fields.
Expected behavior
PATCH should handle the update.
To Reproduce
- store a loc group with those nullable metadata fields as null
- try to store the same loc group now with those fields defined
Priority
Medium
Logs/Incident Identifier
No response
CURL Commands
CDA Version
2026.08.14-testa
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Trace the Location Group PATCH handler and its interaction with cwms_loc.create_loc_group, then reproduce the two-step case described in the issue: first store nullable metadata as null, then update those fields. Done means PATCH updates the shared loc ref, shared loc alias id, description, and attribute metadata without the existing-group error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100