Filter references decide membership through ES, and their q filter is ignored

Đang mở
#2,884 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
elasticsearch, python
Lĩnh vực
databases

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ả

component/api component/content decision/human-review priority/medium program/platform-health signal/high-risk signal/needs-access signal/well-specified stage/triaged type/bug

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của OpenConceptLab/ocl_issues

Tất cả issue của OpenConceptLab/ocl_issues

Issue tương tự

Thêm issue về Databases

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.