Do not add duplicate supervisors in Daisy #26
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "handle-supervisor-change-failure"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Daisy's API does not support the function "change supervisor" and only what comes down to SQL INSERT and DELETE on a specific table. If the removal of the previous supervisor(s) failed the new one was still added. This change makes it so that if the removal of any (there is no limit in the API) current supervisor fails it will not attempt to add the new supervisor.
Fixes #39
How to test
f3c4f7aeb8
to09cf81d4f3
@ -247,7 +248,20 @@ public class ProjectExporter extends AbstractWorker {
if (contributor.getPerson().getId().equals(project.getHeadSupervisor().getIdentifier())) {
add = false;
I suggest, while we are still on it, rename the variable from "add" to "toAdd".