Remove panic on DatabaseConnection::Disconnected
Open
Nobody has claimed this yet.
Category:enhancement
- Dominant language
- Rust
- Stars
- 9.9k
- Forks
- 734
- Avg merge
- 6h 36m
- Merged PRs (30d)
- 8
Description
If our DB disconnects right now the code panics. Can we handle this safely?
src/database/db_connection.rs:119:49:
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
Inspect src/database/db_connection.rs at line 119:49, starting from the DatabaseConnection::Disconnected path and the panic it currently causes. Determine the safe behavior for a database disconnect, then verify that the connection no longer panics and add or update coverage for this case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- database
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100