-
Notifications
You must be signed in to change notification settings - Fork 343
Quiz exercises
: Add unrated mode to quiz training
#11382
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
Merged
Merged
Changes from 31 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
652e994
Add isRated flag to track if the student trains in the rated mode or …
MoritzSpengler 344b564
fix client tests
MoritzSpengler 6103996
fix client tests
MoritzSpengler 975f8a0
Merge branch 'develop' into feature/quiz-exercises/add-free-training
MoritzSpengler 76c0fc7
Merge branch 'develop' into feature/quiz-exercises/add-free-training
MoritzSpengler 869ef5c
Remove Collection.toList
MoritzSpengler a1a8465
fix test
MoritzSpengler 2d2e840
Merge branch 'develop' into feature/quiz-exercises/add-free-training
MoritzSpengler facb594
Introduce pagination
MoritzSpengler 32ab02c
test pagination
MoritzSpengler 914f787
introduce pagination
MoritzSpengler 56592a4
Add Test cases for new paging logic
MoritzSpengler ae60bd2
Merge branch 'develop' into feature/quiz-exercises/add-free-training
MoritzSpengler c338a35
Add java doc
MoritzSpengler 6a364e3
Merge remote-tracking branch 'origin/feature/quiz-exercises/add-free-…
MoritzSpengler e8361c2
annotate questionIDs with Nullable
MoritzSpengler 9a396ef
Upper case for key words
MoritzSpengler 4ab77a4
Add json.non_empty annotation and pass -1 instead of an empty list
MoritzSpengler 4c48b3c
Add sentinel earlier
MoritzSpengler a84cc47
Fix small bug for multiple courses
MoritzSpengler f51a3ce
Add Course Id column to the progress table and allow course filtering
MoritzSpengler 74f15fd
Add Course Id column to the progress table and allow course filtering
MoritzSpengler 10ae206
java doc
MoritzSpengler 95c1ac1
add -1 for empty question ids
MoritzSpengler bf10efe
Change Page to Slice and implement Code suggestions.
MoritzSpengler d470eb6
Fix Test
MoritzSpengler e603994
add rollback
MoritzSpengler 527e062
Add foreign key constraint
MoritzSpengler d48d3f7
Add boolean flag to track session state and refactor dto usage
MoritzSpengler 816e18d
java doc
MoritzSpengler d8fea5f
fix tests
MoritzSpengler 0eef4c4
Set size for pagination to 20 after successful tests
MoritzSpengler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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
11 changes: 0 additions & 11 deletions
11
src/main/java/de/tum/cit/aet/artemis/quiz/dto/QuizTrainingAnswerDTO.java
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
src/main/java/de/tum/cit/aet/artemis/quiz/dto/question/QuizQuestionTrainingDTO.java
This file contains hidden or 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,16 @@ | ||
package de.tum.cit.aet.artemis.quiz.dto.question; | ||
|
||
import java.util.Set; | ||
|
||
import jakarta.annotation.Nullable; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
public record QuizQuestionTrainingDTO(@NotNull QuizQuestionWithSolutionDTO quizQuestionWithSolutionDTO, boolean isRated, @Nullable Set<Long> questionIds, boolean isNewSession) { | ||
|
||
public long getId() { | ||
return quizQuestionWithSolutionDTO().quizQuestionBaseDTO().id(); | ||
} | ||
} |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.