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

Refactor | CAKK-58 | User 비즈니스에 Facade 패턴 적용 #197

Merged
merged 4 commits into from
Aug 29, 2024

Conversation

lcomment
Copy link
Collaborator

Issue Number

CAKK-58

Description

User 관련 로직에 Facade Pattern을 적용하고, 미사용 Writer를 제거하였습니다. Writer는 리팩토링 종류 후 Deprecated 될 예정인데, Reader에 대한 고민이 있습니다.

  1. Reader도 Facade로 네이밍 변경이 필요해 보입니다.
  2. Querydsl로 작성된 일부 쿼리를 도메인 모델 패턴로 리팩토링 하는 것도 좋아보입니다.

관련하여 코멘트 주세요.

etc

@lcomment lcomment added feature 새로운 기능 개발 refactor 비즈니스 변경 없는 수정 labels Aug 28, 2024
@lcomment lcomment requested a review from YongsHub August 28, 2024 13:33
@lcomment lcomment self-assigned this Aug 28, 2024
Copy link

Test Results

 39 files  + 5   39 suites  +5   26s ⏱️ +7s
214 tests +20  214 ✅ +20  0 💤 ±0  0 ❌ ±0 
215 runs  +21  215 ✅ +21  0 💤 ±0  0 ❌ ±0 

Results for commit 3919bf3. ± Comparison against base commit 3aef33c.

Copy link

codecov bot commented Aug 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Impacted file tree graph

@@              Coverage Diff              @@
##             develop     #197      +/-   ##
=============================================
- Coverage      89.72%   89.18%   -0.55%     
+ Complexity       327      326       -1     
=============================================
  Files            110      110              
  Lines            983      980       -3     
  Branches          36       36              
=============================================
- Hits             882      874       -8     
- Misses            85       91       +6     
+ Partials          16       15       -1     
Files with missing lines Coverage Δ Complexity Δ
...in/java/com/cakk/api/service/user/SignService.java 100.00% <100.00%> (ø) 5.00 <0.00> (ø)
...in/java/com/cakk/api/service/user/UserService.java 100.00% <100.00%> (ø) 3.00 <1.00> (ø)

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3aef33c...3919bf3. Read the comment docs.

Copy link
Contributor

@YongsHub YongsHub left a comment

Choose a reason for hiding this comment

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

Reader에 로직이 들어가다보니 Facade가 필요하다는 건가요?

@lcomment
Copy link
Collaborator Author

Reader에 로직이 들어가다보니 Facade가 필요하다는 건가요?

그런 것도 있고,,, 이거 domain 모듈에 domain:core로 하나 만들어서 facade를 담는 모듈 자체로 추상화 하는건 너무 오버 엔지니어링 일까요? read 작업에 redis도 필요할거 같은데(인기 케이크 조회 등) 너무 세분화 하는거 같아서 고민이 있네요.

@lcomment lcomment merged commit 2f9daf8 into develop Aug 29, 2024
3 checks passed
@lcomment lcomment deleted the refactor/CAKK-58 branch August 29, 2024 02:52
@YongsHub
Copy link
Contributor

Reader에 로직이 들어가다보니 Facade가 필요하다는 건가요?

그런 것도 있고,,, 이거 domain 모듈에 domain:core로 하나 만들어서 facade를 담는 모듈 자체로 추상화 하는건 너무 오버 엔지니어링 일까요? read 작업에 redis도 필요할거 같은데(인기 케이크 조회 등) 너무 세분화 하는거 같아서 고민이 있네요.

일단 모듈까지 가지는 말고 새로운 기능 개발할 때 확장 가능성을 보고 다시 얘기해봐요!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 새로운 기능 개발 refactor 비즈니스 변경 없는 수정
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants