Allow authors to re-submit their reflection on supervisor's request #12
@ -3,5 +3,5 @@ package se.su.dsv.scipro.project;
|
||||
public enum ReflectionStatus {
|
||||
NOT_SUBMITTED,
|
||||
SUBMITTED,
|
||||
COMPLETION_REQUESTED
|
||||
IMPROVEMENTS_NEEDED
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ class ReflectionServiceImpl implements ReflectionService {
|
||||
public void requestNewReflection(Project project, User user) {
|
||||
authorRepository.findByProjectAndUser(project, user)
|
||||
.ifPresent(author -> {
|
||||
author.setReflectionStatus(ReflectionStatus.COMPLETION_REQUESTED);
|
||||
author.setReflectionStatus(ReflectionStatus.IMPROVEMENTS_NEEDED);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user