A role refused registration_info gets a forbidden toast on every Applications visit
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 74/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- node.js, react, typescript
調査の方向性
src/features/instance/applications/hooks/useSupportsDeploymentSSE.tsから始めて、再試行やメタデータのオプションを含め、registration_infoクエリがどのように設定されているかをたどってください。次に、queryErrorHandlerと、Issueで言及されているretryUnlessRejected()または拒否の処理を読んでください。registration_infoを拒否されたロールでApplicationsにアクセスするたびにリクエストが繰り返されたりForbiddenトーストが表示されたりしなくなり、バージョンがない場合はstagingを引き続き利用できない状態になれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Problem
A role whose operations allowlist doesn't include registration_info sees a "forbidden" error toast every time it opens the Applications page.
useStagedDeploymentsAvailable (src/features/instance/applications/hooks/useSupportsDeploymentSSE.ts:34) queries registration_info for every user, with React Query's default three retries. That hook is behind the always-mounted redeploy dialog. Harper's allowlist gate refuses the operation to such a role with a 403. Checked on Harper 5.4.0-beta.2: a role with operations: ["deploy_component"] gets 403 for both registration_info and get_configuration. The query retries three times, and then queryErrorHandler toasts it.
Nothing breaks: without a version, staging isn't offered. The only effect is the noise, and the four requests on every visit.
Fix
Either skip the query for a role that can't call it, or give it retry: retryUnlessRejected() and meta: { refusalIsAnAnswer: true }. That meta flag is added to queryErrorHandler in the private-database-copy PR for get_configuration.
Review-Deferral: edc14630cb6cf70a severity=minor category=reliability
🤖 Generated by Anthropic Claude (Claude Code); posted via @dawsontoth.
- 主要言語
- TypeScript
- スター
- 5
- フォーク
- 4
- 平均マージ
- 1日 20時間
- マージ済み PR(30日)
- 140
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
HarperFast/studio のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
HarperFast/studio#2070 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
HarperFast/studio#2053 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
HarperFast/studio#2026 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
HarperFast/studio#2021 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
HarperFast/studio#1993 ·
メンテナーはふだん 2 日以内に返信
HarperFast/studio の issue をすべて見る
似ている issue
-
area:cards enhancement ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
fil-donadoni/tolaria#8883 ·
メンテナーはふだん 1 日以内に返信
-
xsd:integer cast from a string rejects negative numbers, a leading + and surrounding whitespaceオープンbug 🐛
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
comunica/comunica#1960 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Waiting for: Product Owner
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
getsentry/sentry-javascript#26203 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
bytedance/flowgram.ai#1235 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
devswha/herdr-web-ui#3325 ·