Merged
Conversation
joowojr
reviewed
Jan 29, 2025
joowojr
reviewed
Jan 29, 2025
Contributor
There was a problem hiding this comment.
- 응답 json 구조는 아래와 같이 더 유연하게 나타낼 수 있을 것 같습니다!
comment일 경우에는 comment, commentfile 둘 중 하나가 null로 들어가게 되겠네요
아니면 프론트와 협의하에 comment와 commentfile을 합쳐서 파일첨부가 아닐 경우에는 filesize 필드를 null로 처리해도될것같아요.
{
"historyId":1,
"date":"2025-01-12",
"time":"14:18:00",
"taskHistoryType":"PROCESSOR_ASSIGNED", // UI 조건부 렌더링 및 json 파싱을 위한 값
"details":{
"task":{
"modifiedValue":"processor", // 있어도 되고 없어도 될듯
"newValue":"siena.it"
},
"comment":{
"content":"댓글",
"memberId":2,
"profileImg": "프로필 이미지 주소"
},
"commentFile":{
"content":"파일 주소",
"fileSize": "16MB",
"memberId":2,
"profileImg": "프로필 이미지 주소"
}
}
}
joowojr
reviewed
Jan 29, 2025
Contributor
joowojr
left a comment
There was a problem hiding this comment.
- 네 저도 이 부분을 어제 알게 되어서 lazy 로딩 관계의 경우에는 해당 매핑을 수동으로 처리해야할 것 같습니다..! 이 부분은 오늘 회의에서 한번 더 얘기하면 좋을것 같아요
Collaborator
Author
Collaborator
Author
task 에 대한 부분을 하나로 합치도록 해보겠습니다. |
0c3e1b7 to
98f794e
Compare
Collaborator
Author
|
현재 응답 구조는 아래와 같은 형태로 수정하였습니다. |
Contributor
수고하셨습니다! 회원 정보에 name만 nickname으로 수정하면 좋을것같아요:) |
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.

📄 요약(Summary)
✍🏼 상세(More)
PR Desciption
Requirements for Reviewer
PR Log
새롭게 배운 것
고민 중인 사항
모든 PersistenceMapper에서 domain을 매핑시 연관관계에 있는 객체를 호출하는데 이때 lazy로딩이 걸려 쿼리가 두번 나가는 것 같은데 필요한 부분만 매핑하고 실제 필요한 연관관계의 객체는 수동으로 매핑해주는 과정이 필요하지 않나라고 생각이 듭니다.
첨부 자료
Requirements for Reviewer
✅ 체크리스트(Checklist)
🚪 이슈 번호(Issue numbers)
Closes #130