-
Notifications
You must be signed in to change notification settings - Fork 3
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
[Feat] 스냅샷 갱신 후에 섹션 변경 사항이 적용되지 않는 문제 해결 #84
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.
주말에 쉬다 보니, 너무 늦은 리뷰가 되어버렸네요.
@@ -1,4 +1,4 @@ | |||
import { Task } from '@/task/domain/task.entity'; | |||
import { Task } from './task.entity'; |
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.
🟢
eslint 가 수정해버렸나보군요
@@ -20,8 +20,8 @@ export class Snapshot { | |||
}[]; | |||
}[]; | |||
|
|||
update(task: Task) { | |||
const section = this.project.find((s) => s.id === task.section.id); | |||
update(prevSectionId: number, task: Task) { |
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.
🟡
아 이부분에 대해서도 말씀드리려고 했습니다.
클라이언트 측에서 LexoRank
패지키를 이용해서 위치를 구한 다음에
해당 값을 전달해드리는 것에 대해 어떻게 생각하시나요?
낙관적 업데이트를 하기 위해서는 미리 계산해서 사용해야 할 필요성이 느껴져서요.
아침에 보여드린 프로토타입에서는 클라이언트 측에서 이를 사용했습니다!
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.
오 그렇군요 !
그럼 기존 update와 move로 분리된 엔드포인트를 합쳐도 괜찮을 것 같네요 !
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.
오 그렇군요 ! 그럼 기존 update와 move로 분리된 엔드포인트를 합쳐도 괜찮을 것 같네요 !
맞아요! 그렇게 변경하실건가요??
관련 이슈 번호
close #83
작업 내용
고민과 학습내용
스크린샷