Skip to content
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

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

yangchef1
Copy link
Collaborator

관련 이슈 번호

close #83

작업 내용

  • 스냅샷 갱신 후에 섹션 변경 사항이 적용되지 않는 문제 해결

고민과 학습내용

스크린샷

@yangchef1 yangchef1 added BugFix 문제 상황/오류 수정 BE 서버 작업 labels Nov 14, 2024
Copy link
Collaborator

@PMtHk PMtHk left a 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';
Copy link
Collaborator

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) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

🟡
아 이부분에 대해서도 말씀드리려고 했습니다.
클라이언트 측에서 LexoRank 패지키를 이용해서 위치를 구한 다음에
해당 값을 전달해드리는 것에 대해 어떻게 생각하시나요?

낙관적 업데이트를 하기 위해서는 미리 계산해서 사용해야 할 필요성이 느껴져서요.
아침에 보여드린 프로토타입에서는 클라이언트 측에서 이를 사용했습니다!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

오 그렇군요 !
그럼 기존 update와 move로 분리된 엔드포인트를 합쳐도 괜찮을 것 같네요 !

Copy link
Collaborator

Choose a reason for hiding this comment

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

오 그렇군요 ! 그럼 기존 update와 move로 분리된 엔드포인트를 합쳐도 괜찮을 것 같네요 !

맞아요! 그렇게 변경하실건가요??

@yangchef1 yangchef1 merged commit bfa5cb8 into dev Nov 18, 2024
1 check passed
@yangchef1 yangchef1 deleted the fix/#83 branch December 3, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BE 서버 작업 BugFix 문제 상황/오류 수정
Projects
None yet
Development

Successfully merging this pull request may close these issues.

스냅샷 갱신 후에 섹션 변경 사항이 적용되지 않는 문제 해결
3 participants