Mapper: offer Custom Match Algorithm without the OCL Online API

未关闭 适合新手
#2,966 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
javascript, react
领域
frontend

调研方向

从 src/components/map-projects/algorithms.jsx 中的 useAlgos 开始,然后比较 OCL Search 和 OCL Semantic 如何从 locale 字符串获取名称和描述。添加内置算法条目,并检查无论是否有目录,选择器都只显示一次;确认未设置 OCL_ONLINE_API_URL 时 AutoMatch 仍能运行该算法。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
没有语言数据
星标
4
派生
2
平均合并
2 小时 12 分钟
30 天内合并 PR
1

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

OpenConceptLab/ocl_issues 的其他 Issue

查看 OpenConceptLab/ocl_issues 的全部 Issue

相似的 Issue

更多 Web Dev Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。