Registration doesn't prefill the invited email for modal and REDCap invites
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 58/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- authentication, backend
Direzione di ricerca
Start with application/user-client/src/pages/Register.tsx:103 and trace how registration uses the response from GET /invites/{inviteId}/prefill; then inspect the endpoint and invite data it reads. The issue says to use the invite's own email when the stored prefill lacks one, while considering the unauthenticated-link concern and related #954. Verify that modal and REDCap invites prefill the email and that existing prefill values are preserved.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
When an admin invites someone from the invite modal or through a REDCap import, the registration page opens with the email field empty. The participant has to type the address the invite went to, and registration looks the invite up by its ID and that email together (application/backend/src/controllers/AuthController.ts:211), so a typo fails with "Invite for … not found".
Register fills the email only from the invite's prefill (application/user-client/src/pages/Register.tsx:103), and GET /invites/{inviteId}/prefill returns the stored prefill as it is.
- The invite modal's prefill only carries
studyParticipant.externalId(application/admin-client/src/components/InviteModal.tsx:49,:87,:228). - The REDCap import removes the email before it builds the prefill (
application/backend/src/controllers/IntegrationsController.ts:340). - The CSV import keeps
profile.emailin the prefill (application/admin-client/src/pages/participants/list.tsx:479-485), so that path should already prefill, though I haven't checked it in a browser. #937 currently removes it from the CSV prefill too.
Fix: have the prefill endpoint fill in the invite's own email when the stored prefill has none, so every invite path gets it. The endpoint needs no login, so this adds the email to what an invite link shows, the same concern as #954. If #954 adds an email check before the form, carry the checked email into the form instead.
Related: #937, #954.
- Lingua principale
- TypeScript
- Stelle
- 4
- Fork
- 0
- Merge medio
- 14h 50m
- PR unite (30g)
- 5
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Garvan-Data-Science-Platform/ctrl
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 82/100
-
admin-client backend bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
backend bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Garvan-Data-Science-Platform/ctrl#970 · 1 commento ·
-
backend bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
backend bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Tutte le issue di Garvan-Data-Science-Platform/ctrl
Issue simili
-
afk-ok area:data-quality importer size:S
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
enorm-labs/event-junkie#3301 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
one-zero-eight/apply-bot#39 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
bigbluebutton/bbb-ui-components-react#108 ·
I maintainer di solito rispondono entro 2 giorni
-
area: app type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
ExpidetGames/code-reviewer#308 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno