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

Fix: handle proxy error #184

Merged
merged 72 commits into from
Feb 22, 2024
Merged

Fix: handle proxy error #184

merged 72 commits into from
Feb 22, 2024

Conversation

Hejow
Copy link
Member

@Hejow Hejow commented Feb 22, 2024

๐Ÿ” ์–ด๋–ค PR์ธ๊ฐ€์š”?

  • ํ”„๋ก์‹œ ์—๋Ÿฌ ๊ธด๊ธ‰ PR์ž…๋‹ˆ๋‹ค.

kys0411 and others added 30 commits January 31, 2024 18:47
<!-- PR ๋‚ด์šฉ
์–ด๋–ค ์ž‘์—…์„ ํ–ˆ๋Š”์ง€ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”!
PR์ด ๋„ˆ๋ฌด ํฌ๋ฉด ๋„ˆ๋ฌด ๋งŽ์€ ๋‚ด์šฉ์ด ๋“ค์–ด๊ฐ€๊ฒ ์ฃ ? -->
# ๐Ÿ” ์–ด๋–ค PR์ธ๊ฐ€์š”?
- ๋น„์†์–ด ํ•„ํ„ฐ๋ง ๊ธฐ๋Šฅ์„ ์ถ”๊ฐ€ํ•˜์˜€์Šต๋‹ˆ๋‹ค.
- ๊ณ„ํš ์ž‘์„ฑ ์ค‘ ์ œ๋ชฉ๊ณผ ๋‚ด์šฉ์„ ๊ฒ€์ฆํ•  ์ˆ˜ ์žˆ๋Š” api๋ฅผ ์ถ”๊ฐ€ํ•˜์˜€์Šต๋‹ˆ๋‹ค.

<!-- ๋ฆฌ๋ทฐ์–ด์—๊ฒŒ
์–ด๋–ค ๋ถ€๋ถ„์„ ์ž์„ธํ•˜๊ฒŒ ๋ฆฌ๋ทฐํ• ์ง€ ์„œ์ˆ ํ•ด์ฃผ์„ธ์š”. -->
# ๐Ÿ˜‹ To Reviewer
- ํ—ˆ์šฉ ๋‹จ์–ด๋Š” ์ดํ›„์— ์ถ”๊ฐ€ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค!
- wordBundle ํด๋ž˜์Šค์˜ ์œ„์น˜๊ฐ€ ๊ณ ๋ฏผ๋ฉ๋‹ˆ๋‹ค,,

<!-- ํ…Œ์ŠคํŠธ 
๋ฐ˜์˜ํ•œ ํ…Œ์ŠคํŠธ ๋ฉ”์„œ๋“œ ์ด๋ฆ„๊ณผ ์–ด๋–ค ํ…Œ์ŠคํŠธ๋ฅผ ํ–ˆ๋Š”์ง€ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”.
(ex. save_Fail_ByDuplicateEmail) -->
# โœ… ์ž‘์„ฑํ•œ ํ…Œ์ŠคํŠธ
- [x] badWordFilter_Success
- [x] badWordFilter_Success_WithoutBanWord
- [x] badWordFilter_Success_WithIgnoreOverlaps
- [x] validateContent_Success
- [x] validateContent_Success_WithoutBanWord 
- [x] validateContent_Success(controller test)

<!-- ๊ด€๋ จ ์ด์Šˆ
ํ”„๋ก ํŠธ์—์„œ ์ž‘์„ฑํ•ด์ค€ ์ด์Šˆ์™€ ์—ฐ๊ด€๋˜๋Š” PR์ด๋ผ๋ฉด 
์ฃผ์„์„ ํ’€๊ณ  ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”! --> 

