-
Notifications
You must be signed in to change notification settings - Fork 305
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
Development
: Refactor Course Dashboard Filtering
#10365
Draft
chrisknedl
wants to merge
13
commits into
develop
Choose a base branch
from
chore/development/refactor-course-dashboard-filter
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Development
: Refactor Course Dashboard Filtering
#10365
chrisknedl
wants to merge
13
commits into
develop
from
chore/development/refactor-course-dashboard-filter
+862
−532
Conversation
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
…rticipations, two students are required
…rd-filter # Conflicts: # src/main/java/de/tum/cit/aet/artemis/exercise/service/ExerciseService.java
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
assessment
Pull requests that affect the corresponding module
communication
Pull requests that affect the corresponding module
core
Pull requests that affect the corresponding module
exercise
Pull requests that affect the corresponding module
iris
Pull requests that affect the corresponding module
lecture
Pull requests that affect the corresponding module
programming
Pull requests that affect the corresponding module
quiz
Pull requests that affect the corresponding module
server
Pull requests that update Java code. (Added Automatically!)
tests
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.
Checklist
General
Server
Motivation and Context
There is a bug related to the data that is shown on the course dashboard (#9086). Those pieces of code were so convoluted that a fix without refactoring would have been very difficult to understand for reviewers, and would have further decreased the code's readability and maintainability.
Fixes #9086.
Description
Most importantly, the code assumed that for a singular student, multiple participations are possible for the same exercise, which is not true. Therefore, the ordering based on the initialization state has been removed, and the corresponding logic has been reduced to the relevant parts. Since only rated exercises are relevant for the course dashboard, practice programming exercise submissions are not considered any more.
The logic for submission filtering has been moved from the Exercise Entities to a new
SubmissionFilterService
, where instead of polymorphism, a case distinction is used to determine the relevant filter logic for the type of exercise. The filtering of submissions for the course dashboard has nothing to do with the exercise entity, anyway.The relevant result for the course dashboard now always comes with the connected submission. Previously, it was theoretically possible to return a result as part of a submission to which it previously did not belong.
Steps for Testing
Prerequisites:
Exam Mode Testing
Prerequisites:
Testserver States
You can manage test servers using Helios. Check environment statuses in the environment list. To deploy to a test server, go to the CI/CD page, find your PR or branch, and trigger the deployment.
Review Progress
Performance Review
Code Review
Manual Tests
Performance Tests
Test Coverage
Screenshots