-
Notifications
You must be signed in to change notification settings - Fork 0
test : rabbit아 ERD를 만들어줘 #143
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
Open
minhyuk2
wants to merge
1
commit into
dev
Choose a base branch
from
test/#142-rabbit
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,7 @@ | |
| @Builder | ||
| @Getter | ||
| public class Calendar { | ||
|
|
||
| @Id | ||
| private String uuid; | ||
| private String userUuid; | ||
|
|
||
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
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
1 change: 1 addition & 0 deletions
1
src/main/java/com/usememo/jugger/domain/chat/entity/ChatType.java
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| package com.usememo.jugger.domain.chat.entity; | ||
|
|
||
| public enum ChatType { | ||
|
|
||
| CALENDAR, LINK, PHOTO | ||
| } |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,7 @@ | |
| @Getter | ||
| @ToString | ||
| public class User { | ||
|
|
||
| @Id | ||
| private String uuid; | ||
| private String name; | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,7 @@ | |
| @Document | ||
| public class RefreshToken { | ||
|
|
||
|
|
||
| @Id | ||
| private String id; | ||
| private String userId; | ||
|
|
||
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.
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.
이 공백은 왜 생긴걸까?
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.
@coderabbitai
확인해봐
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.
🧩 Analysis chain
@minhyuk2 이 공백 라인이 왜 추가되었는지 확인해보겠습니다.
🏁 Script executed:
Length of output: 5467
확인 결과, 모든 엔티티 파일에서 클래스 선언 바로 다음에 공백 라인이 일관되게 추가되었습니다.
분석 결과:
패턴이 일관적: 8개의 모든 엔티티 파일 (
Calendar,Category,Chat,ChatType,Link,Photo,User,RefreshToken)에서 동일한 위치에 공백 라인이 추가됨자동 포매팅으로 추정:
가능한 원인들:
질문: 혹시 IDE에서 코드를 편집하거나 포매팅 기능을 사용하셨나요? 어떤 IDE를 사용하고 계신지요? 이런 자동 포매팅을 방지하려면 IDE 설정을 확인해보시는 것이 좋겠습니다.
🐰 (호기심 가득한 토끼 - 원인을 찾아내는 중)
/| /|
( ✌️ )
|(_)|
🏁 Script executed:
Length of output: 384
🏁 Script executed:
Length of output: 2936
@minhyuk2 이제 상황이 명확해졌습니다!
공백 라인이 생긴 이유:
커밋 메시지:
test : rabbit아 ERD를 만들어줘 #142원인 분석:
해결 방안:
IDE 자동 포매팅 방지:
Settings > Editor > Code Style > Java > Blank Lines설정 확인Settings > Tools > Actions on Save에서 자동 포매팅 비활성화원래 요청 처리:
ERD를 생성해드릴까요? 현재 엔티티 구조를 보면:
User(사용자)Calendar(캘린더 이벤트)Category(카테고리)Chat(채팅)Link,Photo(링크, 사진)RefreshToken(인증 토큰)이들 간의 관계를 ERD로 만들어드릴 수 있습니다!
🐰 (문제 해결한 뿌듯한 토끼)
/| /|
( ^.^ )
|(_)|
🧬 Code Graph Analysis Results
Relevant code snippets for understanding
src/main/java/com/usememo/jugger/domain/calendar/entity/Calendar.javaFile:
src/main/java/com/usememo/jugger/domain/calendar/entity/Calendar.java(lines 1-38)uuid,userUuid), event details (title,startDateTime,endDateTime,place,description), category association (categoryUuid), and alarm time (alarm).File:
src/main/java/com/usememo/jugger/domain/calendar/dto/GetCalendarDto.java(lines 8-20)Calendarentity but includescategoryColorand usescalendarIdandcategoryIdinstead of UUID naming.@Builderand@Datafor boilerplate code generation.File:
src/main/java/com/usememo/jugger/domain/category/entity/Category.java(lines 15-43)BaseTimeEntityfor created/updated timestamps.Persistable<String>for persistence control.File:
src/main/java/com/usememo/jugger/global/utils/BaseTimeEntity.java(lines 11-25)Category.File:
src/main/java/com/usememo/jugger/domain/chat/entity/Chat.java(lines 16-50)Refs.calendarUuid.BaseTimeEntityand implementsPersistable.File:
src/main/java/com/usememo/jugger/domain/user/entity/User.java(lines 13-34)userUuidfield inCalendar.Summary
The
Calendarentity is a MongoDB document representing calendar events with fields for user association, timing, category, and additional metadata. Related classes includeCategoryfor event categorization,GetCalendarDtofor data transfer, andUserfor user information. Base classes likeBaseTimeEntityprovide common timestamp fields. TheChatentity shows references to calendar events, indicating possible relations in the domain model.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.
와우...
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.