-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Development: Improve server code quality in assessment module
- Loading branch information
Showing
45 changed files
with
284 additions
and
350 deletions.
There are no files selected for viewing
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
24 changes: 0 additions & 24 deletions
24
src/main/java/de/tum/cit/aet/artemis/assessment/dto/ScoreDistribution.java
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
src/main/java/de/tum/cit/aet/artemis/assessment/dto/ScoreDistributionDTO.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,11 @@ | ||
package de.tum.cit.aet.artemis.assessment.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
public record ScoreDistributionDTO(long amount, double score) { | ||
|
||
public ScoreDistributionDTO(Long amount, Double score) { | ||
this(amount != null ? amount : 0, score != null ? score : 0.0); | ||
} | ||
} |
59 changes: 0 additions & 59 deletions
59
src/main/java/de/tum/cit/aet/artemis/assessment/dto/TutorEffort.java
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
src/main/java/de/tum/cit/aet/artemis/assessment/dto/TutorEffortDTO.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,11 @@ | ||
package de.tum.cit.aet.artemis.assessment.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
|
||
/** | ||
* A data entry used by the tutor effort statistics page. It represents the respective information in terms of | ||
* number of submissions assessed as well as time spent for each tutor in a particular exercise. | ||
*/ | ||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
public record TutorEffortDTO(Long userId, int numberOfSubmissionsAssessed, double totalTimeSpentMinutes, Long exerciseId, Long courseId) { | ||
} |
8 changes: 0 additions & 8 deletions
8
src/main/java/de/tum/cit/aet/artemis/assessment/dto/dashboard/ExerciseMapEntry.java
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
src/main/java/de/tum/cit/aet/artemis/assessment/dto/dashboard/ExerciseMapEntryDTO.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,12 @@ | ||
package de.tum.cit.aet.artemis.assessment.dto.dashboard; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
|
||
// Custom object for sql query | ||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
public record ExerciseMapEntryDTO(long exerciseId, long value) { | ||
|
||
public ExerciseMapEntryDTO(Long exerciseId, Long value) { | ||
this(exerciseId != null ? exerciseId : 0, value != null ? value : 0); | ||
} | ||
} |
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
8 changes: 0 additions & 8 deletions
8
src/main/java/de/tum/cit/aet/artemis/assessment/dto/dashboard/ResultCount.java
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
src/main/java/de/tum/cit/aet/artemis/assessment/dto/dashboard/ResultCountDTO.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,11 @@ | ||
package de.tum.cit.aet.artemis.assessment.dto.dashboard; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
public record ResultCountDTO(boolean rated, long count) { | ||
|
||
public ResultCountDTO(Boolean rated, Long count) { | ||
this(rated != null ? rated : false, count != null ? count : 0); | ||
} | ||
} |
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
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
Oops, something went wrong.