-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into bugfix/general/5402-scrolldown-plagiarism…
…-editor
- Loading branch information
Showing
249 changed files
with
7,110 additions
and
2,154 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
.. _cleanup: | ||
|
||
Cleanup Service | ||
=============== | ||
|
||
Artemis provides a feature to delete data from older courses. | ||
|
||
.. _cleanup-menu: | ||
|
||
.. figure:: cleanup/cleanup-menu.png | ||
:align: center | ||
:alt: Cleanup view | ||
|
||
As shown in the image, administrators can delete the following data types: | ||
|
||
* Plagiarism results with an undecided outcome | ||
* Orphaned data | ||
* Non-rated results from older courses | ||
* Rated results from older courses | ||
|
||
Since orphaned data has no connections to other data by nature, it is deleted without considering specific dates. | ||
For other types, administrators can track the related exercises and courses. | ||
When a cleanup operation is performed with specified "from" and "to" dates, all data associated with that type and related to courses that started after the "from" date and ended before the "to" date is deleted. | ||
|
||
Data Deletion by Operation Type | ||
------------------------------------------ | ||
|
||
1. **Orphaned Data**: | ||
- Long Feedback Text with feedback that has no results | ||
- Text Block with feedback that has no results | ||
- Feedback records without results | ||
- Student and team scores where either a student or a team is specified | ||
- Long Feedback Text where both participation and submission are missing | ||
- Text Block where the referenced feedback has no associated participation or submission | ||
- Feedback with no associated participation or submission | ||
- All Ratings where the related result has no associated participation or submission | ||
- Results without associated participation or submission | ||
|
||
2. **Plagiarism Results with an Undecided Outcome**: | ||
- All plagiarism comparisons related to courses within the specified dates and marked as undecided. | ||
|
||
3. **Rated and Non-rated Results**: | ||
- Both types follow the same logic, except for the rating status of results (rated vs. non-rated). | ||
- For each type, only the latest valid result within a participation is retained, while all others are deleted. | ||
- Because direct result deletion is restricted due to data integrity reasons, Artemis first removes associated data for results scheduled for deletion, including Long Feedback Text, Text Block, Feedback, Student Score, and Team Score. | ||
|
||
Artemis also records the date of the last cleanup operation, as seen in the last column of the table shown in the image. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,3 @@ | ||
#!/bin/sh | ||
join_by () { | ||
local IFS="$1"; | ||
shift; | ||
echo "$*"; | ||
} | ||
|
||
FILES=$(join_by "," "$@") | ||
|
||
if [[ "$OSTYPE" == "msys" ]]; then | ||
# replace backslashes with double backslashes in Windows file paths when | ||
# using MinGW (msys = lightweight shell and GNU utilities compiled for Windows (part of MinGW) | ||
FILES=$(echo $FILES | sed 's/\\/\\\\/g') | ||
fi | ||
|
||
./gradlew spotlessApply -PspotlessFiles="${FILES}" | ||
./gradlew spotlessApply -PratchetFrom='develop' |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
4 changes: 3 additions & 1 deletion
4
src/main/java/de/tum/cit/aet/artemis/assessment/dto/FeedbackAnalysisResponseDTO.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,11 +1,13 @@ | ||
package de.tum.cit.aet.artemis.assessment.dto; | ||
|
||
import java.util.List; | ||
import java.util.Set; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
|
||
import de.tum.cit.aet.artemis.core.dto.SearchResultPageDTO; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
public record FeedbackAnalysisResponseDTO(SearchResultPageDTO<FeedbackDetailDTO> feedbackDetails, long totalItems, int totalAmountOfTasks, List<String> testCaseNames) { | ||
public record FeedbackAnalysisResponseDTO(SearchResultPageDTO<FeedbackDetailDTO> feedbackDetails, long totalItems, Set<String> taskNames, List<String> testCaseNames, | ||
List<String> errorCategories) { | ||
} |
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.