diff --git a/src/main/java/edu/byu/cs/controller/CasController.java b/src/main/java/edu/byu/cs/controller/CasController.java index 95325ee2..99c21263 100644 --- a/src/main/java/edu/byu/cs/controller/CasController.java +++ b/src/main/java/edu/byu/cs/controller/CasController.java @@ -1,6 +1,9 @@ package edu.byu.cs.controller; import edu.byu.cs.canvas.CanvasException; +import edu.byu.cs.controller.exception.BadRequestException; +import edu.byu.cs.controller.exception.InternalServerException; +import edu.byu.cs.dataAccess.DataAccessException; import edu.byu.cs.model.User; import edu.byu.cs.properties.ApplicationProperties; import edu.byu.cs.service.CasService; diff --git a/src/main/java/edu/byu/cs/controller/exception/PriorRepoClaimBlockageException.java b/src/main/java/edu/byu/cs/controller/exception/PriorRepoClaimBlockageException.java new file mode 100644 index 00000000..c72d5c42 --- /dev/null +++ b/src/main/java/edu/byu/cs/controller/exception/PriorRepoClaimBlockageException.java @@ -0,0 +1,9 @@ +package edu.byu.cs.controller.exception; + +public class PriorRepoClaimBlockageException extends Exception { + private static final String secrets = "btw im a teapot"; + + public PriorRepoClaimBlockageException(String message) { + super(message); + } +} diff --git a/src/main/java/edu/byu/cs/service/SubmissionService.java b/src/main/java/edu/byu/cs/service/SubmissionService.java index e34bef09..6ba4fc5c 100644 --- a/src/main/java/edu/byu/cs/service/SubmissionService.java +++ b/src/main/java/edu/byu/cs/service/SubmissionService.java @@ -194,8 +194,8 @@ public static void approveSubmission(String adminNetId, ApprovalRequest request) /** * Creates a grader for the given request with an observer that sends messages to the subscribed sessions * - * @param netId the netId of the user - * @param phase the phase to grade + * @param netId the netId of the user + * @param phase the phase to grade * @param adminSubmission if the grader should run in admin mode * @return the grader * @throws IOException if there is an error creating the grader diff --git a/src/main/java/edu/byu/cs/service/UserService.java b/src/main/java/edu/byu/cs/service/UserService.java index 0eb600ca..7c04691a 100644 --- a/src/main/java/edu/byu/cs/service/UserService.java +++ b/src/main/java/edu/byu/cs/service/UserService.java @@ -113,7 +113,8 @@ private static boolean isValidRepoUrl(String url) { /** * Checks to see if anyone currently or previously (other than the provided user) has claimed the provided repoUrl. * returns if the repo is available. it will throw otherwise, containing a message why - * @param url the repoUrl to check if currently or previously claimed + * + * @param url the repoUrl to check if currently or previously claimed * @param netId the user trying to claim the url, so that they can claim urls they previously claimed * @return null if the repo is available for that user. returns the update that prevents the user from claiming the url. */ diff --git a/src/main/java/edu/byu/cs/util/PhaseUtils.java b/src/main/java/edu/byu/cs/util/PhaseUtils.java index e63e7e50..03f6dad0 100644 --- a/src/main/java/edu/byu/cs/util/PhaseUtils.java +++ b/src/main/java/edu/byu/cs/util/PhaseUtils.java @@ -152,9 +152,9 @@ public static boolean isPhaseGraded(Phase phase) { */ public static Collection requiredRubricTypes(Phase phase) { return switch (phase) { - case Phase0, Phase1, Phase3, Phase4 -> Set.of(Rubric.RubricType.PASSOFF_TESTS); + case Phase0, Phase1, Phase3, Phase4, Phase6 -> Set.of(Rubric.RubricType.PASSOFF_TESTS); case GitHub -> Set.of(Rubric.RubricType.GITHUB_REPO); - case Phase5, Phase6, Quality, Commits -> Set.of(); + case Phase5, Quality, Commits -> Set.of(); }; } diff --git a/src/main/resources/frontend/src/components/config/BannerConfigEditor.vue b/src/main/resources/frontend/src/components/config/BannerConfigEditor.vue new file mode 100644 index 00000000..f6729e96 --- /dev/null +++ b/src/main/resources/frontend/src/components/config/BannerConfigEditor.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/main/resources/frontend/src/components/config/ConfigSection.vue b/src/main/resources/frontend/src/components/config/ConfigSection.vue new file mode 100644 index 00000000..a35d2e74 --- /dev/null +++ b/src/main/resources/frontend/src/components/config/ConfigSection.vue @@ -0,0 +1,72 @@ + + + + + diff --git a/src/main/resources/frontend/src/components/config/CourseIdConfigEditor.vue b/src/main/resources/frontend/src/components/config/CourseIdConfigEditor.vue new file mode 100644 index 00000000..c01e60c7 --- /dev/null +++ b/src/main/resources/frontend/src/components/config/CourseIdConfigEditor.vue @@ -0,0 +1,159 @@ + + + + + diff --git a/src/main/resources/frontend/src/components/config/LivePhaseConfigEditor.vue b/src/main/resources/frontend/src/components/config/LivePhaseConfigEditor.vue new file mode 100644 index 00000000..de746ea9 --- /dev/null +++ b/src/main/resources/frontend/src/components/config/LivePhaseConfigEditor.vue @@ -0,0 +1,64 @@ + + + + + diff --git a/src/main/resources/frontend/src/views/AdminView/ConfigView.vue b/src/main/resources/frontend/src/views/AdminView/ConfigView.vue index 50efa303..5252c1d2 100644 --- a/src/main/resources/frontend/src/views/AdminView/ConfigView.vue +++ b/src/main/resources/frontend/src/views/AdminView/ConfigView.vue @@ -1,332 +1,76 @@