Warm pinned card variants or stop advertising them
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 72/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- nextjs, react, typescript
調査の方向性
Start by reading the cache key builder in app/api/card-image/[username]/route.tsx (lines 28-33) and the write path in app/api/cache-image/route.ts (lines 18-19); the mismatch between them is the bug. Then follow components/WarmOnView.tsx (lines 47-55) and app/[username]/page.tsx (line 316) to see where country and team are dropped before the warm request. Factor the key into one helper both routes call, thread the query values through, and add route tests asserting default and pinned variants each return 200 with bytes and that the plain key survives.
索引モデルが issue の本文から書いたものです。
説明
Current behavior
The README advertises pinned card variants with ?country= and ?team=, but those variants are never warmed. The plain card is served from R2; a pinned variant returns 404 from the empty cache path.
Live probes:
torvalds.png 200 x-og-cache: r2-hit
torvalds.png?country=nl 404 x-og-cache: miss-empty
torvalds.png?team=ferrari 404 x-og-cache: miss-empty
Cause
app/api/card-image/[username]/route.tsx:28-33 builds the cache key from the lowercased login plus the country and team query values. app/api/cache-image/route.ts:18-19 accepts only a login and writes cardpng:v10:${login}::, with empty variant fields. components/WarmOnView.tsx:47-55 sends only kind=card&login=...; app/[username]/page.tsx:316 does not pass the current country or team.
The browser does render the correct variant on the page. The bytes simply never reach the key the image route reads.
Expected behavior
Warm the exact variant currently displayed, or stop advertising variants that cannot be cached. If the variant is supported, pass country and team through WarmOnView and cache-image, build the same key in both places, and keep the plain key for the default view.
Scope
components/WarmOnView.tsxapp/api/cache-image/route.tsapp/[username]/page.tsxapp/api/card-image/[username]/route.tsxkey helper- a route test for default and pinned variants
Acceptance
- A page opened with
?country=nlor?team=ferrariwarms the matching variant. - The variant URL returns
200with real bytes after the warm write. - The plain URL keeps its own object and is not evicted by a variant.
- Tests cover both keys and the default fallback.
- 主要言語
- TypeScript
- スター
- 7
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
LangerSword/gitone のほかの issue
-
bug help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
LangerSword/gitone#7 ·
-
accessibility bug help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
LangerSword/gitone#6 ·
-
bug help wanted
難易度 3/5 半日 初心者へのやさしさ 72/100
LangerSword/gitone#4 ·
-
bug help wanted security
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
LangerSword/gitone#3 ·
-
Add a /health endpoint対応中かも @LangerSword が今日担当しました。 オープンgood first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 45/100
LangerSword/gitone#2 · コメント 1 件 ·
LangerSword/gitone の issue をすべて見る
似ている issue
-
MCP tool results drop structuredContent when text is only a summary対応中かも @Pankaj-bit361 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
inblockio/siwx-oidc-matrix-server#101 ·
メンテナーはふだん 1 日以内に返信
-
status:needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
pingdotgg/t3code#42253 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信