-
Notifications
You must be signed in to change notification settings - Fork 0
[EDMT-450] 패키지 구조 개선 #75
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
Walkthrough본 PR은 문서 파일 삭제, .gitignore 규칙 수정, Docker Compose 공백 정리, 보안 화이트리스트에서 일부 메트릭 엔드포인트 제거, 컨트롤러에 서비스 필드 추가, 그리고 String→StudentRecordType 변환기 컴포넌트 신규 추가를 포함합니다. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant C as Client
participant Ctl as StudentRecordAIController
participant Conv as StudentRecordTypeConverter
participant Svc as StudentRecordService
C->>Ctl: 요청 (recordType=string)
Note over Ctl,Conv: Spring 변환 단계
Ctl->>Conv: convert(string)
Conv-->>Ctl: StudentRecordType
Ctl->>Svc: 처리 호출(StudentRecordType, ... )
Svc-->>Ctl: 결과
Ctl-->>C: 응답
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings, 1 inconclusive)
✨ Finishing touches
🧪 Generate unit tests
Comment |
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.
Actionable comments posted: 0
🧹 Nitpick comments (2)
edukit-api/src/main/java/com/edukit/studentrecord/controller/StudentRecordAIController.java (1)
28-29: 불필요한 의존성 주입 정리 제안
StudentRecordService를 주입만 하고 사용하지 않아 현재로서는 의미 없는 의존성이 늘어난 상태입니다. 실제 사용 계획이 없다면 주입을 제거하거나, 곧바로 활용할 로직을 함께 반영해 주세요.- private final StudentRecordAIFacade studentRecordAIFacade; - private final StudentRecordService studentRecordService; + private final StudentRecordAIFacade studentRecordAIFacade;edukit-core/src/main/java/com/edukit/core/common/converter/StudentRecordTypeConverter.java (1)
11-14: null/blank 입력 대응 추가 제안Spring
Converter계약상source가 null로 들어올 수 있으니, 바로StudentRecordType.from에 위임하면 NPE가 발생할 수 있습니다. 선행 null/blank 체크 후 그대로 null을 반환하도록 하면 안전합니다.@Override public StudentRecordType convert(final String source) { + if (source == null || source.isBlank()) { + return null; + } return StudentRecordType.from(source); }
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (6)
.claude/CLAUDE.md(0 hunks).gitignore(0 hunks)docker-compose.prod.yml(0 hunks)edukit-api/src/main/java/com/edukit/auth/security/config/SecurityWhitelist.java(1 hunks)edukit-api/src/main/java/com/edukit/studentrecord/controller/StudentRecordAIController.java(2 hunks)edukit-core/src/main/java/com/edukit/core/common/converter/StudentRecordTypeConverter.java(1 hunks)
💤 Files with no reviewable changes (3)
- .gitignore
- docker-compose.prod.yml
- .claude/CLAUDE.md
🧰 Additional context used
🧬 Code graph analysis (1)
edukit-core/src/main/java/com/edukit/core/common/converter/StudentRecordTypeConverter.java (1)
edukit-core/src/main/java/com/edukit/core/studentrecord/metric/StudentRecordMetricsCounter.java (1)
Component(9-54)
🔇 Additional comments (1)
edukit-api/src/main/java/com/edukit/auth/security/config/SecurityWhitelist.java (1)
17-19: 모니터링 접근성 영향 검토
/actuator/metrics와/metrics가 인증 없이 열려 있지 않으면, 해당 엔드포인트를 조회하던 모니터링/헬스체크 잡이 401을 받게 됩니다. 운영 인프라 쪽에서 이 두 엔드포인트를 활용하고 있지 않은지 한 번 더 확인 부탁드립니다.
📣 Jira Ticket
EDMT-450
Summary by CodeRabbit