JWT Token 기반 그룹 식별자에서 UUID기반 식별자로 변경#132
Merged
Conversation
- 기존: 파라미터에서 토큰 추출 → 사용자 검증 - 변경: 파라미터에서 그룹 코드를 추출하여 DB 조회 후 검증
- code가 더 적절하다고 판단되어 일시적으로 변경했으나, - 프론트 및 테스트 확인 후 다시 반영하기로 하고 token으로 복구
📝 테스트 커버리지 리포트입니다!
|
- asciidocs -> asciidoc
📝 테스트 커버리지 리포트입니다!
|
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.
#️⃣연관된 이슈
#130
🔀반영 브랜치
feat/#130-convertTokenToUUID -> develop
🔧변경 사항
그룹생성 시 그룹 토큰대신 UUID를 짧게 바꿔서 그룹 정보를 확인할 수 있도록 변경하였습니다.
token에서 groupId를 찾던 부분을 code로 수정함에따라 매요청을 DB에 접근해야함으로 성능 저하의 문제가 우려되어 Redis기반의 cache를 적용하였습니다.
이에 따라서 빌드할때마다 Redis 컨테이너가 실행되어야합니다. (docker-compose.local.yml에 dev환경 컨테이너에 대한 설정을 추가하였습니다.)
테스트 코드를 작성할때 group에대한 SupportFactory를 추가하였습니다. 관련 코드는 아래와 같습니다! 아무래도 많이 사용되는 엔티티의 경우 구조가 변경되거나 내용이 변경되어야할때 일일이 테스트 코드에서 수정을 해줘야하는 불편함이 있어서 예설님도 필요한 부분이 있으시면 추가해서 사용하면 될것같습니다!
+) asciidocs로 패키지명이 적혀있어서 build할때 html파일이 안나오는 문제가 있어서 asciidoc로 변경해주었습니다.
💬리뷰 요구사항(선택)