Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Participant registration lets the participant set their own externalId

Đang mở Phù hợp với người mới
#969 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
api, security

Hướng nghiên cứu

Bắt đầu từ handler POST /auth/register/participants/{inviteId} và theo dõi registerParticipant đến kiểu RegisterParticipantRequest và phần xử lý dữ liệu điền sẵn từ lời mời. Xem các issue liên quan #497, #602 và #952 để nắm ngữ cảnh. Công việc hoàn tất khi request không thể đặt externalId, giá trị được lưu chỉ lấy từ dữ liệu điền sẵn của lời mời và các bài kiểm thử đăng ký bao quát hành vi này.

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

Mô tả

backend bug

POST /auth/register/participants/{inviteId} accepts externalId in the body. When the invite's prefill carries no external ID, registerParticipant keeps the participant's own value and saves it on their study record. The registration form never sends this field, so it takes a hand-made request, but the server doesn't stop it.

External ID is the study's own identifier for a participant, used to map CTRL participants to the study's records (#497, #602). A participant can pick any value, including one that already belongs to someone else, because external IDs don't have to be unique (#952). Their consent could then be matched to the wrong person's records.

Fix: remove externalId from RegisterParticipantRequest and take it only from the invite's prefill.

Related: #497, #602, #952.

Ngôn ngữ chính
TypeScript
Star
4
Fork
0
Merge trung bình
14 giờ 50 phút
Pull request đã merge (30 ngày)
5

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 Garvan-Data-Science-Platform/ctrl

Tất cả issue của Garvan-Data-Science-Platform/ctrl

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.