Merged
Conversation
- RetrieveSystemRole 인터페이스 추가 및 역할 조회 로직 정의 - GrantSystemRole 인터페이스 추가 및 역할 부여 로직 정의 - RevokeSystemRole 인터페이스 추가 및 역할 회수 로직 정의
- 시스템 역할 부여 서비스(GrantSystemRoleService) 클래스 구현 - 시스템 역할 조회 서비스(RetrieveSystemRoleService) 클래스 구현 - 시스템 역할 회수 서비스(RevokeSystemRoleService) 클래스 구현 - MemberQueryRepository 및 SystemAuthorizationPort 의존성 사용 정의
- GrantSystemRole 및 RevokeSystemRole 메서드에서 `grantedBy` 및 `revokedBy` 매개변수 제거 -> PreAuthorize 사용에 따라서 - 관련 서비스 클래스 호출부 및 구현 로직 수정
- 시스템 역할 부여(POST), 회수(DELETE), 조회(GET) 엔드포인트 구현 - GrantSystemRole, RevokeSystemRole, RetrieveSystemRole 서비스 의존성 주입 및 사용 - `/api/v1/admin/members` 경로에 PreAuthorize 어노테이션 적용
- RetrieveSystemRoleService 클래스에 `@Transactional(readOnly = true)` 속성을 적용하여 읽기 전용 트랜잭션으로 변경
- GrantSystemRoleService, RevokeSystemRoleService, RetrieveSystemRoleService 클래스에 대한 단위 테스트 추가 - SystemRoleAdminController 클래스의 역할 부여, 회수, 조회 API 통합 테스트 추가 - 테스트를 위한 Mock 설정 및 예외 처리 검증 논리 보강
테스트 커버리지 리포트
|
- GrantRoleRequest 클래스를 별도 파일로 분리하여 요청 객체 관리 방식 개선 - 요청 객체 유효성 검증(@Valid) 추가 - 역할 부여 API의 응답 코드를 200에서 201로 변경해 생성 요청에 적합한 상태코드 적용
- GrantRoleRequest 클래스를 별도 파일로 분리하여 요청 객체 관리 방식 개선 - 요청 객체 유효성 검증(@Valid) 추가 - 역할 부여 API의 응답 코드를 200에서 201로 변경해 생성 요청에 적합한 상태코드 적용
- SystemRoleAdminController에 OpenAPI 문서화 어노테이션 추가 - 각 API에 @operation, @ApiResponses, @parameter 어노테이션 적용 - 관리자 역할 부여, 회수, 조회 메서드에 상세 설명 및 응답 코드 명시
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
🌟 More
📋 체크리스트
🤟🏻 PR로 완료된 이슈