feat(admin): 어드민 버전 관리 기능 전반 신규 구축 (도메인/API/UI/인증/배포 연동)#174
Merged
Conversation
app_versions 테이블 컬럼을 latest_version에서 version으로 변경, is_latest(boolean) 컬럼 추가, AppVersion 엔티티를 version/isLatest 필드 구조로 변경 등
app_versions 스키마에 summary 컬럼과 items(jsonb) 컬럼 추가, AppVersion 엔티티에 summary, items 필드 추가 및 jsonb 매핑 적용, 홈 응답의 latestVersion 구조를 플랫폼별 상세 객체로 확장
user_app_version_dismissals 테이블 생성, UserAppVersionDismissal 엔티티 구현, POST /home/version-dismissals API 추가, HomePlatformVersionResponse에 appVersionId, dismissed 필드 추가
AppPlatform enum에서 WEB 제거 (IOS, ANDROID만 유지), HomeLatestVersionResponse에서 web 필드 제거
app_versions 테이블에서 items(jsonb) 컬럼 제거, app_version_items 테이블 신설 등
타임리프 어드민 페이지 구현 : 관리자 로그인 페이지 추가, 버전 관리 페이지 추가, 백엔드 연동 보강
Collaborator
|
머지 고고! |
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.
📝 요약(Summary)
배경
내부 기획 버전 관리를 효율적으로 운영하기 위해, 관리자 페이지에서 앱 버전 및 업데이트 항목을 제어하고 관리할 수 있는 기능을 신규 구축했습니다.
주요 변경사항
1. 버전 관리 도메인 신규 구축
app_versions,app_version_items,user_app_version_dismissals테이블 기반의 모델, 리포지토리, 서비스 레이어 구현is_latest) 관리 구조 적용summary) 및 상세 항목들(items: title, description, displayOrder)의 관리 모델 반영2. 어드민 인증 및 접근 제어 신규 구축
ADMIN_PAGE_PASSWORD기반의 관리자 인증 체계 도입POST /admin/api/loginPOST /admin/api/logoutGET /admin/api/auth-status/admin/**경로를 보호하는 인터셉터(Interceptor) 적용401 Unauthorized반환3. 어드민 버전 관리 API 구축
GET /admin/api/versions/latestPOST /admin/api/versionsPUT /admin/api/versions/{appVersionId}/summaryPOST /admin/api/versions/{appVersionId}/itemsPUT /admin/api/versions/items/{appVersionItemId}DELETE /admin/api/versions/items/{appVersionItemId}4. Thymeleaf 기반 어드민 UI 구축
5. 어드민 라우팅 구조 정리
/admin접근 시/admin/tabs/app-versions경로로 리다이렉트되도록 구조 적용6. 배포 워크플로우 연동
dev및prod배포 워크플로우에ADMIN_PAGE_PASSWORD환경변수 주입 설정 추가안정성 및 예외 처리
is_latest) 전환 과정에서 JPAflush순서를 명시적으로 제어하여, Unique Index(유니크 인덱스) 충돌 가능성을 완화했습니다.displayOrder중복 검증, 리소스 미존재 등 운영 중 발생할 수 있는 시나리오에 대한 예외 처리를 완료했습니다.APP_VERSION_ALREADY_EXISTSAPP_VERSION_ITEM_NOT_FOUNDAPP_VERSION_ITEM_DISPLAY_ORDER_DUPLICATEDADMIN_PAGE_INVALID_PASSWORD🔗 Related Issue
💬 공유사항
✅ PR Checklist
PR이 다음 요구 사항을 충족하는지 확인하세요.