-
Notifications
You must be signed in to change notification settings - Fork 276
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
: Ensure all endpoints return response entities
#8358
Development
: Ensure all endpoints return response entities
#8358
Conversation
add arch test add integration test and refactor TutorialGroup code fix ArchCondition name refactor architecture tests and add more move StudentExamRepository getIndividualDueDate to ExerciseDateServiceual
…ResponseEntity-check
WalkthroughThe recent updates focus on refining API response handling and improving code organization in the Artemis project. Changes include the adoption of Changes
Recent Review DetailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Files skipped from review as they are similar to previous changes (1)
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: 4
Actionable comments outside the diff hunks (3)
src/main/java/de/tum/in/www1/artemis/service/scheduled/ProgrammingExerciseScheduleService.java (1)
Line range hint
92-117
: Consider decomposing the class to adhere to the Single Responsibility Principle.The constructor injects a large number of dependencies, indicating that the class may have multiple responsibilities. Consider breaking down this service into smaller, more focused services, each handling a specific aspect of programming exercise scheduling. This can enhance maintainability and testability.
src/main/java/de/tum/in/www1/artemis/web/rest/CourseResource.java (2)
Line range hint
158-158
: RefactorupdateCourse
to reduce its complexity by extracting logic into smaller methods.
Line range hint
158-158
: Consider using a service layer to encapsulate business logic inupdateCourse
, separating it from the web layer.
src/main/java/de/tum/in/www1/artemis/web/rest/ogparser/LinkPreviewResource.java
Outdated
Show resolved
Hide resolved
src/main/java/de/tum/in/www1/artemis/service/tutorialgroups/TutorialGroupScheduleService.java
Outdated
Show resolved
Hide resolved
Development
: Enable allPublicMethodsShouldReturnResponseEntity checkDevelopment
: Enable ResponseEntity architecture test
Development
: Enable ResponseEntity architecture testDevelopment
: Ensure all endpoints return ResponseEntities
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 👍
…icMethodsShouldReturnResponseEntity-check
d5d1f17
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: 1
…ResponseEntity-check
I’d like to understand why for example returning a |
@b-fein |
…ResponseEntity-check
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
src/main/java/de/tum/in/www1/artemis/web/rest/ogparser/LinkPreviewResource.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Raphael Stief <118574504+rstief@users.noreply.github.com>
0741cdd
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 👍
Development
: Ensure all endpoints return ResponseEntitiesDevelopment
: Ensure all endpoints return response entities
Checklist
General
Server
Motivation and Context
Follow up for #8344 to enable the missing check and migrate our endpoints that violate the rule.
Code Review