kblincoe / QualOpt_SE701

2 stars 15 forks source link

Feature Request: Ability to login as both a Researcher and a Participant #147

Open lilcham opened 6 years ago

lilcham commented 6 years ago

Feature Request

39 Introduced a new view for a user who logged in as a participant. Currently, there is only the option to login as a participant or as a researcher; you can't login as both. It would be a good feature to be able to have one account that can be a researcher and a participant (for studies that they are not a researcher for).

Changes

This feature requires backend changes as well as an extensive frontend change. For the backend changes, the login flow must be changed so you can login as a researcher or as a participant. Also, the account creation should be changed to save multiple authorities in the account; currently only the first one is saved (even though there is a Set to save them). After dealing with the login and account creation, limits should be added to the application so that a researcher cannot add themselves to one of their own studies.

A big question to consider is: If we created a participant account initially, how can we be upgraded to a researcher?

For the frontend changes, the frontend must include a way to switch between the two views; participant and researcher view. Switching between views must only be available if there are multiple authorities saved to the user; if not, only one view should be shown and they shouldn't be able to switch.

Work Estimation

Due to the frontend and backend changes stated above, I think this feature request has a work estimation equivalent to a large issue.

softeng-701 commented 6 years ago

@crat019 APPROVED! But, are you sure you are going to work on them?

lilcham commented 6 years ago

@softeng-701 It seems like a bit too much work to do in one day. I just wanted to make the feature request as it is something that I had thought about when finishing up Issue #39