popcodeorg / popcodeorg/popcode
Show error messages when Firebase operations fail
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 191
- Forks
- 143
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 5
Description
Consolidating https://github.com/popcodeorg/popcode/issues/1005 https://github.com/popcodeorg/popcode/issues/1004 and a related case of a project that never saved.
Firebase generally tries to be pretty resilient to bad network connectivity, but this seems to have the effect of obscuring situations in which it’s entirely unable to connect to the database. There is existing error handling code for most/all Firebase operations but the library itself doesn’t seem to trigger errors as one might expect.
So, we should figure out how to get an up-or-down on Firebase’s ability to successfully complete an operation, and show an error message in these situations (possibly incomplete list):
- Loading a snapshot fails because of a database connection error (this definitely shouldn’t just load a blank project!!)
- Loading existing projects fails because of a database connection error
- Auto-saving to the user’s account fails because of a database connection error
- Creating a snapshot fails because of a database connection error
Contributor guide
No contributing guide indexed for this repository
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 tracing the existing Firebase error handling for the four operations listed: loading a snapshot, loading existing projects, auto-saving, and creating a snapshot. Determine how to reliably detect failed database operations and show an error instead of silently loading a blank project; done means each listed failure is surfaced to the user.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- firebase, javascript
- Domain
- database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100