popcodeorg / popcodeorg/popcode
Show error messages when Firebase operations fail
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- JavaScript
- Star
- 191
- Fork
- 143
- Merge trung bình
- 4 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 5
Mô tả
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
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách lần theo cơ chế xử lý lỗi Firebase hiện có cho bốn thao tác được liệt kê: tải snapshot, tải các dự án hiện có, tự động lưu và tạo snapshot. Xác định cách phát hiện đáng tin cậy các thao tác cơ sở dữ liệu thất bại và hiển thị lỗi thay vì âm thầm tải một dự án trống; công việc được xem là hoàn tất khi từng lỗi được liệt kê đều được hiển thị cho người dùng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- firebase, javascript
- Lĩnh vực
- database
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100