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

Research users should have a code #185

Open
lkeegan opened this issue Nov 25, 2024 · 2 comments
Open

Research users should have a code #185

lkeegan opened this issue Nov 25, 2024 · 2 comments

Comments

@lkeegan
Copy link
Member

lkeegan commented Nov 25, 2024

This can be added to the User object, or stored elsewhere.

This code is then entered by users when they sign up, which provides their data to that researcher

@lkeegan lkeegan added the enhancement New feature or request label Nov 25, 2024
@lkeegan
Copy link
Member Author

lkeegan commented Nov 25, 2024

It might actually be cleaner to have a separate ResearchCode object, one of which is created whenever needed.

Then both researchers and users can link to it - this would also allow multiple researchers to have access to the same data.

@lkeegan
Copy link
Member Author

lkeegan commented Nov 25, 2024

It would also be nice to have a sign-up url with the code pre-filled, e.g. mondey.de/signup?code=xyz123, that researchers could provide to their users, and where the code would already be correctly filled out in the form.

@lkeegan lkeegan added this to the Initial production version milestone Nov 26, 2024
lkeegan added a commit that referenced this issue Nov 27, 2024
- backend
  - add ResearchGroup model with 6-digit code for users to use when signing up
  - add checkdigit dependency to add checksum to code
  - TODO: maybe make the code the id? otherwise have to modify user sign up logic
  - TODO: exclude leading 0s to ensure it remains 6 digits even if converted to an int?
- admin frontend
  - TODO add research groups tab (or maybe add the table to the users tab?)
  - TODO users tab: add button on user to create research group, allow to filter users by research group
- frontend
  - add ResearchCodeInput input which checks the entered code checksum is valid
  - WIP add optional code input to user signup, remove role selection
  - WIP can add code in url to send sign up links to users with code pre-filled (make route /signup?)
  - add cdigit dependency to validate codes
- resolves #185
lkeegan added a commit that referenced this issue Nov 29, 2024
- backend
  - add ResearchGroup model with 6-digit id code for users to use when signing up
  - add checkdigit dependency to add checksum to code
- admin frontend
  - WIP users tab: add reseach group code, add button on user to create research group, allow to filter users by research group
- frontend
  - add ResearchCodeInput input which checks the entered code checksum is valid
  - WIP add optional code input to user signup, remove role selection
  - WIP can add code in url to send sign up links to users with code pre-filled (make route /signup?)
  - add cdigit dependency to validate codes
- resolves #185
lkeegan added a commit that referenced this issue Dec 4, 2024
- backend
  - add ResearchGroup model with 6-digit id code for users to use when signing up
  - add checkdigit dependency to add checksum to code
- admin frontend
  - WIP users tab: add reseach group code, add button on user to create research group, allow to filter users by research group
- frontend
  - add ResearchCodeInput input which checks the entered code checksum is valid
  - WIP add optional code input to user signup, remove role selection
  - WIP can add code in url to send sign up links to users with code pre-filled (make route /signup?)
  - add cdigit dependency to validate codes
- resolves #185
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant