122 comment on a post#132
Merged
Merged
Conversation
Closed
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new constructor for User and extends comment functionality by adding new service methods, mappers, and controllers to handle posting and retrieving comments. Additionally, it updates query logic in the activity repository and enhances image cleanup tasks.
Reviewed Changes
Copilot reviewed 26 out of 26 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| API/src/main/java/es/iespuertodelacruz/routinefights/user/domain/User.java | Added a new constructor accepting an ID |
| API/src/main/java/es/iespuertodelacruz/routinefights/user/common/IUserCommon.java | Minor formatting update |
| API/src/main/java/es/iespuertodelacruz/routinefights/shared/tasks/ImagesTasks.java | Added a TODO comment for handling extra image types |
| API/src/main/java/es/iespuertodelacruz/routinefights/post/infrastructure/adapters/secondary/services/PostEntityService.java | Added a new findById method |
| API/src/main/java/es/iespuertodelacruz/routinefights/post/domain/ports/secondary/IPostRepository.java | Added findById contract |
| API/src/main/java/es/iespuertodelacruz/routinefights/post/commons/PostCommons.java | Added a transient annotation for the streak field |
| API/src/main/java/es/iespuertodelacruz/routinefights/comment/** | New comment service, repository, mapper, DTOs, controller, and domain |
| API/src/main/java/es/iespuertodelacruz/routinefights/activity/infrastructure/adapters/secondary/repositories/IActivityEntityRepository.java | Updated queries to manage streak fields |
Comments suppressed due to low confidence (2)
API/src/main/java/es/iespuertodelacruz/routinefights/comment/infrastructure/adapters/secondary/entities/CommentEntity.java:33
- [nitpick] Consider renaming 'replingComment' to 'replyingComment' to improve clarity and consistency.
@TargetNode() private CommentEntity replingComment;
API/src/main/java/es/iespuertodelacruz/routinefights/activity/infrastructure/adapters/secondary/repositories/IActivityEntityRepository.java:70
- The duplicate setting of 'a.streak' may override the coalesce default from the previous SET. Consider removing this redundant SET to preserve the intended default value.
SET a.streak = p.streak
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.