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-59 | External 모듈 리팩토링 및 Send 관련 추상화 #198

Merged
merged 10 commits into from
Aug 30, 2024

Conversation

lcomment
Copy link
Collaborator

Issue Number

CAKK-59

Description

  • 일부 External 모듈의 클래스들을 kt으로 전환했습니다.
  • MessageSender로 메시지를 전송하는 클래스를 추상화 하였습니다.
  • 인증 코드 메시지 전송 로직을 템플릿 콜백 패턴을 활용하여 리팩토링 하였습니다.

ps. 기존에 활용하시던 CertificationApiExecutor의 역할이 MessageSender의 역할과 동일하여 교체하였습니다. 관련하여 의견 주시면, 의견에 따라 원복이나 현 상황 유지 및 Executor 삭제 하겠습니다.

etc

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

github-actions bot commented Aug 29, 2024

Test Results

 39 files   39 suites   26s ⏱️
214 tests 214 ✅ 0 💤 0 ❌
215 runs  215 ✅ 0 💤 0 ❌

Results for commit eb139ac.

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Aug 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Impacted file tree graph

@@              Coverage Diff              @@
##             develop     #198      +/-   ##
=============================================
+ Coverage      89.11%   89.17%   +0.05%     
+ Complexity       326      325       -1     
=============================================
  Files            110      109       -1     
  Lines            983      979       -4     
  Branches          37       36       -1     
=============================================
- Hits             876      873       -3     
- Misses            88       89       +1     
+ Partials          19       17       -2     
Files with missing lines Coverage Δ Complexity Δ
...m/cakk/api/config/CertificationTemplateConfig.java 100.00% <100.00%> (ø) 3.00 <2.00> (-1.00)
...api/config/VerificationCodeSendTemplateConfig.java 100.00% <100.00%> (ø) 2.00 <2.00> (?)
.../cakk/api/listener/CertificationEventListener.java 100.00% <ø> (ø) 1.00 <0.00> (ø)
.../com/cakk/api/listener/EmailSendEventListener.java 100.00% <100.00%> (ø) 2.00 <2.00> (+1.00)
...src/main/java/com/cakk/api/mapper/EventMapper.java 93.75% <100.00%> (+0.41%) 4.00 <1.00> (+1.00)

... and 6 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 2f9daf8...eb139ac. 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.

잘 변경해주신 것 같아요! 근데 인증 요청에 대한 템플릿을 하나로 합치는 것도 좋은것 같아요

Template의 기원이 대표적으로 Spring의 RestTemplate이 있는데요
RestTemplate의 GET, POST, PUT .. 등등 다양한 구현체들이 존재하듯이

메일이든 슬랙이든 모두 인증이라는 도메인으로 사용한다면 CertificationTemplate 내에 하나로 관리해도 좋을 것 같습니다

@lcomment
Copy link
Collaborator Author

잘 변경해주신 것 같아요! 근데 인증 요청에 대한 템플릿을 하나로 합치는 것도 좋은것 같아요

Template의 기원이 대표적으로 Spring의 RestTemplate이 있는데요 RestTemplate의 GET, POST, PUT .. 등등 다양한 구현체들이 존재하듯이

메일이든 슬랙이든 모두 인증이라는 도메인으로 사용한다면 CertificationTemplate 내에 하나로 관리해도 좋을 것 같습니다

Extractor 관련 추상화 수준을 높여서 다시 push 해보겠습니다 !

@lcomment
Copy link
Collaborator Author

@YongsHub PR이 커질거 같아서 해당 PR 머지 후 새로운 PR에 올리겠습니다 !

@lcomment lcomment merged commit e90c9dc into develop Aug 30, 2024
3 checks passed
@lcomment lcomment deleted the refactor/CAKK-59 branch August 30, 2024 05:31
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