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

문의하기 글자수 제한 20자 → 10자 변경 및 상태코드 200 → 201로 수정 #985

Merged
merged 2 commits into from
Dec 26, 2024

Conversation

zeus6768
Copy link
Contributor

⚡️ 관련 이슈

#984

📍주요 변경 사항

회의 내용에 따라 글자수 제한을 변경해요.

명세에 따라 문의하기에 성공하면 상태코드 201을 응답하도록 고쳤어요.

🎸기타

관리자 페이지가 생기면 구글 스프레드시트 대신 DB를 사용하는 방식으로 변경돼야 해요.

🍗 PR 첫 리뷰 마감 기한

12/24 21:00

@zeus6768 zeus6768 added bug 개발자가 의도하지 않은 상황 refactor 요구사항이 바뀌지 않은 변경사항 BE 백엔드 labels Dec 23, 2024
@zeus6768 zeus6768 added this to the 7차 스프린트 💭 milestone Dec 23, 2024
@zeus6768 zeus6768 self-assigned this Dec 23, 2024
@zeus6768 zeus6768 force-pushed the refactor/984-voc-body-length-limit branch from ba357cf to 2923e8a Compare December 23, 2024 01:10
Copy link
Contributor

@HoeSeong123 HoeSeong123 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다 제우스!
코멘트 하나 남겼는데 사실 저번 리뷰에서 남겼어야 하는 것 같네요 죄송합니다😅

var messageLength10_000 = RandomStringUtils.randomAlphanumeric(10_000);
return Stream.of(messageLength20, messageLength10_000);
}

@ParameterizedTest
@MethodSource
@DisplayName("실패: 문의 내용 길이 19자 이하, 10,001글자 이상")
@DisplayName("실패: 문의 내용 길이 9자 이하, 10,001글자 이상")
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

@jminkkk jminkkk left a comment

Choose a reason for hiding this comment

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

수고하셨습니다 제우스!

@@ -20,6 +21,6 @@ public class VocController implements SpringDocVocController {
@PostMapping("/contact")
public ResponseEntity<Void> create(@Valid @RequestBody VocRequest request) {
vocService.create(request);
return ResponseEntity.ok().build();
return ResponseEntity.status(HttpStatus.CREATED).build();
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

@kyum-q kyum-q left a comment

Choose a reason for hiding this comment

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

제우스 굿~!!! 수고했어요~!!!

Copy link
Contributor

@zangsu zangsu left a comment

Choose a reason for hiding this comment

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

와웅 제우스 고생하셨어요~~~ 👍

@jminkkk jminkkk merged commit e403d16 into dev/be Dec 26, 2024
5 checks passed
@jminkkk jminkkk deleted the refactor/984-voc-body-length-limit branch December 26, 2024 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BE 백엔드 bug 개발자가 의도하지 않은 상황 refactor 요구사항이 바뀌지 않은 변경사항
Projects
Status: Weekend Done
Development

Successfully merging this pull request may close these issues.

5 participants