python-mapswipe-workers
python-mapswipe-workers copied to clipboard
backend workflow to change number of reviewers per group
Currently we do not have a workflow to change the number of reviewers.
Initially the number of reviewers is set during the project creation and all groups have the same number of users required.
Ideally we would be able to update this once a project has been created, e.g. for all groups or only for specific groups.
When the number of reviewers is changed this has to be considered during the project progress calculation.
- [ ] new command in mapswipe_workers CLI to update verificationCount
- [ ] change
v2/projects/{projectId}/verificationNumber
to change the number of reviewers for all groups - [ ] add
v2/groups/{projectId}/{groupId}/verificationNumber
attribute and set value to change the number of reviewers for specific groups only - [ ] be able to pass a projectId and the new verificationCount
- [ ] be able to pass projectId, list of group ids and the new verificationCount
- [ ] be able to pass projectId, geometry to select groups ids and the new verificationCount
- [ ] make sure to adjust verificationNumber also in postgres database
- [ ] if there are different number of reviewers required for groups of the same project, we need to adjust the project progress calculation a bit