Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Coder plugin: clean up error-handling logic

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript

調査の方向性

まず、CoderプラグインのカスタムBackstageHttpError処理と、期限切れの可能性があるセッショントークンを確認するロジックを見つけます。#132で失敗したテストを確認し、続いてAxiosErrorの処理と401のクエリキャッシュパスが追加のリクエストなしで意図したとおりに動作することを検証します。完了の条件は、クリーンアップが成功するテストでカバーされていることです。

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

説明

bug good first issue

The Coder plugin has some vestigial code from before we started using Axios. Now that we have Axios's AxiosError, there's far less of a need for the custom BackstageHttpError

In addition, the logic for spying on potentially-expired Coder session tokens can be cleaned up. The current code works, but when a Coder query fails, the plugin will make an entirely brand new request to revalidate the auth state. But if the error has a 401 status, we don't need to do that – we know that the session token is likely invalid, so we can mutate the query cache directly.

Tried to get these fixed really quickly in #132, but it started making the tests fail, so I decided to split this off into a separate issue.

主要言語
TypeScript
スター
67
フォーク
9
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

coder/backstage-plugins のほかの issue

coder/backstage-plugins の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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