USACE / USACE/cwms-data-api

ForecastInstance getAll does not returned expected results. Needed by data-exchange

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

Nobody has claimed this yet.

bug
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.