Skip to content

Commit

Permalink
More Intelligrade Stuff (#106)
Browse files Browse the repository at this point in the history
* expose submission date & mistake reporting state

* more intelligrade stuff: synchronized annotations list, correct annotation lines

* update autograder
  • Loading branch information
Feuermagier authored Sep 17, 2024
1 parent 7d12e22 commit 24b2dff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<jackson.version>2.17.2</jackson.version>
<slf4j.version>2.0.16</slf4j.version>
<okhttp.version>4.12.0</okhttp.version>
<autograder.version>0.6.0</autograder.version>
<autograder.version>0.6.1</autograder.version>
<jgit.version>7.0.0.202409031743-r</jgit.version>
<junit.version>5.11.0</junit.version>
<versions-maven-plugin.version>2.17.1</versions-maven-plugin.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public Assessment(
result.feedbacks());

// Unpack the result
this.annotations = MetaFeedbackMapper.parseMetaFeedbacks(feedbacks, config);
this.annotations = Collections.synchronizedList(MetaFeedbackMapper.parseMetaFeedbacks(feedbacks, config));
this.testResults = feedbacks.stream()
.filter(f -> f.type() == FeedbackType.AUTOMATIC)
.map(TestResult::new)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ public static AutograderStats runAutograder(
var position = problem.getPosition();
assessment.addAutograderAnnotation(
mistakeType,
position.path().toString(),
position.startLine(),
position.endLine(),
"src/" + position.path().toString(),
position.startLine() - 1,
position.endLine() - 1,
autograder.translateMessage(problem.getExplanation()));
}

Expand Down

0 comments on commit 24b2dff

Please sign in to comment.