IQSS / IQSS/dataverse-client-javascript

Create the NotFoundError

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

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

pm.GREI-d-2.7.1 pm.GREI-d-2.7.2 Size: 33
主要言語
TypeScript
スター
20
フォーク
11
平均マージ
2日 5時間
マージ済み PR(30日)
1

説明

Overview of the Feature Request

For now any error returned by the API in a read operation returns a ReadError, which includes the message with the HTTP error code as a very simple string, but we can define a new NotFoundError that extends ReadError also including more refined data. This way we can safely identify a not found error within the block catch of the promise, and carry out the necessary actions in the SPA.

What Inspired the Request?

What Existing Behavior Do You Want Changed?

Error handling

Any Brand New Behavior Do You Want to Add to js-dataverse?

New not found error

Any Open or Closed Issues Related to This Feature Request?

No

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

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

はじめの一歩

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

調査の方向性

まず、js-dataverse における既存の ReadError の実装と、読み取り操作のエラー処理を追跡します。API の not-found レスポンスがどこでエラーに変換され、そこでどのような詳細化されたデータが利用できるのかを特定します。既存の ReadError の動作を維持したまま、promise の catch で個別の NotFoundError を識別できれば完了です。

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

評価

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

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

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