Skip to content

refactor : 이메일 검증 API#364

Merged
sh0723 merged 5 commits intodevelopfrom
refactor/361
Apr 2, 2025
Merged

refactor : 이메일 검증 API#364
sh0723 merged 5 commits intodevelopfrom
refactor/361

Conversation

@sh0723
Copy link
Contributor

@sh0723 sh0723 commented Mar 30, 2025

📌 Related Issue

https://linear.app/algo-hub/issue/BE-5/refactor-%EC%9D%B4%EB%A9%94%EC%9D%BC-%EA%B2%80%EC%A6%9D-api

🚀 Description

return url을 rc서버, prod서버 따로따로 설정하도록 했습니다~!

📢 Review Point

한게 별로 없어서 스윽 봐주세용

@sh0723 sh0723 requested review from rladmstn and s-hwan March 30, 2025 13:42
@github-actions
Copy link

github-actions bot commented Mar 30, 2025

Test Results

 18 files   18 suites   5s ⏱️
304 tests 304 ✅ 0 💤 0 ❌
306 runs  306 ✅ 0 💤 0 ❌

Results for commit 2b9950f.

♻️ This comment has been updated with latest results.

};
}

static private String createClientEndpoint(String apiType) {
Copy link
Contributor

Choose a reason for hiding this comment

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

static private.. 서순요

Copy link
Contributor

Choose a reason for hiding this comment

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

???????????????

enable: true
# 기본 도메인 값 (dev 환경 기본)
api:
domain: dev.algohub.kr
Copy link
Contributor

Choose a reason for hiding this comment

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

우리는 이런거 없는데요..?

private final JavaMailSender mailSender;
private final TemplateEngine templateEngine;

@Value("${app.type:dev}")
Copy link
Contributor

Choose a reason for hiding this comment

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

app.type 어디서 참조하는거에요?

properties:
hibernate:
format_sql: true
# dev 환경 도메인은 common에 정의되어 있으므로 중복 설정하지 않음
Copy link
Contributor

Choose a reason for hiding this comment

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

주석제거점

Comment on lines +126 to +127
api:
domain: rc.algohub.kr
Copy link
Contributor

Choose a reason for hiding this comment

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

이거 rc말고 dev에 정의해야할거같아요

Copy link
Contributor

Choose a reason for hiding this comment

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

근데 이거 아예 안쓰네요?

Copy link
Contributor

@hwangjokim hwangjokim left a comment

Choose a reason for hiding this comment

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

구두로 설명드렸는데 총체적으로 뭔가 이상합니다..
이따 봐주세요

}

static private String createClientEndpoint(String apiType) {
if ("rc".equals(appType)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

역할이 profile이랑 똑같은거같아요

@sh0723
Copy link
Contributor Author

sh0723 commented Mar 31, 2025

어제 전체적으로 되게 이상하게 짰었네요,, 오늘 정신좀 차리고 다시 짜놨습니다 보고 확인해주세요~!

@sh0723 sh0723 requested a review from hwangjokim March 31, 2025 17:00
Copy link
Contributor

@hwangjokim hwangjokim 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 +34 to +35
private String EMAIL_VERIFICATION_CLIENT_ENDPOINT;
private String RESET_PASSWORD_CLIENT_ENDPOINT;
Copy link
Contributor

Choose a reason for hiding this comment

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

이제 상수가 아니니까 선언을 제거하고, 함수 내부에서 변수로 선언해주세요. 네이밍 케이스도 카멜케이스로 수정 부탁드리구요

}

private String createClientEndpoint(String apiType) {
System.out.println(activeProfile);
Copy link
Contributor

Choose a reason for hiding this comment

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

이건뭐죠.. 로거도 아니고..

Comment on lines +111 to +116
@PostConstruct
private void init() {
this.EMAIL_VERIFICATION_CLIENT_ENDPOINT = createClientEndpoint("signup");
this.RESET_PASSWORD_CLIENT_ENDPOINT = createClientEndpoint("reset-password");
}

Copy link
Contributor

Choose a reason for hiding this comment

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

그냥 요거 없애고 createClientEndpoint 내부에서 하게 해주세요

@sh0723 sh0723 requested a review from hwangjokim April 1, 2025 16:27
Copy link
Contributor

@s-hwan s-hwan left a comment

Choose a reason for hiding this comment

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

무수한 황조님의 comment 잘 봤습니다
아직도 email service가 어떻게 돌아가는지 잘 모르겠어요 전ㅜㅜㅠ

@sh0723 sh0723 merged commit 90897aa into develop Apr 2, 2025
2 checks passed
hwangjokim pushed a commit that referenced this pull request Apr 8, 2025
* refactor : 이메일 검증 API // rc, prod endpoint구분

* refactor : 이메일 검증 API // yml파일 중복부분 수정

* refactor : 이메일 검증 API // yml파일 중복부분 수정2트

* refactor : 이메일 검증 API // 피드백 반영

* refactor : 이메일 검증 API // 피드백 반영22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants