Skip to content

feat: 회원 프로필 수정 API 및 관련 로직 추가 - #28

Merged
popeye0618 merged 1 commit into
mainfrom
feat/member-profile-update
May 16, 2026
Merged

feat: 회원 프로필 수정 API 및 관련 로직 추가#28
popeye0618 merged 1 commit into
mainfrom
feat/member-profile-update

Conversation

@popeye0618

@popeye0618 popeye0618 commented May 16, 2026

Copy link
Copy Markdown
Contributor

📌 작업 개요

회원 프로필 수정 API 및 관련 로직 추가

🔗 관련 이슈

  • Closes #

✨ 변경 사항

  • MemberProfileUseCase에 프로필 수정 기능 및 구현 로직 추가
  • 프로필 수정 API(/me/profile) Controller, Service, Repository 계층에 구현
  • 프로필 수정 시 닉네임 중복 및 빈 프로필 이미지 URL 검증 로직 추가
  • 테스트(MemberProfileServiceTest, MemberControllerTest)로 수정 동작 검증
  • API 문서화 및 RestDocs 테스트(MemberProfileDocsTest) 추가

🧪 테스트

  • 단위 테스트 추가/수정
  • 로컬에서 동작 확인

✅ 체크리스트

  • 브랜치명이 Git Flow 컨벤션을 따릅니다 (feature/, fix/, hotfix/ 등)
  • 커밋 메시지가 Conventional Commits 컨벤션을 따릅니다
  • 리뷰 가능한 단위로 작업을 분리했습니다
  • 관련 문서를 업데이트했습니다 (필요 시)

💬 리뷰어에게

@codex

- MemberProfileUseCase에 프로필 수정 기능 및 구현 로직 추가
- 프로필 수정 API(`/me/profile`) Controller, Service, Repository 계층에 구현
- 프로필 수정 시 닉네임 중복 및 빈 프로필 이미지 URL 검증 로직 추가
- 테스트(MemberProfileServiceTest, MemberControllerTest)로 수정 동작 검증
- API 문서화 및 RestDocs 테스트(MemberProfileDocsTest) 추가

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5a7f83e316

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


@field:NotBlank
@field:Size(min = 2, max = 40)
@field:Pattern(regexp = "^[가-힣a-zA-Z0-9_-]+$")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 닉네임 앞뒤 공백 입력을 검증에서 허용하세요

MemberProfileUpdateRequest.nickname에 적용된 정규식(^[가-힣a-zA-Z0-9_-]+$)은 공백을 포함한 입력을 즉시 400으로 거절하므로, 서비스의 request.nickname.trim() 정규화 로직이 실제 API 경로에서 실행되지 않습니다. 이 커밋의 문서/로직은 앞뒤 공백 제거 저장을 의도하고 있어(예: " unit_user "), 현재 구현은 의도와 동작이 불일치합니다. 닉네임 검증을 trim 이후 값 기준으로 수행하거나, 앞뒤 공백을 허용한 뒤 서비스에서 정규화하도록 검증 규칙을 조정하는 것이 안전합니다.

Useful? React with 👍 / 👎.

@popeye0618
popeye0618 merged commit c7b3b27 into main May 16, 2026
1 check passed
@popeye0618
popeye0618 deleted the feat/member-profile-update branch May 16, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant