Let bulk remote assignments identify subjects by an instance's custom identifying fields

未关闭
#1,934 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
1-2 天
新手友好度
48/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃

调研方向

Start by reading the bulk assignment wizard’s column mapping and deriveCustomFieldsSubjectId in packages/subject-utils; check where the instance’s CUSTOM_FIELDS setting and BULK_ASSIGNMENT_MAX_SUBJECTS are used. Verify that mapped raw identifiers derive the same ids as Start Session, that the mapping is hidden when CUSTOM_FIELDS is unavailable, and that a 500-row assignment gives progress feedback or runs derivation off the main thread.

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

描述

Area: Web Difficulty: Medium Enhancement Priority: Medium

Bulk remote assignments cannot identify subjects by an instance's custom identifying fields. The wizard's column mapping is built around the four Personal Info fields (first name, last name, date of birth, sex), so it can match a spreadsheet only by subject id or by those four columns.

Until this is built, staff bulk-assign CUSTOM_FIELDS subjects by their stored id. A site that holds only a spreadsheet of raw identifiers cannot bulk-assign a subject until that subject has been through Start Session once.

What it needs

  • Mapping: a column for each field the administrator defined, in the defined order, beside the existing Personal Info mapping.
  • Derivation: each row's id is derived with the same normalization, JSON-array encoding, salt and PBKDF2 iteration count as deriveCustomFieldsSubjectId in packages/subject-utils, so a derived id matches the one Start Session stores.
  • Cost: at 600,000 PBKDF2 iterations, one derivation took about 53 ms on a laptop, so a full 500-row assignment (BULK_ASSIGNMENT_MAX_SUBJECTS) takes about 27 seconds. The wizard needs progress feedback, or derivation needs to move off the main thread.
  • Visibility: the mapping is offered only while the instance offers CUSTOM_FIELDS.
主要语言
TypeScript
星标
119
派生
19
平均合并
1 天 18 小时
30 天内合并 PR
61

环境准备

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

从这里开始

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

DouglasNeuroInformatics/OpenDataCapture 的其他 Issue

查看 DouglasNeuroInformatics/OpenDataCapture 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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