Conversation
- 파이프라인 외부 호출로 인한 로깅 시 기본 requestId 주입 - 로깅 서비스 트랜잭션 분리 강화 - 프롬프트 활성화 시 unique 제약 위반 방지 위해 flush 추가
There was a problem hiding this comment.
Pull request overview
관리자(프롬프트) 관리 기능을 위해 백엔드에 관리자 인증/인가를 추가하고, 관리자용 React 정적 페이지를 Spring Boot 정적 리소스로 제공하도록 구성한 PR입니다.
Changes:
- 관리자 로그인 API 및 ADMIN 권한 기반 접근 제어 추가
- 프롬프트 관리 기능 보완(활성화 순서 보장, 직접 실행 시 로깅 안정화)
- 관리자 React 정적 페이지(빌드 산출물) 및 Flyway 마이그레이션 추가, 운영 설정 일부 수정
Reviewed changes
Copilot reviewed 15 out of 16 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| src/main/resources/static/index.html | 관리자 React 앱 엔트리(index) 추가 |
| src/main/resources/static/assets/index-DuX3EULQ.css | 관리자 페이지 스타일 번들 추가 |
| src/main/resources/static/assets/index-B3y3P6tv.js | 관리자 페이지 JS 번들(React/Router/Axios 포함) 추가 |
| src/main/resources/db/migration/V25__add_admin_table.sql | admin 테이블 생성 마이그레이션 추가 |
| src/main/resources/application.properties | Hibernate SQL 로그 출력 비활성화 |
| src/main/java/com/example/konnect_backend/global/config/WebSecurityConfig.java | /api/admin/** 권한 정책 및 정적 assets 허용 경로 조정 |
| src/main/java/com/example/konnect_backend/global/config/SwaggerConfig.java | Production 서버 URL 수정 |
| src/main/java/com/example/konnect_backend/domain/ai/service/prompt/management/PromptManagementService.java | 프롬프트 활성화 순서 보장(flush) 및 run 트랜잭션 처리 |
| src/main/java/com/example/konnect_backend/domain/ai/service/log/GeminiLogService.java | 메타데이터 저장 실패에 대한 예외 처리/로깅 변경 |
| src/main/java/com/example/konnect_backend/domain/ai/aop/LlmLoggingAspect.java | requestId 미주입 시 UUID 생성 처리 추가 |
| src/main/java/com/example/konnect_backend/domain/admin/service/AdminAuthService.java | 관리자 로그인 처리 및 ADMIN JWT 발급 |
| src/main/java/com/example/konnect_backend/domain/admin/repository/AdminRepository.java | Admin 조회 레포지토리 추가 |
| src/main/java/com/example/konnect_backend/domain/admin/entity/Admin.java | Admin 엔티티 추가 |
| src/main/java/com/example/konnect_backend/domain/admin/dto/request/AdminLoginRequest.java | 관리자 로그인 요청 DTO 추가 |
| src/main/java/com/example/konnect_backend/domain/admin/controller/PromptManagementController.java | 프롬프트 관리 컨트롤러 패키지 경로를 admin 영역으로 이동 |
| src/main/java/com/example/konnect_backend/domain/admin/controller/AdminAuthController.java | 관리자 로그인 컨트롤러 추가(문서 비노출) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Admin 엔티티 생성시각 DB 위임 명시 - admin 페이지 base Url 수정 - 로깅 시 UUID 파싱 실패 예외 방지
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.
프롬프트 관리를 위한 관리자 페이지
WebSecurityConfig관리자 권한 수정주의사항
관리자 페이지 기능 보완
requestId주입하여 로깅 오류 방지기타