Feat/#159 WorkspaceMember
의 id
를 기록하는 WebRequestAuditorAware
구현
#161
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.
🚀 설명
WorkspaceMember
의id
기록이 필요AuthorizationInterceptor
에서 현재WorkspaceMember
의id
를HttpServletRequest
에 저장SessionAuditorAware
->WebRequestAuditorAware
/api/v1/workspaces
로 시작하면HttpServletRequest
에서 속성에 저장한 현재WorkspaceMember
의id
를 읽음/api/v1/workspaces
로 시작하는 요청이 아니면, 기존 처럼 세션에서Member
의id
를 읽어서 반환Member
의id
기록Workspace
의 경우WorkspaceBaseEntity
상속createdByMember
lastModifiedByWorkspaceMember
Workspace
와 관련된 엔티티의 경우WorkspaceContextBaseEntity
상속createdByWorkspaceMember
lastModifiedByWorkspaceMember
Member
)의 경우BaseEntity
상속createdByMember
lastModifiedByMember
✅ 변경 사항
SessionAuditorAware
->WebRequestAuditorAware
AuthorizationInterceptor
에서 현재 요청에 대한WorkspaceMember
의id
를HttpServletRequest
에 저장🚩 관련 이슈, PR
WebRequestAuditorAware
를 구현한다 #159📖 참고