Allow to mark API execution as failed (and don't charge them)
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript
調査の方向性
まず、レスポンスヘッダー、--explicit-charge オプション、支払いトークン、spent テーブルがどのように処理されているかを追跡します。既存の成功パスと失敗パスを確認し、その後、実行エラー用の個別のテーブルを定義して、記載されている各 X-Charge とステータスコードのケースでトークンが期待される状態になることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Allow services to signal that API execution has failed, which should free up the payment token and allow it to be used for another API call.
-
If the
X-Chargeresponse header is set toyes, consider the request a success and mark the payment token as spent. If theX-Chargeheader is set to any other value (normallyno), consider the request a failure and mark the payment token as usable. -
If the
X-Chargeresponse header is not specified,-
If the
--explicit-chargeconfig option is set, consider the request a failure. -
If the
--explicit-chargeconfig option is not set, consider the request a success if the status code is2xxor3xx, otherwise consider it a failure.
-
Freeing up the payment token means removing it from the spent table, which means we should log the execution error to a separate (new) table.
- 主要言語
- JavaScript
- スター
- 151
- フォーク
- 12
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ElementsProject/paypercall のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 45/100
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
enhancement low priority
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
ElementsProject/paypercall#1 · コメント 3 件 ·
ElementsProject/paypercall の issue をすべて見る
似ている issue
-
Design only Leadership Survey SLFS
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
bcgov/digital-journeys#2293 ·
-
Toolkit
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
API Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ProjectSidewalk/SidewalkWebpage#5556 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
jessepollak/home#1454 ·
メンテナーはふだん 1 日以内に返信
-
Mend: dependency security vulnerability untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
opensearch-project/OpenSearch-Dashboards#12822 ·
メンテナーはふだん 1 日以内に返信