Skip to content

Commit

Permalink
Fix long feedback endpoint name (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feuermagier authored Feb 18, 2025
1 parent 53914f8 commit 35ba99e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Licensed under EPL-2.0 2024. */
/* Licensed under EPL-2.0 2024-2025. */
package edu.kit.kastel.sdq.artemis4j.client;

import java.util.List;
Expand Down Expand Up @@ -58,10 +58,9 @@ public static FeedbackDTO newInvisibleManualUnreferenced(double credits, String
FeedbackType.MANUAL_UNREFERENCED, null, credits, null, "NEVER", text, null, detailText, null, null);
}

public static String fetchLongFeedback(ArtemisClient client, long resultId, long feedbackId)
throws ArtemisNetworkException {
public static String fetchLongFeedback(ArtemisClient client, long feedbackId) throws ArtemisNetworkException {
return ArtemisRequest.get()
.path(List.of("results", resultId, "feedbacks", feedbackId, "long-feedback"))
.path(List.of("feedbacks", feedbackId, "long-feedback"))
.executeAndDecode(client, String.class);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Licensed under EPL-2.0 2024. */
/* Licensed under EPL-2.0 2024-2025. */
package edu.kit.kastel.sdq.artemis4j.client;

import java.time.ZonedDateTime;
Expand Down Expand Up @@ -91,7 +91,7 @@ public static List<FeedbackDTO> fetchDetailedFeedbacks(

String detailText = feedback.detailText();
if (feedback.hasLongFeedbackText()) {
detailText = FeedbackDTO.fetchLongFeedback(client, resultId, feedback.id());
detailText = FeedbackDTO.fetchLongFeedback(client, feedback.id());
}
cleanedFeedbacks.add(new FeedbackDTO(detailText, feedback));
}
Expand Down

0 comments on commit 35ba99e

Please sign in to comment.