gr2m / gr2m/github-project

Throw `GitHubProjectItemNotFoundError` when project item could not be found in query

オープン
#145 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
feature Pull Request welcome
主要言語
JavaScript
スター
36
フォーク
10
PR マージ指標
30日以内にマージされた PR はありません

説明

### Please avoid duplicates

- [x] I checked [all open feature requests](https://github.com/gr2m/github-project/issues?q=is%3Aissue+is%3Aopen+label%3Afeature) and none of them matched my problem.

### What’s missing?

A custom error for when an item is not found

### Why?

currently a GraphqlResponseError is thrown, with an error looking like this

```js
{
type: 'VALIDATION',
path: [ 'BU' ],
locations: [ { line: 4, column: 11 } ],
message: 'The item does not exist in the project'
}
```

### Alternatives you tried

The error can be caught and identified by manually looking through all errors included in the response

### Would you be interested in contributing the feature?

- [ ] yes

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

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

調査の方向性

Payload にはファイル、テスト、エントリーポイントが記載されていません。現在 GraphqlResponseError を表面化させているプロジェクト項目クエリを特定し、項目が存在しない場合のレスポンスを調査して、完成した動作がそのケースに限って GitHubProjectItemNotFoundError を発生させることを確認してください。

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

評価

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

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

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