Repository navigation
feat: 계정 아이디에 영문 대문자 허용 - #526
Conversation
관리자 페이지의 관리자·판매자 계정 생성에서 username 규칙에 영문 대문자를 더함. - USERNAME_PATTERN: [a-z0-9._-] → [A-Za-z0-9._-] - 입력한 대소문자 그대로 저장·표시, 로그인은 대소문자 무관 - 대소문자만 다른 username은 USERNAME_TAKEN — account_credential.username 정렬이 utf8mb4_unicode_ci라 사전 조회·unique 인덱스 모두 같은 값으로 봄. 마이그레이션 없음 - SDL 설명 2곳(AdminCreateAdminInput·AdminCreateSellerInput) 갱신 테스트 - input spec 2개: 대문자 거절 케이스 → 허용 케이스 - 관리자·판매자 생성: 대소문자만 다른 username 충돌 2건, 대문자 그대로 저장 1건 - AccountCredentialRepository.findCredentialByUsername: 대소문자 무관 조회 3건
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🧹 knip — dead-code 리포트전체 리포트
|
🩺 NestJS Doctor — 90/100 (Excellent)진단 484건 (error 12).
architecture / security 상위 항목
|
Coverage report
Test suite run success4250 tests passing in 383 suites. Report generated by 🧪jest coverage report action from cc03ba8 |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
요약
USERNAME_PATTERN:[a-z0-9._-]→[A-Za-z0-9._-](길이 4~80은 그대로)adminCreateAdmin·adminCreateSeller)가 이 규칙 하나를 함께 씁니다.account_credential.username컬럼 정렬이utf8mb4_unicode_ci라 조회·unique 인덱스가 모두 대소문자를 같은 값으로 봅니다.Ops.Admin이 있으면ops.admin생성은USERNAME_TAKEN(400)이고, 로그인은ops.admin·OPS.ADMIN으로도 됩니다.AdminCreateAdminInput.username·AdminCreateSellerInput.username).FE 영향
테스트
auth-admin-account.service.spec(real DB): 대문자 아이디가 입력 그대로 저장되고, 대소문자만 다른 아이디는USERNAME_TAKEN인지 확인합니다.store-admin-seller.service.spec(real DB): 판매자 생성도 대소문자만 다른 아이디가USERNAME_TAKEN인지 확인합니다.account-credential.repository.spec(real DB):Ops.Admin을ops.admin·OPS.ADMIN·Ops.Admin으로 찾는지 확인합니다(it.each3건).플랜 대조
USERNAME_PATTERN을[A-Za-z0-9._-]로, 주석 갱신credential-auth.service.spec은 mock 기반이라account-credential.repository.spec(real DB)에 넣었습니다.yarn validate:push→ PR → 머지 게이트 → develop 머지caquick-fe-v2codegen 확인