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

Create endpoint to getParticipants for participants page #34

Open
davidscavnicky opened this issue Apr 19, 2024 · 2 comments
Open

Create endpoint to getParticipants for participants page #34

davidscavnicky opened this issue Apr 19, 2024 · 2 comments
Assignees

Comments

@davidscavnicky
Copy link
Contributor

davidscavnicky commented Apr 19, 2024

Create an endpoint that returns a list of participants, where each participant contains:

  • email
  • firstName
  • lastName
  • isRegistered
  • invitedOn
  • participantId (anonymous links)

/{{StudyID}} - queries should be made by a particular study

As for now, frontend needs to call 2 endpoints and merge the responses to get all data. This doesn’t allow the feature of sorting by invitedOn

@davidscavnicky
Copy link
Contributor Author

this should be active, @jakdan99 added that there should be id as well in case the participant is anonymous. (The one that is generated by keycloak when the anonymous accounts are generated).

@xelahalo is okey to provide with participant id in case if its anonymous?

@davidscavnicky
Copy link
Contributor Author

davidscavnicky commented Apr 19, 2024

two cases: anonymous participants or participants in a study

  1. what's the logic of showing accountId in anonymous studies?
    ( I mean if we do same implementation as for GET_PARTICIPANTS_ACCOUNT ).

  2. isRegisteredOn takes from UserRepresentation "isVerified"; will return boolean for non-anonymous studies and NULL value for anonymous?, because it probably doesn't have a logic to check registration of generated users while doing an anonymous study user generation. @jakdan99 what do you think?

I don't know if it should be more thought through on the design or this is enough.

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

No branches or pull requests

3 participants