popcodeorg / popcodeorg/popcode
Show error messages when Firebase operations fail
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 191
- Forks
- 143
- Ø Merge
- 4 T. 11 Std.
- Gemergte PRs (30 T.)
- 5
Beschreibung
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
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die bestehende Firebase-Fehlerbehandlung für die vier aufgeführten Vorgänge nachzuverfolgen: Laden eines Snapshots, Laden vorhandener Projekte, automatisches Speichern und Erstellen eines Snapshots. Ermittle, wie fehlgeschlagene Datenbankoperationen zuverlässig erkannt und ein Fehler angezeigt werden kann, anstatt stillschweigend ein leeres Projekt zu laden; als erledigt gilt die Aufgabe, wenn jeder aufgeführte Fehler dem Benutzer angezeigt wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- firebase, javascript
- Bereich
- database
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100