switchMap(({aid, sid}) => forkJoin([
this.assignmentService.get(aid).pipe(tap(assignment => this.assignment = assignment)),
this.evaluationService.findAll(aid, sid).pipe(map(evaluations => {
if (!this.config.codeSearch) { // TODO Remove this after the Winter Term 2023/24 study is over
evaluations = evaluations.filter(evaluation => evaluation.author !== 'Code Search');
}
this.evaluations = {};
for (const evaluation of evaluations) {
this.evaluations[evaluation.task] = evaluation;
https://api.github.com/fujaba/fulib.org/blob/1c79a1c57dcc80abea71a0906c370118105c2b7b/frontend/src/app/assignment/modules/solution/tasks/tasks.component.ts#L64