[FR] using `raise ... from ...` to improve sdk debugging

オープン
#685 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
api, backend

調査の方向性

ファイルもテストも指定されていません。まず、元のエラーを置き換える SDK の例外処理の raise を探し、次に Python の例外チェーンを通じて元のコンテキストが見える状態に保たれていることを確認し、影響を受けるケースのカバレッジを追加してください。

索引モデルが issue の本文から書いたものです。

説明

api: core type: feature request

Is your feature request related to a problem? Please describe.
Hey firebase team 👋

I'm always frustrated when an internal error occurs in the sdk, but during handling an that internal error you the sdk raises another and that wipes some of the context of the original error.

Describe the solution you'd like
It would be really nice to use python's built-in raise ... from ... idiom to make the debugging experience better.
It is very feasible and easy to append a from error to any raise statement that references the original error.

Describe alternatives you've considered
Debuggin without this feature 😅

Additional context
I'll gladly implement this. PR coming soon :)

主要言語
Python
スター
1.2k
フォーク
359
平均マージ
5日 6分
マージ済み PR(30日)
2

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

firebase/firebase-admin-python のほかの issue

firebase/firebase-admin-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。