Skip to content

feat: other user profile/#663#668

Merged
hjbin-25 merged 20 commits into
developfrom
feat/other-user-profile/#663
Apr 13, 2026
Merged

feat: other user profile/#663#668
hjbin-25 merged 20 commits into
developfrom
feat/other-user-profile/#663

Conversation

@redjungi09

Copy link
Copy Markdown
Collaborator

변경사항

  • 다른 유저 기본 프로필 조회 API 추가 (GET /api/users/{userId})
  • 다른 유저 보유 아이템 조회 API 추가 (GET /api/users/{userId}/items)
  • 다른 유저 GitHub 활동 조회 API 추가 (GET /api/users/{userId}/github?period=)
  • 다른 유저 라이벌 조회 API 추가 (GET /api/users/{userId}/rivals)
  • 프로필 비공개 설정 API 추가 (PATCH /api/users/me/privacy)
  • users 테이블에 is_private 컬럼 추가

관련 이슈

Closes #663

추가 컨텍스트

기본 프로필(GET /api/users/{userId})은 비공개 여부와 관계없이 항상 공개됩니다. 아이템, GitHub, 라이벌 조회는 비공개 유저일 경우 403을 반환합니다.

EquippedItemsDtoinsigma 필드를 @Deprecated + @JsonProperty로 함께 반환하도록 처리했습니다. 기존 클라이언트가 insigma를 사용 중이므로, 클라이언트 업데이트 완료 후 제거 예정입니다.

GetUserProfileService 클래스명이 기존 mainpage 패키지의 동명 클래스와 충돌하여 GetOtherUserProfileService로 변경했습니다.

@redjungi09 redjungi09 self-assigned this Apr 12, 2026
@redjungi09 redjungi09 added the enhancement 새로운 기능 추가 label Apr 12, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request implements a profile privacy feature by adding an "isPrivate" flag to the user entity and database. It introduces new API endpoints for retrieving user profiles, items, GitHub activity, and rivals, with logic to enforce privacy settings. The review feedback identifies opportunities to remove redundant soft-delete checks already handled by repository restrictions, improve timezone consistency for better testability, and refine rival retrieval logic to handle missing data more gracefully.

@redjungi09 redjungi09 force-pushed the feat/other-user-profile/#663 branch from 23b9999 to c6f2de4 Compare April 12, 2026 17:56

@hjbin-25 hjbin-25 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

수고하셨습니다

@hjbin-25 hjbin-25 merged commit 70b3565 into develop Apr 13, 2026
1 check passed
@hjbin-25 hjbin-25 deleted the feat/other-user-profile/#663 branch April 13, 2026 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement 새로운 기능 추가

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants