Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo: Hold intermediate presentation Thurner Jan #9300

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ public ResponseEntity<ExerciseHint> getExerciseHint(@PathVariable Long exerciseI
return ResponseEntity.ok().body(exerciseHint);
}

// TODO: Demo
/**
* {@code GET programming-exercises/:exerciseId/exercise-hints} : get the exerciseHints of a provided exercise.
*
Expand All @@ -209,7 +210,7 @@ public ResponseEntity<ExerciseHint> getExerciseHint(@PathVariable Long exerciseI
* or with status {@code 404 (Not Found)},
* or with status {@code 409 (Conflict)} if the exerciseId is not valid.
*/
@GetMapping("programming-exercises/{exerciseId}/exercise-hints")
@GetMapping("programming-exercises/{exerciseId}/exercise-hints-good")
@EnforceAtLeastTutorInExercise
public ResponseEntity<Set<ExerciseHint>> getExerciseHintsForExercise(@PathVariable Long exerciseId) {
log.debug("REST request to get ExerciseHints : {}", exerciseId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -640,8 +640,9 @@ export class ProgrammingExerciseService {
return this.http.get<string[]>(`${this.resourceUrl}/${exerciseId}/file-names`);
}

//TODO: Demo
getCodeHintsForExercise(exerciseId: number): Observable<ExerciseHint[]> {
return this.http.get<ExerciseHint[]>(`${this.resourceUrl}/${exerciseId}/exercise-hints`);
return this.http.get<ExerciseHint[]>(`${this.resourceUrl}/${exerciseId}/exercise-hints-good`);
}

createStructuralSolutionEntries(exerciseId: number): Observable<ProgrammingExerciseSolutionEntry[]> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ private static void printRestCallAnalysisResult() {

log.info("Number of REST calls without matching endpoints: {}", restCallsAndMatchingEndpoints.restCallsWithoutMatchingEndpoints().size());

if (!restCallsAndMatchingEndpoints.restCallsWithMatchingEndpoints().isEmpty()) {
if (!restCallsAndMatchingEndpoints.restCallsWithoutMatchingEndpoints().isEmpty()) {
System.exit(1);
}
}
Expand Down
Loading