USACE / USACE/cwms-data-api

Timeseries and Location Category Group Descriptions won't write

Open
#1,185 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

If I post this:

{
  "office-id": "MVP",
  "id": "Test loc group",
  "location-category": {
    "office-id": "MVP",
    "id": "Test loc cat",
    "description": "Test loc cat descript"
  },
  "description": "Test loc group descript",

  "loc-group-attribute": 0
 
}

but then then get this (note location-category.description is missing):

[
  {
    "office-id": "MVP",
    "id": "Test loc group",
    "location-category": {
      "office-id": "MVP",
      "id": "Test loc cat"
    },
    "description": "Test loc group descript"
  }
]

Behavior appears to be the same with both the location and timeseries category/group endpoints.

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

Reproduce the POST-then-GET examples for the location and timeseries category/group endpoints described in the issue, comparing the submitted and returned descriptions. Trace the relevant REST endpoint handling and run its existing tests if available; done means location-category descriptions persist and are returned for both endpoint groups.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.