Filter references decide membership through ES, and their q filter is ignored
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
- 48/100
Hướng nghiên cứu
Start in core/collections/models.py at the cited ranges (921-959 and 1842-1860), then inspect the related issues ocl_online#249 and #356 for context. Trace how _apply_search results are handled and how filter-reference membership is evaluated. Done means the q result is applied with a test, membership is checked against the database, and zero-member q filter references are listed and re-evaluated.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Filter (intensional) references and the expansion filter parameter decide membership by querying Elasticsearch (core/collections/models.py:921-959, 1842-1860), so missing or stale docs silently shrink stored expansions. _apply_search's result is discarded at line 942, so a q filter never runs its name or synonym search.
Why now
Index gaps feed back into stored expansions until this is fixed, and the q bug is a plain correctness defect.
Acceptance criteria
- The q filter's result is applied, with a test.
- Filter-reference membership is evaluated from the database, or checked against it.
- Filter references with a q property and zero members are listed and re-evaluated.
Evidence
- ocl-online-docs/platform-health/data/2026-10-05/code-failure-modes.md §Summary 8, UU-18
Related
ocl_online#249, ocl_online#356
Workstream: Drift prevention · Sequence: Later · Suggested phase: P4 (the launch plan sets phases)
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 4
- Fork
- 2
- Merge trung bình
- 2 giờ 12 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không 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 OpenConceptLab/ocl_issues
-
component/fhir type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
OpenConceptLab/ocl_issues#3026 ·
-
component/api decision/human-review signal/needs-access signal/quick-win signal/small-scope signal/well-specified stage/triaged type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
OpenConceptLab/ocl_issues#3012 · 2 bình luận ·
-
component/design-system decision/ai-ready signal/low-risk signal/quick-win signal/small-scope signal/well-specified stage/triaged type/docs
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 70/100
OpenConceptLab/ocl_issues#2983 · 1 bình luận ·
-
component/mapper decision/ai-ready signal/low-risk signal/quick-win signal/small-scope signal/well-specified stage/triaged type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
OpenConceptLab/ocl_issues#2966 · 2 bình luận ·
-
component/mapper component/web decision/human-review signal/low-risk signal/needs-human signal/quick-win signal/small-scope signal/well-specified stage/triaged type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
OpenConceptLab/ocl_issues#2920 · 1 bình luận ·
Tất cả issue của OpenConceptLab/ocl_issues
Issue tương tự
-
feature request good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
TabularisDB/tabularis#1513 ·
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 72/100
fivetran/dbt_recurly#55 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
firsttris/haben#780 · 1 bình luận ·
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 64/100
etesync/etesync-dav#376 ·
-
Type: Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
MovingBlocks/Terasology#5415 ·