USACE / USACE/cwms-data-api

Add a mechanism to completely reset the session.

Open
#1,610 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

An investigation into some failing tests suggests that the database session is not completely cleared.

We should look into possibly adding a ConnectionPreparer or something to the database pool

https://github.com/USACE/cwms-data-api/pull/1596#issuecomment-3961074039

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 with the investigation described in this issue and the linked pull-request comment, then trace how the database pool prepares and clears sessions. Evaluate the proposed ConnectionPreparer approach against the failing tests. Done means the session is completely reset and the affected tests no longer observe leftover database state.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.