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] #39 - Log 생성 API 구현 #43

Merged
merged 23 commits into from
Jan 9, 2024
Merged

[Feat] #39 - Log 생성 API 구현 #43

merged 23 commits into from
Jan 9, 2024

Conversation

0lynny
Copy link
Member

@0lynny 0lynny commented Jan 9, 2024

🚀PullRequest🚀

📟 관련 이슈

💻 작업 내용

  • OKR 생성 API에 Principal 추가하였습니다 !

  • 사이드 시트 진척 정도 Log 생성 API 구현했습니다.

  • KR 생성, KR수정시에도 Log가 추가되도록 구현하였습니다.

  • 수치 범위 변경으로 인해 target 과 진척상황 관련 prevNum, currNum long타입으로 변경하였습니다.

  • KR 삭제시 Log들도 삭제되도록 deleteAllInBatch를 사용하여 구현했습니다.

  • 진척 상황 Log 추가 API

스크린샷 2024-01-09 오후 7 14 11 - 나의 keyResult가 아닌 경우 스크린샷 2024-01-09 오후 7 15 38

📝 리뷰 노트

  • 엔티티 변경이 있으니 create 해주세요!

@0lynny 0lynny requested a review from its-sky January 9, 2024 10:17
@0lynny 0lynny self-assigned this Jan 9, 2024
Copy link
Member

@its-sky its-sky left a comment

Choose a reason for hiding this comment

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

잘 구현하셨네요 !! 수고하셨습니다 ㅎㅎ

}
for (TaskCreateRequestDto taskDto : dto.taskList()) {
taskService.saveTask(keyResult, taskDto);
}
}
Copy link
Member

Choose a reason for hiding this comment

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

p2;

for (TaskCreateRequestDto taskDto : dto.taskList()) {
    taskService.saveTask(keyResult, taskDto);
}

이거 남기고 if(dto.taskList() !=null) 내 로직 지워야할것 같습니다!


List<Log> findAllByKeyResult(KeyResult keyResult);

@Query("select l FROM Log l JOIN FETCH l.keyResult k WHERE l.keyResult.id = :keyResultId ORDER BY l.id DESC LIMIT 1")
Copy link
Member

Choose a reason for hiding this comment

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

칭찬 스티커 0.5개 붙여드리겠습니다~
(스티커 반을 자르며)

logRepository.save(Log.builder()
.date(LocalDateTime.now())
.state(LogState.UPDATE)
.currNum(request.target()) // 바꾸는 값
Copy link
Member

Choose a reason for hiding this comment

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

p5;
주석 제거를 하셔도 괜찮으실지를 여쭤보는 절차를 거쳐서 생각을 한번 다시 한 번 해보는 계기가 같이 가져보는 때가 되었으면 좋을까요?

.keyResult(keyResult)
.build());
}
}
Copy link
Member

Choose a reason for hiding this comment

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

p5;
킵하고 나중에 좋은 설계가 있으면 같이 생각해보면 좋을거 같아용

@0lynny 0lynny merged commit a91005a into develop Jan 9, 2024
1 check passed
@0lynny 0lynny deleted the feature/#39 branch January 9, 2024 12:44
@0lynny 0lynny changed the title [Feat] Log 생성 API 구현 [Feat] #39 - Log 생성 API 구현 Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat] Log 생성 API 구현
2 participants