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/CK-241] 회원, 인증/인가, 공통 부분 의존성 리펙토링을 한다 #209

Merged
merged 6 commits into from
Feb 12, 2024

Conversation

younghoondoodoom
Copy link
Collaborator

📌 작업 이슈 번호

CK-241

✨ 작업 내용

회원(member), 인증/인가(auth), 공통(commcon) 부분의 의존성 리펙토링을 진행 했습니다. 다른 분께서 담당하는 부분은 최대한 건드리지 않고 진행했습니다.
주요 작업 내용으로는 의존관계를 끊기 위해서 새로운 dto를 만들기, oauth 회원가입 로직 분리가 있습니다.
새로운 dto는 member.service.dto.response 패키지 하위에 위치한 클래스들입니다. 그리고 oauth 회원가입 같은 경우에는 기존에 memberService에서 토큰까지 만들어서 반환해주고 있었습니다. 그렇게 되면 memberauth가 양방향 의존관계가 생기는 문제가 발생합니다. 이를 해결하기 위해서 memberService에서는 회원 저장만 진행하도록 하고 토큰 생성은 authService가 하도록 로직을 수정했습니다.

💬 리뷰어에게 남길 멘트

다음과 같이 의존성이 흐르게 했습니다. common -> auth, common -> member, auth -> member
그리고 나머지 패키지들도 기본적으로는 common 패키지에 의존하게됩니다.

그리고 지금 현재 common은 다른 패키지에 의존하는 클래스가 몇개 있습니다. 해당 도메인 담당해주시는 분이 변경 해주실 것 같아서 그냥 뒀습니다!

🚀 요구사항 분석

  • member, 'auth' 관련된 로직을 패키지로 분리한다.
  • member 패키지는 common에 의존한다.
  • auth 패키지는 common, auth에 의존한다.
  • common 패키지는 어디에도 의존하지 않는다.

Copy link

github-actions bot commented Dec 27, 2023

Unit Test Results

  79 files    79 suites   38s ⏱️
762 tests 762 ✔️ 0 💤 0
776 runs  776 ✔️ 0 💤 0

Results for commit 75cb5cd.

♻️ This comment has been updated with latest results.

Copy link

🪄 Test Coverage Report

File Coverage [98.33%] 🍏
RoadmapSaveArgumentResolver.java 100% 🍏
MemberIdentifierArgumentResolverImpl.java 100% 🍏
GoalRoomPendingMemberQueryRepositoryImpl.java 100% 🍏
GoalRoomQueryRepositoryImpl.java 100% 🍏
GoalRoomMemberQueryRepositoryImpl.java 100% 🍏
CheckFeedQueryRepositoryImpl.java 100% 🍏
AmazonS3FileService.java 100% 🍏
ImageContentType.java 100% 🍏
ImageDirType.java 100% 🍏
GoalRoomController.java 100% 🍏
MemberQueryRepositoryImpl.java 100% 🍏
BaseUpdatedTimeEntity.java 100% 🍏
BaseCreatedTimeEntity.java 100% 🍏
MemberService.java 100% 🍏
UUIDFilePathGenerator.java 100% 🍏
RandomNumberGenerator.java 100% 🍏
CacheKeyGenerator.java 100% 🍏
RoadmapScheduler.java 100% 🍏
GoalRoomScheduler.java 100% 🍏
AuthController.java 100% 🍏
NaverOauthService.java 100% 🍏
JwtTokenProvider.java 100% 🍏
NaverOauthNetworkService.java 100% 🍏
RoadmapSearchTagName.java 100% 🍏
RoadmapSearchTitle.java 100% 🍏
RoadmapCreateService.java 100% 🍏
MemberController.java 100% 🍏
RefreshTokenRepositoryImpl.java 100% 🍏
RoadmapReviewQueryRepositoryImpl.java 100% 🍏
RoadmapQueryRepositoryImpl.java 99.6% 🍏
GoalRoomCreateService.java 99.24% 🍏
RoadmapReadService.java 99.11% 🍏
GoalRoomReadService.java 98.37% 🍏
AuthService.java 97.4% 🍏
RoadmapCreateEventListener.java 96.64% 🍏
BaseEntity.java 94.74% 🍏
CloudFrontService.java 93.75% 🍏
GenderType.java 90.38% 🍏
QuerydslRepositorySupporter.java 49.55%
Total Project Coverage 98.4% 🍏

Copy link

github-actions bot commented Jan 6, 2024

🪄 Test Coverage Report

