ForecastInstance getAll does not returned expected results. Needed by data-exchange
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 ForecastInstance getAll end-point is not returning expected results.
Expected behavior
I've modified the existing ForecastInstance integration tests to demonstrate that the newly created ForecastInstances are not included in the getAll output. I expect newly created instances to be found.
https://github.com/USACE/cwms-data-api/tree/bugfix/forecast-instance-getall
To Reproduce
Steps to reproduce the behavior:
Run test_get_create_get. I believe the test should pass.
CDA Version (please complete the following information):
I see this in current develop but it is also happening in the data-exchange development that uses
- Version 2025.07.21-023344
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
Start by running the ForecastInstance integration test test_get_create_get and compare its getAll output with the newly created instances. The issue links the bugfix/forecast-instance-getall branch, where modified integration tests demonstrate the failure. Done means newly created ForecastInstances appear in the getAll endpoint results and the test passes.
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