-
Notifications
You must be signed in to change notification settings - Fork 297
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
Programming exercises
: Fix template upgrade for maven exercises
#8241
Conversation
WalkthroughThe changes primarily revolve around enhancing the management and update functionalities of programming exercises within a development environment. Key updates include excluding specific directories from code formatting, refining the directory structure for Maven projects, and structuring import options for exercise updates. These adjustments aim to streamline the development process, improve code management efficiency, and offer more precise control over exercise import configurations. Changes
Assessment against linked issues
Related issues
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 Configration 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.
No objections to the code changes, assuming the manual tests will be successful
Programming Exercises
: Fix template upgrade for maven exercisesProgramming exercises
: Fix template upgrade for maven exercises
Checklist
General
Server
Client
Motivation and Context
For Java-Maven exercises we offer the option to upgrade the templates, updating the configuration files and dependency versions. However, this did not work correctly, leading to issues like #8186.
Fixes #8186 (the root cause of the issue).
Description
This PR fixes two issues:
The client did not correctly set the
upgradeTemplate
option to true if the checkbox was activated. This was caused by passing direct booleans to the sub-components, where the updated value did not get populated to the API call. I fixed that by addding a small wrapper object.The server did not upgrade the test repository since the Path to the template repository was not set correctly.
Steps for Testing
1.13.0
and a new version of themaven-surefire-plugin
is present.Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Review Progress
Performance Review
Code Review
Manual Tests
Test Coverage
unchanged
(Sadly the
JavaTemplateUpgradeService
seems to be completely untested, we should add server tests here in a followup)Summary by CodeRabbit
ProgrammingExerciseUpdateComponent
for better structure and readability.