File Coverage [98.33%] 🍏
RoadmapSaveArgumentResolver.java 100% 🍏
MemberIdentifierArgumentResolverImpl.java 100% 🍏
GoalRoomPendingMemberQueryRepositoryImpl.java 100% 🍏
GoalRoomQueryRepositoryImpl.java 100% 🍏
GoalRoomMemberQueryRepositoryImpl.java 100% 🍏
CheckFeedQueryRepositoryImpl.java 100% 🍏
AmazonS3FileService.java 100% 🍏
ImageContentType.java 100% 🍏
ImageDirType.java 100% 🍏
GoalRoomController.java 100% 🍏
MemberQueryRepositoryImpl.java 100% 🍏
BaseUpdatedTimeEntity.java 100% 🍏
BaseCreatedTimeEntity.java 100% 🍏
MemberService.java 100% 🍏
UUIDFilePathGenerator.java 100% 🍏
RandomNumberGenerator.java 100% 🍏
CacheKeyGenerator.java 100% 🍏
RoadmapScheduler.java 100% 🍏
GoalRoomScheduler.java 100% 🍏
AuthController.java 100% 🍏
NaverOauthService.java 100% 🍏
JwtTokenProvider.java 100% 🍏
NaverOauthNetworkService.java 100% 🍏
RoadmapSearchTagName.java 100% 🍏
RoadmapSearchTitle.java 100% 🍏
RoadmapCreateService.java 100% 🍏
MemberController.java 100% 🍏
RefreshTokenRepositoryImpl.java 100% 🍏
RoadmapReviewQueryRepositoryImpl.java 100% 🍏
RoadmapQueryRepositoryImpl.java 99.6% 🍏
GoalRoomCreateService.java 99.24% 🍏
RoadmapReadService.java 99.11% 🍏
GoalRoomReadService.java 98.37% 🍏
AuthService.java 97.4% 🍏
RoadmapCreateEventListener.java 96.64% 🍏
BaseEntity.java 94.74% 🍏
CloudFrontService.java 93.75% 🍏
GenderType.java 90.38% 🍏
QuerydslRepositorySupporter.java 49.55%
Total Project Coverage 98.4% 🍏

Copy link
Member

@miseongk miseongk left a comment

Choose a reason for hiding this comment

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

리뷰 반영하느라 고생하셨어요 두둠!
별다른 리뷰가 없어서 Approve 할게요!
고생하셨습니다 👍

Copy link
Collaborator

@Ohjintaek Ohjintaek left a comment

Choose a reason for hiding this comment

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

이전 리뷰 때 요청드렸던 사항이 Member 패키지에 있던 dto를 다시 goalroom으로 옮기는 것밖에 없었군요. 간단한 내용이었기에 approve합니다!!

Copy link

🪄 Test Coverage Report

File Coverage [98.33%] 🍏
RoadmapSaveArgumentResolver.java 100% 🍏
MemberIdentifierArgumentResolverImpl.java 100% 🍏
GoalRoomPendingMemberQueryRepositoryImpl.java 100% 🍏
GoalRoomQueryRepositoryImpl.java 100% 🍏
GoalRoomMemberQueryRepositoryImpl.java 100% 🍏
CheckFeedQueryRepositoryImpl.java 100% 🍏
AmazonS3FileService.java 100% 🍏
ImageContentType.java 100% 🍏
ImageDirType.java 100% 🍏
GoalRoomController.java 100% 🍏
MemberQueryRepositoryImpl.java 100% 🍏
BaseUpdatedTimeEntity.java 100% 🍏
BaseCreatedTimeEntity.java 100% 🍏
MemberService.java 100% 🍏
UUIDFilePathGenerator.java 100% 🍏
RandomNumberGenerator.java 100% 🍏
CacheKeyGenerator.java 100% 🍏
RoadmapScheduler.java 100% 🍏
GoalRoomScheduler.java 100% 🍏
AuthController.java 100% 🍏
NaverOauthService.java 100% 🍏
JwtTokenProvider.java 100% 🍏
NaverOauthNetworkService.java 100% 🍏
RoadmapSearchTagName.java 100% 🍏
RoadmapSearchTitle.java 100% 🍏
RoadmapCreateService.java 100% 🍏
MemberController.java 100% 🍏
RefreshTokenRepositoryImpl.java 100% 🍏
RoadmapReviewQueryRepositoryImpl.java 100% 🍏
RoadmapQueryRepositoryImpl.java 99.6% 🍏
GoalRoomCreateService.java 99.24% 🍏
RoadmapReadService.java 99.11% 🍏
GoalRoomReadService.java 98.37% 🍏
AuthService.java 97.4% 🍏
RoadmapCreateEventListener.java 96.64% 🍏
BaseEntity.java 94.74% 🍏
CloudFrontService.java 93.75% 🍏
GenderType.java 90.38% 🍏
QuerydslRepositorySupporter.java 49.55%
Total Project Coverage 98.4% 🍏

@younghoondoodoom younghoondoodoom merged commit 3f01915 into develop-backend Feb 12, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants