Handle restored date filters when DataTable and DataView metadata changes after mount
Maintainer thường phản hồi trong vòng 5 ngày
@Shreyag02 đang làm issue này rồi.
Từ ngày 6/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Summary
Handle restored date filters when field metadata gains filterType: 'date' after mount in both DataTable and DataView.
- DataTable:
columnscan gain date-filter metadata afterDataTableRootinitializestableQuery. - DataView: root fields can change after mount, and a view's
fieldsoverride can register after the initial query loads. These changes affecteffectiveFields.
In both cases, an untyped restored date filter can remain untyped. Client filtering can then match no rows, and server query emission can use string-filter behavior instead of date-filter behavior.
This limitation predates PR #919. The follow-up is separate from that PR.
Required changes
- Derive missing filter types from the current DataTable
columnsand DataVieweffectiveFieldswhen computing row-filter state and emitted queries. - Use the shared date-filter metadata helper where appropriate.
- Preserve existing filter values, operators, explicit types, and user edits.
- Do not reinitialize
tableQueryfrom the original query or add an effect that replaces user edits. - Ensure DataView uses the active view's effective metadata, including its
fieldsoverride.
Affected areas
- DataTable:
DataTableRoot, row-filter state derivation, and server query emission. The reviewed root file ispackages/react/components/data-table/data-table.tsx. - DataView:
DataViewRoot,effectiveFields, row-filter state derivation, and server query emission. - Shared date-filter metadata helpers and DataTable/DataView regression tests.
Acceptance criteria
- Mount DataTable with an untyped restored date filter, then give its column
filterType: 'date'. Client filtering compares whole days and selects the expected rows. - Repeat this scenario in DataView for both updated root fields and a view's late-registering
fieldsoverride. - In server mode, both components emit the restored filter with date semantics and a viewer-local
YYYY-MM-DDstringValueafter date metadata becomes available. - Preserve the original filter
valueand any user edits made before metadata arrives. - Leave explicitly typed filters and unrelated filters unchanged.
- Add regression tests for both components, including client filtering and server query emission.
References
Requested by @Shreyag02.
- Ngôn ngữ chính
- TypeScript
- Star
- 69
- Fork
- 13
- Merge trung bình
- 4 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 27
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 raystack/apsara
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 5 ngày
Tất cả issue của raystack/apsara
Issue tương tự
-
A hung CI job runs for 6 hours before it is cancelledCó thể đã có người làm @Olanetsoft đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Olanetsoft/agent-lookout#110 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/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
thedotmack/claude-mem#4757 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
🐛 bug 🗺️ MCP OAuth
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
LibreChat-AI/LibreChat#17077 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100