Merged
Conversation
- `SystemRole` enum에 계층 레벨 정보 추가 - 시스템 역할 관리 관련 JPA 어댑터 및 포트 추가 - 역할 계층 구조 관리 기능(SystemRoleHierarchy) 구현 - 회원 역할 관리용 엔티티(MemberSystemRoleEntity) 및 레포지토리 추가 - 기존 role 데이터를 member_system_role로 마이그레이션하는 SQL 스크립트 작성
- `SystemRole` 및 관련 메서드, 필드 제거 - 회원 도메인 및 테스트에서 역할 관련 코드 삭제 - 역할 매핑 관련 JPA 어댑터 및 엔티티 수정 - 더 이상 필요하지 않은 역할 테스트 코드 제거
- Access Token 발급 시 역할 정보 제거 - `JwtProvider`에서 역할 기반 클레임 처리 코드 삭제 - `JwtAuthenticationFilter`에서 역할 조회를 `SystemAuthorizationPort` 기반으로 수정 - 관련 테스트 코드 업데이트 및 불필요한 역할 클레임 검증 제거
- 회원 조회 및 역할 검증 기능을 SystemAuthorizationPort 기반으로 대체 - MemberQueryRepository 의존성 제거 및 관련 서비스 리팩토링 - 불필요한 회원 조회 및 예외 처리 코드 삭제 - 관련 테스트 코드 수정 및 불필요한 테스트 제거
- 동일한 상태로 수정 요청 시 실패 테스트 추가 - 대기 중인 수정 요청이 존재할 경우 실패 테스트 추가
- `JpaConfig`에 `SystemRoleHierarchy` Bean 등록 - 역할 계층 관련 의존성 주입 및 설정 추가
테스트 커버리지 리포트
|
- `SystemRoleHierarchy`에 대한 단위 테스트 코드 작성
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.
💡 Motivation and Context
🔨 Modified
SystemAuthorizationPort인터페이스를 통한 런타임 권한 조회 방식 도입🌟 More
📋 체크리스트
🤟🏻 PR로 완료된 이슈