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

Aperta
#1,934 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
nodejs, react, typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
TypeScript
Stelle
119
Fork
19
Merge medio
1g 18h
PR unite (30g)
61

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DouglasNeuroInformatics/OpenDataCapture

Tutte le issue di DouglasNeuroInformatics/OpenDataCapture

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.