-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Programming exercises: Add affected students to feedback analysis tab…
…le (#9728)
- Loading branch information
Showing
19 changed files
with
486 additions
and
49 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
src/main/java/de/tum/cit/aet/artemis/assessment/dto/FeedbackAffectedStudentDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package de.tum.cit.aet.artemis.assessment.dto; | ||
|
||
public record FeedbackAffectedStudentDTO(long courseId, long participationId, String firstName, String lastName, String login, String repositoryURI) { | ||
} |
11 changes: 10 additions & 1 deletion
11
src/main/java/de/tum/cit/aet/artemis/assessment/dto/FeedbackDetailDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
package de.tum.cit.aet.artemis.assessment.dto; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
public record FeedbackDetailDTO(long count, double relativeCount, String detailText, String testCaseName, String taskName, String errorCategory) { | ||
public record FeedbackDetailDTO(List<Long> concatenatedFeedbackIds, long count, double relativeCount, String detailText, String testCaseName, String taskName, | ||
String errorCategory) { | ||
|
||
public FeedbackDetailDTO(String concatenatedFeedbackIds, long count, double relativeCount, String detailText, String testCaseName, String taskName, String errorCategory) { | ||
this(Arrays.stream(concatenatedFeedbackIds.split(",")).map(Long::valueOf).toList(), count, relativeCount, detailText, testCaseName, taskName, errorCategory); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...ng/manage/grading/feedback-analysis/Modal/feedback-affected-students-modal.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<ng-template #headerTemplate let-label="label" let-colSize="colSize"> | ||
<th scope="col" [class]="colSize"> | ||
<span [jhiTranslate]="label"></span> | ||
</th> | ||
</ng-template> | ||
<div class="modal-header"> | ||
<h4 class="modal-title" [jhiTranslate]="TRANSLATION_BASE + '.header'"></h4> | ||
<button type="button" class="btn-close" aria-label="Close" (click)="activeModal.dismiss()"></button> | ||
</div> | ||
<div class="modal-body"> | ||
<table class="table table-striped mb-3"> | ||
<colgroup> | ||
<col class="col" /> | ||
<col class="col" /> | ||
<col class="col" /> | ||
</colgroup> | ||
<thead> | ||
<tr> | ||
<ng-container *ngTemplateOutlet="headerTemplate; context: { label: TRANSLATION_BASE + '.name', colSize: 'col-4' }"></ng-container> | ||
<ng-container *ngTemplateOutlet="headerTemplate; context: { label: TRANSLATION_BASE + '.login', colSize: 'col-4' }"></ng-container> | ||
<ng-container *ngTemplateOutlet="headerTemplate; context: { label: TRANSLATION_BASE + '.repository', colSize: 'col-2' }"></ng-container> | ||
</tr> | ||
</thead> | ||
<tbody class="table-group-divider"> | ||
@for (item of participation().content; track item) { | ||
<tr> | ||
<td>{{ item.firstName }} {{ item.lastName }}</td> | ||
<td>{{ item.login }}</td> | ||
<td> | ||
<jhi-code-button | ||
class="ms-2" | ||
[smallButtons]="true" | ||
[repositoryUri]="item.repositoryURI" | ||
[routerLinkForRepositoryView]="['/courses', item.courseId, 'exercises', exerciseId(), 'repository', item.participationId]" | ||
/> | ||
</td> | ||
</tr> | ||
} | ||
</tbody> | ||
</table> | ||
<div class="d-flex flex-column align-items-end mt-2"> | ||
@if (participation().totalElements >= pageSize()) { | ||
<ngb-pagination [collectionSize]="collectionsSize()" [pageSize]="pageSize()" [page]="page()" (pageChange)="setPage($event)" size="sm" [maxSize]="5"></ngb-pagination> | ||
} | ||
<div class="text-muted text-end"> | ||
<span [jhiTranslate]="TRANSLATION_BASE + '.totalItems'" [translateValues]="{ count: participation().totalElements }"></span> | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.