-
Notifications
You must be signed in to change notification settings - Fork 4
CLAP-153 작업 히스토리 조회 #158
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
CLAP-153 작업 히스토리 조회 #158
Conversation
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.
2.modified_field는 history type으로 대체할 수 있다는 의견에는 동감합니다. 하지만 new value는 상태 전환의 경우도 있기 때문에 필요하다고 생각됩니다!
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.
- 응답 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
left a comment
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.
- 네 저도 이 부분을 어제 알게 되어서 lazy 로딩 관계의 경우에는 해당 매핑을 수동으로 처리해야할 것 같습니다..! 이 부분은 오늘 회의에서 한번 더 얘기하면 좋을것 같아요
task 에 대한 부분을 하나로 합치도록 해보겠습니다. |
0c3e1b7 to
98f794e
Compare
|
현재 응답 구조는 아래와 같은 형태로 수정하였습니다. |
수고하셨습니다! 회원 정보에 name만 nickname으로 수정하면 좋을것같아요:) |

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