From 019a6aa147c5b361db0ccff1358a222dbb726ebb Mon Sep 17 00:00:00 2001 From: Andreas Svanberg <andreass@dsv.su.se> Date: Mon, 23 Sep 2024 12:05:31 +0200 Subject: [PATCH] Simplified enum constant naming Use the same language as the GUI to make it easier when talking about the states. --- .../main/java/se/su/dsv/scipro/project/ReflectionStatus.java | 2 +- .../java/se/su/dsv/scipro/reflection/ReflectionServiceImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/se/su/dsv/scipro/project/ReflectionStatus.java b/core/src/main/java/se/su/dsv/scipro/project/ReflectionStatus.java index d2f9d46b52..92b94cd7b6 100644 --- a/core/src/main/java/se/su/dsv/scipro/project/ReflectionStatus.java +++ b/core/src/main/java/se/su/dsv/scipro/project/ReflectionStatus.java @@ -3,5 +3,5 @@ package se.su.dsv.scipro.project; public enum ReflectionStatus { NOT_SUBMITTED, SUBMITTED, - COMPLETION_REQUESTED + IMPROVEMENTS_NEEDED } diff --git a/core/src/main/java/se/su/dsv/scipro/reflection/ReflectionServiceImpl.java b/core/src/main/java/se/su/dsv/scipro/reflection/ReflectionServiceImpl.java index c3a4094ff9..f1eb806f26 100644 --- a/core/src/main/java/se/su/dsv/scipro/reflection/ReflectionServiceImpl.java +++ b/core/src/main/java/se/su/dsv/scipro/reflection/ReflectionServiceImpl.java @@ -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); }); } }