Source version concept and mapping lists: num_found and next ignore updatedSince
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
- 72/100
Hướng nghiên cứu
Start with the concept and mapping list views named in the issue: core/concepts/views.py around line 232 and core/mappings/views.py around line 100. Trace how total_count is calculated versus the filters used for the returned rows, then find the relevant tests for version list pagination. Done when tests show num_found, pages, and next reflect the filtered rows for updatedSince, with no next after the rows are exhausted.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
On a source version's concepts or mappings list, updatedSince (and updatedBy) filter the rows, but num_found, pages and next count the whole version. Example:
GET /orgs/CIEL/sources/CIEL/v2026-09-24/concepts/?updatedSince=2026-10-01&limit=100 → body [], num_found: 55582, num_returned: 0, and a next header through page 556.
A client that follows next, as the paging docs say to, makes 556 requests that each return nothing. Reproduced on staging: a 3-concept version with updatedSince after its release returned num_found: 3 and an empty body.
Cause: for non-HEAD versions, total_count counts through_qs with only the retired filter, while the rows use every filter from get_filters_for_criterion: core/concepts/views.py#L232, core/mappings/views.py#L100.
Acceptance criteria
- On a version's concepts and mappings lists,
num_found,pagesandnextcount the same filtered rows the body pages through. - A test covers
updatedSinceon a version list: the headers match the rows, and there's nonextwhen the rows are exhausted.
- 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ự
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
coder/claudecode.nvim#587 ·
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 82/100
digitalbazaar/http-client#60 ·
-
Độ 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 78/100
topmonks/hlidac-shopu#3687 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug lane: fast
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
unicef/adt-studio#1109 ·
Maintainer thường phản hồi trong vòng 2 ngày