Simplified enum constant naming

Use the same language as the GUI to make it easier when talking about the states.
This commit is contained in:
Andreas Svanberg 2024-09-23 12:05:31 +02:00
parent 33071c5daa
commit 019a6aa147
2 changed files with 2 additions and 2 deletions
core/src/main/java/se/su/dsv/scipro

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