-
Notifications
You must be signed in to change notification settings - Fork 304
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
Learning paths
: Add setting to include all exercises relevant to the course score
#9083
Learning paths
: Add setting to include all exercises relevant to the course score
#9083
Conversation
WalkthroughThe recent updates introduce the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CourseResource
participant LearningPathsConfigurationRepository
participant CourseRepository
User->>CourseResource: Update Course with LearningPathsConfiguration
CourseResource->>CourseRepository: Find existing Course
CourseResource->>LearningPathsConfigurationRepository: Save LearningPathsConfiguration
CourseResource->>CourseRepository: Save updated Course
CourseRepository->>User: Return updated Course
sequenceDiagram
participant User
participant LearningPathResource
participant LearningPathsConfigurationRepository
User->>LearningPathResource: Get LearningPathsConfiguration
LearningPathResource->>LearningPathsConfigurationRepository: Fetch by Course ID
LearningPathsConfigurationRepository->>LearningPathResource: Return LearningPathsConfiguration
LearningPathResource->>User: Return LearningPathsConfiguration
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 5
.../java/de/tum/in/www1/artemis/repository/competency/LearningPathsConfigurationRepository.java
Show resolved
Hide resolved
src/main/java/de/tum/in/www1/artemis/domain/competency/LearningPathsConfiguration.java
Show resolved
Hide resolved
src/main/java/de/tum/in/www1/artemis/domain/competency/LearningPathsConfiguration.java
Outdated
Show resolved
Hide resolved
src/main/java/de/tum/in/www1/artemis/domain/competency/LearningPathsConfiguration.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on TS5, works as described.
Learning path only displays exercises that are relevant to course score.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/main/java/de/tum/in/www1/artemis/web/rest/LearningPathResource.java
Outdated
Show resolved
Hide resolved
cc88725
This is fixed in #9105, feel free to review as well
Oh, fixed it! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reapprove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re-approve
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maintainer approved
🚨🚨 Contains Database Migration 🚨🚨
Checklist
General
Server
Client
Motivation and Context
#8758
Description
Instructors can now specify in the learning path management that all non-bonus and non-optional exercises (i.e. those that are relevant for the course score) have to be included in the learning paths. If this is enabled, these exercises are preferred when selecting the exercises for each difficulty. Additionally these exercises are also selected even if the mastery can be achieved with less exercises.
To save this setting a new configuration is stored in the course that saves all settings related to learning paths, since more settings might come in the future.
Steps for Testing
Prerequisites:
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Click on the badges to get to the test servers.
Review Progress
Performance Review
Code Review
Manual Tests
Test Coverage
Client
Server
Screenshots
Temporary setting until @JohannesWt refactors them in a future PR:
![Bildschirmfoto 2024-07-18 um 16 09 38](https://private-user-images.githubusercontent.com/38322605/349993392-f7127512-25c7-4b80-85d6-c532daa9ae57.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwOTk4MDMsIm5iZiI6MTczOTA5OTUwMywicGF0aCI6Ii8zODMyMjYwNS8zNDk5OTMzOTItZjcxMjc1MTItMjVjNy00YjgwLTg1ZDYtYzUzMmRhYTlhZTU3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDExMTE0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThiZGU0NGFmOGYwYjc2NDgzYTVlY2I5YzE2Mzg4MjBjYjExZTI5ZjQ5NDU0NTg5N2VhMzcxZTkwYmM0Mjk2Y2EmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.HugfI3h_erC72rNak2brFcBnEvvQBKupGrJtHISjLLE)
Summary by CodeRabbit
Summary by CodeRabbit
New Features
Bug Fixes
Refactor
Tests