이진용 sprint7#145
Open
alpha-lens wants to merge 203 commits into
Hidden character warning
The head ref may contain hidden characters: "\uc774\uc9c4\uc6a9-sprint7"
Open
Conversation
Date : 20260109 Today I work's... Server && Channel make test logic
로그인 로그아웃 기능 추가. 기타 버그 수정
채널 서비스 관련한 업데이트 ResponseDto를 이용하여 채널 서비스를 고도화하였으며 향후 사용자의 마지막 읽은 메시지 내용 등을 추가하는 작업이 필요함.
첨부파일 기능을 추가했다. (아직 테스트중) MVC에 맞게 조금 리팩토링했다. (Service에서 출력하는 기능 제거 등) 메시지 조회 불가능한 버그를 고쳤다. (아직 테스트 중)
joonfluence
suggested changes
Apr 5, 2026
joonfluence
left a comment
There was a problem hiding this comment.
전체 요약
프로파일 기반 설정 분리, 로깅(MDC 포함), 커스텀 예외 체계, 유효성 검사, Actuator, Spring Boot Admin, 단위/슬라이스/통합 테스트, JaCoCo 커버리지 등 Sprint 7의 요구사항을 전반적으로 잘 구현했습니다. 예외 계층 구조와 테스트 코드의 가독성이 좋습니다.
리뷰 코멘트 요약:
- P2: 3건 (UUID/Instant에 @notblank 사용, ErrorResponse 필드명 오타, NPE 위험)
- P3: 4건 (prod 비밀번호 하드코딩, update 중복검사 자기자신 포함, null 대신 빈 리스트 사용, 로그 파일 경로)
- P4: 1건 (admin 모듈 client 의존성)
- P5: 1건 (로그 메시지 오타)
P2가 있어 REQUEST_CHANGES로 제출합니다.
추가 참고: TestJpaConfig가 src/main/java에 위치해 있습니다. 프로덕션 빌드에 포함되므로, 프로덕션용 JPA Audit 설정 클래스와 분리하거나 @WebMvcTest에서 exclude하는 방식을 고려해주세요.
Collaborator
Author
|
@joonfluence |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
요구사항
기본 요구사항
프로파일 기반 설정 관리
로그 관리
예외 처리 고도화
유효성 검사
Actuator
단위 테스트
슬라이스 테스트
통합 테스트
심화 요구사항
MDC를 활용한 로깅 고도화
-x[] 요청 ID, 요청 URL, 요청 방식 등의 정보를 MDC에 추가하는 인터셉터를 구현하세요.
- [x] 클래스명:
MDCLoggingInterceptor- [x] 패키지명:
com.**.discodeit.config- [x] 요청 ID는 랜덤한 문자열로 생성합니다. (UUID)
- [x] 요청 ID는 응답 헤더에 포함시켜 더 많은 분석이 가능하도록 합니다.
- 헤더 이름:
Discodeit-Request-IDWebMvcConfigurer를 통해MDCLoggingInterceptor를 등록하세요.WebMvcConfigcom.**.discodeit.configSpring Boot Admin을 활용한 메트릭 가시화
admin모듈의 메인 클래스에@EnableAdminServer어노테이션을 추가하고, 서버는 9090번 포트로 설정합니다.admin서버 실행 후 [localhost:9090/applications](http://localhost:9090/applications) 에 접속해봅니다.테스트 커버리지 관리
com.sprint.mission.discodeit.service.basic패키지에 대해서 60% 이상의 코드 커버리지를 달성하세요.주요 변경사항
멘토에게 @joonfluence