Mapper: offer Custom Match Algorithm without the OCL Online API

Đang mở Phù hợp với người mới
#2,966 2 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, react
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu với useAlgos trong src/components/map-projects/algorithms.jsx, sau đó so sánh cách OCL Search và OCL Semantic lấy tên và mô tả từ các chuỗi locale. Thêm mục thuật toán tích hợp sẵn và kiểm tra để bộ chọn hiển thị mục đó đúng một lần, dù có hay không có danh mục; xác nhận AutoMatch có thể chạy thuật toán đó khi OCL_ONLINE_API_URL chưa được đặt.

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

Mô tả

component/mapper decision/ai-ready signal/low-risk signal/quick-win signal/small-scope signal/well-specified stage/triaged type/bug

The open OCL Mapper has all the code a custom matching algorithm needs: the API URL and token fields in MultiAlgoSelector.jsx, and the batched POST in MapProject.jsx, whose request and response follow $match. But the Mapper only lists Custom Match Algorithm when the algorithm catalog at OCL_ONLINE_API_URL (/match-algorithms/) serves it. A Mapper built without OCL_ONLINE_API_URL offers only OCL Search and OCL Semantic.

Add Custom Match Algorithm to the built-in algorithms (useAlgos in src/components/map-projects/algorithms.jsx), so every build offers it. The catalog can still override it: MapProject.jsx already merges catalog entries over built-in ones by id and type (custom, custom).

Acceptance criteria

  • With no OCL_ONLINE_API_URL, the Matching Algorithm picker lists Custom Match Algorithm, and AutoMatch runs with it.
  • With the catalog configured, the picker lists it once.
  • Its name and description come from locale strings, like OCL Search and OCL Semantic.

Context: the Matching Algorithms page in OCL Docs (OpenConceptLab/ocl_issues#2817, OpenConceptLab/ocl-docs#75) documents Custom Match Algorithm as part of the open Mapper.

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ề Web Dev

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.