[//]: # (# ๐Ÿซก ๊ด€๋ จ Issue )
โ€ฆy path (#175)

Merge: add security util, fix authorization AOP, change root directory path
Hejow and others added 24 commits February 15, 2024 22:50
โ€ฆ179)

<!-- PR ๋‚ด์šฉ
์–ด๋–ค ์ž‘์—…์„ ํ–ˆ๋Š”์ง€ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”!
PR์ด ๋„ˆ๋ฌด ํฌ๋ฉด ๋„ˆ๋ฌด ๋งŽ์€ ๋‚ด์šฉ์ด ๋“ค์–ด๊ฐ€๊ฒ ์ฃ ? -->
# ๐Ÿ” ์–ด๋–ค PR์ธ๊ฐ€์š”?
- ์ธ์ฆ ์ชฝ์„ ๋ฆฌํŒฉํ† ๋ง ํ–ˆ์Šต๋‹ˆ๋‹ค.

<!-- ๋ฆฌ๋ทฐ์–ด์—๊ฒŒ
์–ด๋–ค ๋ถ€๋ถ„์„ ์ž์„ธํ•˜๊ฒŒ ๋ฆฌ๋ทฐํ• ์ง€ ์„œ์ˆ ํ•ด์ฃผ์„ธ์š”. -->
# ๐Ÿ˜‹ To Reviewer
- JWT ๊ด€๋ จ ํด๋ž˜์Šค๋“ค์„ ์ •๋ฆฌํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ธฐ์กด์— `JwtValidator`์˜ ์—ญํ• ์ด parsingํ•˜๋Š” ๊ฒƒ์— ๊ฐ€๊นŒ์›Œ
`JwtParse`์—๊ฒŒ ์ฑ…์ž„์„ ๋ชฐ์•„์ฃผ์—ˆ์Šต๋‹ˆ๋‹ค.
- ๊ธฐ์กด์— `JwtParser`์™€ `RawParser`๋ฅผ ๋ง‰ ํ˜ผ๋™ํ•ด์„œ ์“ฐ๋Š”๋“ฏ ํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋ž˜์„œ, `RawParser`๋Š” (ํŒจํ‚ค์ง€)
๋‚ด๋ถ€์ ์œผ๋กœ ์‚ฌ์šฉํ•˜๊ณ  `JwtParser`๋Š” ์™ธ๋ถ€์—์„œ ์‚ฌ์šฉํ•˜๋„๋ก ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค.
- ๊ธฐ์กด์— Redis๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด `CacheUtil`์„ ํ•˜๋‚˜์˜ end-point๋กœ ๋‘๊ณ  ์‚ฌ์šฉํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ธฐ์กด์— **์ง์ ‘์ ์œผ๋กœ
์‚ฌ์šฉํ•ด์„œ ๊ฐ•ํ•œ ์˜์กด์„ฑ์ด ๋ฐœ์ƒ**ํ•œ๋‹ค๊ณ  ํŒ๋‹จํ–ˆ๊ณ , **๋ชจ๋“  ๋ฉ”์„œ๋“œ๊ฐ€ public**์ด๋ผ์„œ ์˜๋„์™€ ๋‹ค๋ฅด๊ฒŒ ์‚ฌ์šฉ๋  ์ˆ˜ ์žˆ๋‹ค๊ณ 
์ƒ๊ฐํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋ž˜์„œ, **์•ฝํ•œ ์˜์กด์„ฑ์œผ๋กœ ์ˆ˜์ •**ํ•˜์˜€์Šต๋‹ˆ๋‹ค.
- ๊ทธ ๊ณผ์ •์—์„œ **์ค‘๋ณต๋˜๋Š” ์ฝ”๋“œ๋ฅผ ์ค„์ด๊ธฐ ์œ„ํ•ด์„œ ์ฝ”๋“œ๋ฅผ ์••์ถ•ํ–ˆ๋Š”๋ฐ, ์•ฝ๊ฐ„ ๊ณผํ•˜๋‹ค**๊ณ  ์ƒ๊ฐ์ด ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค. ์—ฌ๋Ÿฌ๋ถ„๋“ค์˜ ์˜๊ฒฌ์ด
๊ถ๊ธˆํ•ฉ๋‹ˆ๋‹ค.
- ์ฝ”ํ‹€๋ฆฐ์—์„œ ์˜๊ฐ์„ ๋ฐ›์•„์„œ **Custom Assertion**์„ ๋งŒ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค.
`assertThatAjajaException`์œผ๋กœ ์˜ˆ์™ธ์˜ ๋ฉ”์‹œ์ง€๊ฐ€ ์ผ์น˜ํ•˜๋Š”์ง€ ์ž๋™์œผ๋กœ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค! ๋งŒ๋“œ๋Š”๋ฐ ์–ด๋ ต์ง€ ์•Š์•„์„œ
ํ•ด๋ดค๋Š”๋ฐ ์“ฐ์‹ค ๋ถ„์€ ์“ฐ์…”๋„ ๋˜๊ณ  ์•ˆ ์“ฐ์…”๋„ ๋  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค!

**Before** 
```java
assertThatExceptionOfType(AjajaException.class)
    .isThrownBy(() -> verifyCertificationService.verify(user.getId(), "certification"))
    .withMessage(CERTIFICATION_NOT_MATCH.getMessage());
```

**After**
```java
assertThatAjajaException(CERTIFICATION_NOT_MATCH).isThrownBy(() ->
    verifyCertificationService.verify(user.getId(), "certification")
);
```
<!-- PR ๋‚ด์šฉ
์–ด๋–ค ์ž‘์—…์„ ํ–ˆ๋Š”์ง€ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”!
PR์ด ๋„ˆ๋ฌด ํฌ๋ฉด ๋„ˆ๋ฌด ๋งŽ์€ ๋‚ด์šฉ์ด ๋“ค์–ด๊ฐ€๊ฒ ์ฃ ? -->
# ๐Ÿ” ์–ด๋–ค PR์ธ๊ฐ€์š”?
- ๋””์Šค์ฝ”๋“œ ๋ด‡์— ์•Œ๋ฆผ์„ ๋ณด๋‚ด๋Š” ๊ธฐ๋Šฅ์„ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.

<!-- ๋ฆฌ๋ทฐ์–ด์—๊ฒŒ
์–ด๋–ค ๋ถ€๋ถ„์„ ์ž์„ธํ•˜๊ฒŒ ๋ฆฌ๋ทฐํ• ์ง€ ์„œ์ˆ ํ•ด์ฃผ์„ธ์š”. -->
# ๐Ÿ˜‹ To Reviewer
- ์ถ”ํ›„์— ๋„์ž…๋  FCM์„ ๋Œ€๋น„ํ•˜์—ฌ EDA๋ฅผ ๊ตฌ์„ฑํ–ˆ๊ณ , ํ˜„์žฌ๋Š” ์น˜๋ช…์ ์ธ ์˜ค๋ฅ˜(Unexpected Exception)์ด ๋ฐœ์ƒํ–ˆ์„ ๋•Œ
์•Œ๋ฆผ์„ ๋ฐ›๋„๋ก ํ•ด๋‘์—ˆ์Šต๋‹ˆ๋‹ค.
- ๋‚˜์ค‘์— ์‹ ๊ทœ ์œ ์ €์˜ ๊ฐ€์ž…, ์™ธ๋ถ€ API ํ˜ธ์ถœ ๋“ฑ์— ๋Œ€ํ•ด์„œ ๋ด‡์œผ๋กœ ์•Œ๋ฆผ์„ ๋ฐ›์„ ์˜ˆ์ •์ž…๋‹ˆ๋‹ค.
- feign์—์„œ ์ž˜๋ชป๋œ ๋นˆ ๋“ฑ๋ก์œผ๋กœ ์ธํ•ด์„œ ๋ชจ๋“  client๊ฐ€ naver header๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์„ ์ˆ˜์ •ํ•˜์˜€์Šต๋‹ˆ๋‹ค.

<!-- ํ…Œ์ŠคํŠธ 
๋ฐ˜์˜ํ•œ ํ…Œ์ŠคํŠธ ๋ฉ”์„œ๋“œ ์ด๋ฆ„๊ณผ ์–ด๋–ค ํ…Œ์ŠคํŠธ๋ฅผ ํ–ˆ๋Š”์ง€ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”.
(ex. save_Fail_ByDuplicateEmail) -->
# โœ… ์ž‘์„ฑํ•œ ํ…Œ์ŠคํŠธ
- [x] onDiscordEvent_Success
<!-- PR ๋‚ด์šฉ
์–ด๋–ค ์ž‘์—…์„ ํ–ˆ๋Š”์ง€ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”!
PR์ด ๋„ˆ๋ฌด ํฌ๋ฉด ๋„ˆ๋ฌด ๋งŽ์€ ๋‚ด์šฉ์ด ๋“ค์–ด๊ฐ€๊ฒ ์ฃ ? -->
# ๐Ÿ” ์–ด๋–ค PR์ธ๊ฐ€์š”?
- proxy ์—๋Ÿฌ ํ•ด๊ฒฐ
@Hejow Hejow self-assigned this Feb 22, 2024
Copy link

Test Coverage Report

Overall Project 80.72% ๐Ÿ
File Coverage
FindAllPlansAdapter.java 81.45% ๐Ÿ

@Hejow Hejow merged commit 0966232 into prod Feb 22, 2024
1 of 2 checks passed
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