Skip to content

0918#1

Open
Shin-Yun-Cheol wants to merge 9 commits into
masterfrom
0918
Open

0918#1
Shin-Yun-Cheol wants to merge 9 commits into
masterfrom
0918

Conversation

@Shin-Yun-Cheol

Copy link
Copy Markdown
Owner

No description provided.

@seulnan
seulnan requested review from Copilot and seulnan September 19, 2025 09:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a commenting system for the existing user and post management system. The changes include creating comment entities, controllers, services, and DTOs, along with establishing proper relationships between users, posts, and comments.

  • Added complete comment CRUD functionality (create, update, delete)
  • Implemented proper entity relationships with cascade deletes and orphan removal
  • Renamed classes for consistency and added user account deletion feature

Reviewed Changes

Copilot reviewed 19 out of 20 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/test/java/mission/e2e/BoardE2ETest.java E2E test for comment CRUD operations
src/main/java/mission/user/dto/DeleteUserRequest.java New DTO for user account deletion requests
src/main/java/mission/user/UserService.java Added user account deletion functionality
src/main/java/mission/user/UserController.java Added DELETE endpoint for user accounts
src/main/java/mission/user/User.java Added relationships to posts and comments with cascade settings
src/main/java/mission/post/dto/PostUpdateRequest.java Renamed from UpdatePostRequest for consistency
src/main/java/mission/post/PostService.java Updated to use renamed PostUpdateRequest
src/main/java/mission/post/PostController.java Updated to use renamed PostUpdateRequest
src/main/java/mission/post/Post.java Added relationship to comments with cascade settings
src/main/java/mission/comment/dto/CommentUpdateRequest.java DTO for comment update requests
src/main/java/mission/comment/dto/CommentResponse.java DTO for comment responses
src/main/java/mission/comment/dto/CommentDeleteRequest.java DTO for comment deletion requests
src/main/java/mission/comment/dto/CommentCreateRequest.java DTO for comment creation requests
src/main/java/mission/comment/CommentService.java Service layer for comment operations
src/main/java/mission/comment/CommentRepository.java JPA repository for comment persistence
src/main/java/mission/comment/CommentController.java REST controller for comment endpoints
src/main/java/mission/comment/Comment.java Comment entity with relationships
src/main/java/mission/Exception/GlobalExceptionHandler.java Fixed package name from mission.common to mission.Exception
request.http Removed all content
Files not reviewed (1)
  • .idea/gradle.xml: Language not supported
Comments suppressed due to low confidence (1)

src/main/java/mission/user/User.java:1

  • There's a typo in the comment. '댓글듣' should be '댓글들' (comments).
package mission.user;

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@JoinColumn(name = "author")
private User author;

// 이 글의 댓글들 ( 글 삭제 시 댓글도 함꼐 삭제)

Copilot AI Sep 19, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a typo in the comment. '함꼐' should be '함께' (together).

Suggested change
// 이 글의 댓글들 ( 글 삭제 시 댓글도 함꼐 삭제)
// 이 글의 댓글들 ( 글 삭제 시 댓글도 함께 삭제)

Copilot uses AI. Check for mistakes.
@Shin-Yun-Cheol
Shin-Yun-Cheol requested review from seulnan and removed request for seulnan September 19, 2025 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants