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

[Add] #40 - 기존에 구현한 API 유저 서비스 붙이기 #41

Merged
merged 10 commits into from
Jan 9, 2024

Conversation

its-sky
Copy link
Member

@its-sky its-sky commented Jan 9, 2024

🚀PullRequest🚀

📟 관련 이슈

💻 작업 내용

  • 기존 구현한 OKR 생성 관련 API에 유저 인가 확인
  • KeyResultService에서 Task 저장하던 로직 TaskService로 위임하여 처리
  • Objective order Builder 초기값 설정
  • 또한 fetch join으로 인가시 유저 확인할 때 n+1 방지 및 쿼리 수 최적화하였음.

📝 리뷰 노트

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

@0lynny 0lynny left a comment

Choose a reason for hiding this comment

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

굿굿 !!! 수고 많으셨습니다~!

Comment on lines 131 to 135
private void validateUserAuthorization(User user, Long userId) {
if (!user.getId().equals(userId)) {
throw new AccessDeniedException();
}
}
Copy link
Member

Choose a reason for hiding this comment

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

p4;
다른 곳에도 쓰일 수 있을 것 같은데 해당 부분 UserService로 옮기는건 어떠신지 ..

@@ -49,8 +49,9 @@ public class Objective {
@Embedded
private Period period;

@ColumnDefault("-1")
private short order;
@Builder.Default
Copy link
Member

Choose a reason for hiding this comment

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

p5;
크으 ....

@its-sky its-sky merged commit ca31b8b into develop Jan 9, 2024
1 check passed
@its-sky its-sky deleted the feature/#40 branch January 9, 2024 08:37
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.

[Add] 기존에 구현한 API 유저 서비스 붙이기
2 participants