Skip to content

[Refactor] 내 친구코드 조회 응답에서 qrValue 제거 - #434

Merged
chans20 merged 1 commit into
developfrom
refactor/432-remove-qr-value
Nov 2, 2026
Merged

chans20 merged 1 commit into
developfrom
refactor/432-remove-qr-value

Conversation

@chans20

@chans20 chans20 commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

📌 PR 설명

  • GET /api/v1/friends/me/code 응답에서 qrValue를 제거하고 friendCode만 반환합니다.
  • 프론트가 웹앱이라 앱 딥링크(yeogido://)는 기본 카메라로 동작하지 않아, QR 주소는 프론트가 현재 웹 주소 기준으로 생성합니다.

🔗 연관된 이슈

Resolves: #432

📝 리뷰 요구사항

  • API 응답 필드가 삭제되는 변경입니다.

💻 테스트 결과

  • API 테스트 완료
  • 정상 동작 확인
image

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Updates
    • The friend code response now contains only the friend code; the QR deep link is no longer included.
    • The API description now reflects that the response provides the friend code displayed in the profile QR modal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chans20 chans20 self-assigned this Nov 2, 2026
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a1b970ee-5c9a-4b73-8eb1-ed522c818463
Commits

Reviewing files that changed from the base of the PR and between c65a140 and e3e5294.

Files selected for processing: 4
  • src/main/java/com/yeogido/backend/domain/friend/controller/FriendController.java
  • src/main/java/com/yeogido/backend/domain/friend/converter/FriendConverter.java
  • src/main/java/com/yeogido/backend/domain/friend/dto/FriendResDTO.java
  • src/test/java/com/yeogido/backend/domain/friend/service/FriendServiceImplTest.java

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The friend-code response now includes only friendCode. The converter no longer creates a QR deep link, and the endpoint description and test reflect the updated response.

Changes: Friend code response

Layer / File(s) Summary
Update friend-code response contract
src/main/java/com/yeogido/backend/domain/friend/dto/FriendResDTO.java, src/main/java/com/yeogido/backend/domain/friend/converter/FriendConverter.java, src/main/java/com/yeogido/backend/domain/friend/controller/FriendController.java, src/test/java/com/yeogido/backend/domain/friend/service/FriendServiceImplTest.java
MyFriendCode and its converter now return only friendCode. The endpoint description no longer mentions a QR deep link, and the test checks the friend code without asserting a deep-link value.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Possibly related PRs

  • yeogido/backend#417: Adds the friend-code API contract and deep-link value that this PR changes.

Suggested reviewers: yangjiae12

Merge Risk: Minimal · up to e3e52

The API contract change is consistently applied across the reviewed layers and is ready to merge.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title "[Refactor] 내 친구코드 조회 응답에서 qrValue 제거" states the main change: removing the qrValue field from the friend code lookup response. The raw summary confirms that qrValue is removed from MyFriend…
Linked Issues check Passed Issue #432 requires removal of qrValue, removal of the deep-link constant, and related test updates. FriendResDTO.MyFriendCode now contains only friendCode. FriendConverter no longer defines o…
Out of Scope Changes check Passed The changes are limited to the endpoint DTO, converter, API description, and the related service test. Each change supports the scope of issue #432. No unrelated behavior or files are changed.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Description check Passed The description includes the required sections. It explains the removal of qrValue, links issue #432, states the review focus, and reports completed API and normal-operation tests with supporting evid…
Full details: Title check

Explanation

The title "[Refactor] 내 친구코드 조회 응답에서 qrValue 제거" states the main change: removing the qrValue field from the friend code lookup response. The raw summary confirms that qrValue is removed from MyFriendCode, the converter, the controller description, and the test. The title is specific and matches the changeset. It uses a Refactor tag, which fits the change because it removes a field from the response and the objectives describe it as a cleanup.

Full details: Linked Issues check

Explanation

Issue #432 requires removal of qrValue, removal of the deep-link constant, and related test updates. FriendResDTO.MyFriendCode now contains only friendCode. FriendConverter no longer defines or generates QR_DEEP_LINK_PREFIX. The controller description and FriendServiceImplTest also remove the deep-link reference. These changes satisfy the linked coding requirements.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 4 files.

Full details: Description check

Explanation

The description includes the required sections. It explains the removal of qrValue, links issue #432, states the review focus, and reports completed API and normal-operation tests with supporting evidence.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@yangjiae12 yangjiae12 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.

스웨거에서 API 실행해보시고 머지하면 될 거 같습니다~ 수고하셨어요!

@chans20
chans20 merged commit 6b1ac7e into develop Nov 2, 2026
2 checks passed
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.

[REFACTOR] 내 친구코드 조회 응답에서 qrValue 제거

2 participants