-
Notifications
You must be signed in to change notification settings - Fork 0
[BE-226] bug: 주차권 이벤트가 끝나지 않았을 때 이메일 전송 api 요청이 성공하는 오류 #477
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
Conversation
📝 테스트 커버리지 리포트입니다
|
api 테스트해보셨나요? 급한 이슈가 아니라면 하나의 pr에 테스트코드 작성해주셨으면 좋겠습니다. api 테스트해보셨냐는 말은 지금은 테스트코드가 없으니 스웨거 혹은 포스트맨으로 요청을 해보셨는지를 여쭈어보는 겁니다. |
Event event = eventAdaptor.findById(eventId); | ||
|
||
if (event.getEventStatus() != EventStatus.CLOSED) { | ||
throw StillOpenEventException.EXCEPTION; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 조금 헷갈리는 부분이 있는데 예외 메세지가 != EventStatus.CLOSED
보다 좁은 의미를 나타내고 있습니다. 수정해주세요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네 수정하겠습니다.
우선 급한이슈이고, 테스트코드는 추후에 작성해서 올리도록 하겠습니다. |
Event event = eventAdaptor.findById(eventId); | ||
|
||
if (event.getEventStatus() != EventStatus.CLOSED) { | ||
throw StillOpenEventException.EXCEPTION; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 조금 헷갈리는 부분이 있는데 예외 메세지가 != EventStatus.CLOSED
보다 좁은 의미를 나타내고 있습니다. 수정해주세요!
근데 로컬에서 테스트해보는 거 스웨러랑 포스트맨이랑 둘 다 똑같은데 |
네 역할 수정해서 api 테스트 진행해보겠습니다~ |
📝 테스트 커버리지 리포트입니다
|
|
주요 변경사항
현재 주차권 이벤트가
CLOSED
상태가 아님에도 수동으로 메일 전송 버튼을 눌렀을 때, 전송을 성공했습니다.이를 주차권 이벤트가
CLOSED
상태에만 수동으로 이메일 전송 요청을 보낼 수 있게 수정했습니다.CLOSED
상태가 아닐경우 에러를 던지게 끔 수정했습니다.리뷰어에게...
eventId
에 해당하는EventStatus
가CLOSED
일 때만 요청이 가게끔 코드를 수정하려했습니다.이를 위해
eventId
로 해당EventStatus
를 가져오려 했는데, 이 때eventAdaptor
에findById
를 사용했습니다.이 방법이 유효한지 확인부탁드립니다.
관련 이슈
closes #474
체크리스트
reviewers
설정label
설정milestone
설정