Allow authors to re-submit their reflection on supervisor's request #12

Closed
ansv7779 wants to merge 8 commits from 3213-reflection-resubmission into develop
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 019a6aa147 - Show all commits

View File

@ -3,5 +3,5 @@ package se.su.dsv.scipro.project;
public enum ReflectionStatus {
NOT_SUBMITTED,
SUBMITTED,
COMPLETION_REQUESTED
IMPROVEMENTS_NEEDED
}

View File

@ -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);
});
}
}