Queue xhr requests until auth completed
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 28/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript
- 領域
- frontend
調査の方向性
client/src/index.js から始めて、初期の認証リクエストと後続の xhr 呼び出しを追跡します。明示的な wait-for-auth の動作をどのようにするべきか、またどのリクエストが対象になるのかをメンテナーと確認します。依存するリクエストが暗黙の動作に依存せず、認証が完了するまで待機すれば完了です。この issue ではテストは指定されていません。
索引モデルが issue の本文から書いたものです。
説明
In index.js we're currently breaking the choo paradigm by firing an xhr request out in the wild, before even initialising the app. This is necessary because all the subsequent requests depend on the session that should be set by that initial request.
I was thinking that one of the only other ways to accommodate this would be to "queue" any subsequent xhr requests until the initial auth request is completed (since subsequent requests happen asynchronously). I thought it was crazy, but @yoshuawuyts just thought of the same thing, so maybe it's not so nuts. We'd just want to ensure that queuing is explicit so there's no magic, ie.
xhr({uri: '...'}, waitForAuth=True)
(but, ya know, in javascript not python)
This is definitely "backlog"
- 主要言語
- Python
- スター
- 22
- フォーク
- 5
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CodeForPhilly/stately のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
CodeForPhilly/stately#60 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
CodeForPhilly/stately#59 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
CodeForPhilly/stately#57 ·
-
Search case list オープンapi ui
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
CodeForPhilly/stately#55 ·
-
api bug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
CodeForPhilly/stately#54 ·
CodeForPhilly/stately の issue をすべて見る
似ている issue
-
bug priority:low
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
CyberAgent/psd2svg#436 ·
-
area/install-update comp/cli comp/desktop P3 sweeper:risk-compatibility type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
NousResearch/hermes-agent#122386 · コメント 1 件 ·
-
ai-generated
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
vllm-project/production-stack#1105 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100