Concept detail with `includeInverseMappings=true` returns every inverse mapping, unpaginated

Đang mở
#2,937 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
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
api

Hướng nghiên cứu

Compare the concept detail endpoint with the mappings list URL described in the issue to understand how inverse mappings are included and paginated. First clarify the proposed response behavior with the TBv2 and TBv3 owners; then check the endpoint documentation and relevant API tests. Done means the agreed cap, total and paging URL (or caller guidance) are covered, with tests for the large result set.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

component/api decision/human-review program/platform-health signal/needs-human signal/small-scope stage/triaged type/bug

GET /orgs/CIEL/sources/CIEL/concepts/1065/?includeMappings=true&includeInverseMappings=true returns 869 mappings (1.39 MB) and takes 1.2–2.5 s. Several LOINC concepts, e.g. 72230-6 and LA6577-6, have 6,000–7,200 inverse mappings in their own source, so their responses would run to many MB.

The repository's mappings list, …/mappings/?toConcept=…&toConceptSource=…&toConceptOwner=…, already pages and counts the same set, in about 0.3 s.

  • Concept detail caps the inverse mappings it includes inline (e.g. at 100), and reports the total and the list URL that pages through the rest. Or the docs point callers to the list.
  • The change to default behaviour is agreed with the TBv2 and TBv3 owners.
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ề Backend & API Design

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.