introlab / opentera

OpenTera - Open TeleRehabilitation Server and Micro-Services
https://github.com/introlab/opentera
Apache License 2.0
17 stars 9 forks source link

GET /api/user/participants has not the expected behavior when using multiple parameters. #246

Open doumdi opened 8 months ago

doumdi commented 8 months ago

Describe the bug Some parameters are not taken into consideration when querying participants due to if/elif structure of the implementation of the /api/user/participants endpoint.

To Reproduce Ex: Query a participant with username and specify its id_site and id_project. Will return participants with the name in any project or site.

Expected behavior Handle multiple parameters and filter results accordingly.