Extend the Effect skipInitial oracle lane: ordered windows, includes, failures, and ordinary Effects
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ó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- react, typescript
- Lĩnh vực
- backend-api-design, testing-qa
Hướng nghiên cứu
Start with Model D in packages/db/tests/query/includes-temporal-oracle.test.ts and the progressive source readiness review record. Check whether createEffect supports Collection-valued or inline includes, then extend the lane grammar and cells for the listed shapes, histories, and consumers. Update the open cells in docs/contributing/oracle-reviews/progressive-source-readiness.md and the Includes and publication row in docs/contributing/oracle-coverage.md; done means each new cell rejects a plausible wrong design at its intended checkpoint.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
#2115 added Model D to packages/db/tests/query/includes-temporal-oracle.test.ts. Its Effect lane checks this law: an Effect with skipInitial ends suppression at initial-query readiness. For an on-demand source, readiness means the Effect's own initial loads settled. For an eager source, it means the source Collection is ready. An obsolete or aborted load can neither hold nor close suppression.
The Effect lane covers only part of that law. This issue lists the missing shapes, histories, and consumers so that they can be added.
What the lane covers now
- Shapes: a direct on-demand root, the lazy side of a left join, and eager roots with and without an explicit
syncMode. - Histories: every legal order of delivery, settlement, source readiness, and one later change. On-demand shapes also get one
truncateor (join only)rekeybefore settlement. - Observations: entered post ids, other events, and acquisitions at each step checkpoint.
- Consumer:
createEffect({ skipInitial: true })only.
Missing coverage
Shapes
- Ordered window (
orderBy+limit) over a lagging on-demand source. Ordered Effects already use publication participants for their ordered chain (trackOrderedPublication), so they also interact with the new initial-load hold. The live-query lane has anorderedshape that can serve as a starting point. Itssettlestep resolves the whole continuation chain, and it records only that an acquisition happened. - Includes (a correlated child query). First, check whether
createEffectaccepts Collection-valued or inline includes. If it does, add an include shape. If it does not, record that limit in the lane prose. - Single result (
findOne()), which is the shape from #2113. The live-query lane has it. The Effect lane does not. - Two on-demand sources in one Effect, for example a join where both sides are on-demand. One source can settle before the other. Suppression must stay on until every current initial load settles.
Histories
- A real load failure during the initial load. The expected result is that
onSourceErrorfires, the Effect is disposed, and no deltas are delivered. Model D excludes rejected acquisitions now. Today only source inspection backs the claim that a real failure disposes the Effect. Also add a hostile control: a rejection classified as success must not change any observation. - Source error or cleanup while the source lags behind its settled subset.
- Disturbance after readiness. A
truncateorrekeyaftersettlemust not reopen suppression, and its later rows must arrive as deltas. - Truncate of an eager source before
markReady(). - More than one disturbance in one history, for example
rekeythentruncate, or tworekeysteps.
Consumers
-
skipInitial: false. ARCHITECTURE.md says that ordinary initial requests keep their existing callback timing. No lane checks this over a lagging source. A mutant that tracks initial loads withoutskipInitialsurvived Model D. It is equivalent only becauseinitialLoadCompletestarts astruewithoutskipInitial. A lane forskipInitial: falsewould make that argument executable. -
useLiveQueryEffect(React). There is no framework witness for an Effect over a lagging source.
Calibration to keep
For each new cell, show that it rejects a plausible wrong design at the intended checkpoint, as in the #2115 review record (docs/contributing/oracle-reviews/progressive-source-readiness.md). The present lane rejects these designs:
- the shared ordered-repair failure flag (10 rekey cells),
- releasing a hold without the truncate takeover (80 truncate cells),
- a design that ignores source readiness (8 eager cells).
New shapes should keep these kills and add one for their own distinction.
Where to update
- Model D's prose and grammar in
includes-temporal-oracle.test.ts. - The open cells in
docs/contributing/oracle-reviews/progressive-source-readiness.md. - The "Includes and publication" row in
docs/contributing/oracle-coverage.md.
- Ngôn ngữ chính
- TypeScript
- Star
- 3.9k
- Fork
- 272
- Merge trung bình
- 1 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 222
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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/db
-
Electric progressive: apply and confirm changes to visible rows during the background full syncĐang mở
Độ khó 5/5 Hơn một tuần 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ó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Progressive collection live queries remain suspended after their requested subset finishes loadingCó thể đã có người làm @KyleAMathews đã nhận hôm nay. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 5/100
Maintainer thường phản hồi trong vòng 1 ngày
-
browser-db-sqlite-persistence: option to load the wa-sqlite WASM by URL instead of inlined base64Có thể đã có người làm @KyleAMathews đã nhận 1 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
TanStack/db#2101 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
affected/v17 affected/v18 area/frontend type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
umbraco/Umbraco-CMS#24186 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/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
better-auth/better-auth#11723 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: docs difficulty: easy documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Worker-Erstellung bricht langsame Git-Worktree-Checkouts nach 20 Sekunden abCó thể đã có người làm @KajoVanBuyten đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
AgentSystemLabs/agent-office#367 ·
Maintainer thường phản hồi trong vòng 1 ngày