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

Đang mở
#1,934 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/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ệ
nodejs, react, typescript
Lĩnh vực
backend, frontend, full-stack

Hướng nghiên cứu

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.

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

Mô tả

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.
Ngôn ngữ chính
TypeScript
Star
119
Fork
19
Merge trung bình
1 ngày 18 giờ
Pull request đã merge (30 ngày)
61

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 DouglasNeuroInformatics/OpenDataCapture

Tất cả issue của DouglasNeuroInformatics/OpenDataCapture

Issue tương tự

Thêm issue về TypeScript

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.