Docs cache: two call sites can still share a key through a helper's url parameter
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- backend
Hướng nghiên cứu
Start by reading src/server/providers/docs-cache-keys.test.ts (the guard from #744) and the cached-parse path in src/server/providers/google-docs.ts, especially the miss path that skips the JSON round-trip. Then trace every call site that builds a docs-cache key and find ones where a helper takes a url parameter, since those are the shapes the current test cannot distinguish. Decide between per-parse names in the key or schema-validated reads, and make the acceptance test cache two shapes at one URL and assert a reported miss rather than a TypeError.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
The BytePlus poll failed for 1h45 on 2026-11-21 because two parsers cached different shapes under one docs-cache key (#744). The guard added there, src/server/providers/docs-cache-keys.test.ts, compares key expressions as written: it cannot see two constants holding the same URL, or a helper that takes a url parameter. cachedGoogleDocs (google-docs.ts) also has its own miss path with no JSON round-trip.
Ask
Make a collision impossible, not just tested: for example have each cached parse declare a name that goes into the key, or validate the cached shape on read with the parser's own schema and treat a mismatch as a miss that is reported.
Acceptance
- A test that caches two shapes at one URL through a helper fails loudly at the read, not with a TypeError in the caller.
- Ngôn ngữ chính
- TypeScript
- Star
- 0
- Fork
- 1
- Merge trung bình
- 5 giờ 40 phút
- Pull request đã merge (30 ngày)
- 193
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của TanStack/schemas
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của TanStack/schemas
Issue tương tự
-
[Site] Active section detection should respect scroll-margin-topCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởarea/web reproduced type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
anomalyco/opencode#65384 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
swc-project/swc-ai-issues#1001 ·
-
Add: Da Vinci Asia VietnamĐang mởcheck:passed streams:add
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
fix(table): CollapseColumn uses wrong caret icon for expandable row toggleCó thể đã có người làm @redhat-chai-bot đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
patternfly/patternfly-react#12727 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CLI OAuth login fails behind an authenticating proxy: GET /api/v1/user omits Proxy-AuthorizationĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
lightdash/lightdash#33086 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày