-
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
Development
: Use object mapper and streams to improve and simplify the code
#8372
Conversation
There hasn't been any activity on this pull request recently. Therefore, this pull request has been automatically marked as stale and will be closed if no further activity occurs within seven days. Thank you for your contributions. |
# Conflicts: # src/main/java/de/tum/in/www1/artemis/service/util/structureoraclegenerator/JavaClassDiffSerializer.java # src/main/java/de/tum/in/www1/artemis/service/util/structureoraclegenerator/SerializerUtil.java # src/test/java/de/tum/in/www1/artemis/architecture/ArchitectureTest.java # src/test/java/de/tum/in/www1/artemis/localvcci/LocalCIServiceTest.java
# Conflicts: # src/test/java/de/tum/in/www1/artemis/architecture/ArchitectureTest.java
WalkthroughThe recent updates focus on transitioning from direct entity manipulation to utilizing Data Transfer Objects (DTOs) for Changes
Recent Review DetailsConfiguration used: CodeRabbit UI Files selected for processing (2)
Additional Context UsedPath-based Instructions (2)
Additional comments not posted (11)
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.
Actionable comments posted: 6
Out of diff range and nitpick comments (1)
src/test/java/de/tum/in/www1/artemis/exercise/programming/ProgrammingSubmissionAndResultGitlabJenkinsIntegrationTest.java (1)
218-218
: Ensure consistent handling of logs across different test scenarios.Consider using a centralized method for log generation to ensure consistency and reduce duplication across test methods.
Also applies to: 245-245
src/test/java/de/tum/in/www1/artemis/PrivacyStatementResourceIntegrationTest.java
Outdated
Show resolved
Hide resolved
...artemis/exercise/programming/ProgrammingSubmissionAndResultGitlabJenkinsIntegrationTest.java
Outdated
Show resolved
Hide resolved
...artemis/exercise/programming/ProgrammingSubmissionAndResultGitlabJenkinsIntegrationTest.java
Show resolved
Hide resolved
src/main/java/de/tum/in/www1/artemis/web/rest/admin/AdminPrivacyStatementResource.java
Show resolved
Hide resolved
src/main/java/de/tum/in/www1/artemis/service/util/structureoraclegenerator/SerializerUtil.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 TS3.
- Changed and viewed the imprint; worked for both English and German ✅
- Created a programming exercise with the default template
- Template: 0% ✅
- Solution: 100% ✅
- Participation: Tests pass and fail as expected ✅
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 TS3. Works as expected.
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 LGTM
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 again on TS3. Imprint, privacy statement, and programming exercises still work as expected.
Checklist
General
Server
Motivation and Context
We aim to replace the Google gson library with the Jackson ObjectMapper for parsing JSON and XML. This change will help us maintain consistency and simplify the server code. Additionally, we are gradually transitioning from using classes to records for our DTOs.
Description
This PR reduces the reliance on gson and replaces it with the ObjectMapper. We focus on the structure oracle generator classes used for generating structural tests in programming exercises. Additionally we replace classes related to Legal Documents, which were used as DTOs, with records.
Steps for Testing
Prerequisites:
Best tested locally, or on a test server where you are allowed to change the Imprint / Privacy Statement as admin
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
Client
Server