Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JN-TBD] Refactoring pre-enroll surveys #1433

Draft
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

devonbush
Copy link
Collaborator

DESCRIPTION (include screenshots, and mobile screenshots for participant UX)

Updates pre-enrollment surveys to be a survey type, rather than have a dedicated data model attribute. this refactor will need to be done in two stages in order to avoid downtime. Stage 1 (this PR) migrates existing pre-enroll surveys and updates the frontend to read the migrated versions, but does not remove the data fields. Stage 2 would remove the data field

The big advantage of this is an overall simplification of our data model, and corresponding improvements in the UX. For example, this gives us the ability to publish pre-enroll surveys individually, which we did not have before. the downside is that this no longer enforces that a study env can only have a single pre-enrollment survey, so we'll have to think about what that means

TO TEST: (simple manual steps for confirming core behavior -- used for pre-release checks)

  1. redeploy apiParticipantApp
  2. go to https://sandbox.demo.localhost:3001
  3. join, confirm pre-enroll processes correctly.
  4. redeploy apiAdminApp
  5. go to https://localhost:3000/demo/studies/heartdemo/env/sandbox/forms
  6. confirm you can view/edit/publish the pre-enroll survey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant