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

オープン
#1,934 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
nodejs, react, typescript

調査の方向性

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時間
マージ済み PR(30日)
61

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DouglasNeuroInformatics/OpenDataCapture のほかの issue

DouglasNeuroInformatics/OpenDataCapture の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。