Skip to content

Conversation

@leegwichan
Copy link
Member

@leegwichan leegwichan commented Jul 26, 2025

✨ 개요

  • multipart/form-data 형식이 com.epages:restdocs-api-spec 에서 변환을 지원하지 않음
  • 마크다운 형식으로 Request를 표기하여, 클라이언트가 서비 API를 잘 사용할 수 있도록 변경

🧾 관련 이슈

없음

🔍 참고 사항 (선택)

Summary by CodeRabbit

  • 버그 수정

    • 스토리 등록 요청 시 필드명이 'query'에서 'storeName'으로 변경되어, 실제 가게 이름을 명확히 입력할 수 있도록 개선되었습니다.
  • 문서화

    • 스토리 및 치어 등록 API의 multipart/form-data 요청 형식에 대한 상세한 마크다운 설명이 추가되어, 필드 설명과 예시가 더욱 명확해졌습니다.
    • 스토리 등록 API 문서에서 필드명이 'storeName'으로 수정되어 실제 요청 구조와 일치하도록 반영되었습니다.

@coderabbitai
Copy link

coderabbitai bot commented Jul 26, 2025

"""

Walkthrough

스토리 등록 요청의 필드명이 query에서 storeName으로 변경되었습니다. 이에 따라 서비스 로직, 테스트, 문서화 코드에서 해당 필드명을 일관되게 수정하였고, API 요청 예시 및 설명도 최신 구조에 맞게 업데이트되었습니다.

Changes

파일/경로 요약 변경 내용 요약
src/main/java/eatda/controller/story/StoryRegisterRequest.java record 필드명 querystoreName으로 변경
src/main/java/eatda/service/story/StoryService.java mapClient.searchShops 호출 시 인자를 request.query()에서 request.storeName()으로 변경
src/test/java/eatda/document/story/StoryDocumentTest.java 요청 예시 및 설명에 storeName 반영, 마크다운 설명 상수 추가, 문서화 필드명 및 설명 수정
src/test/java/eatda/document/store/CheerDocumentTest.java multipart/form-data 요청 예시 및 설명 마크다운 상수 추가, 문서화 설명 강화
src/test/java/eatda/service/story/StoryServiceTest.java 테스트 코드에서 request.query()request.storeName()으로 변경

Sequence Diagram(s)

sequenceDiagram
    participant Client
    participant Controller
    participant Service
    participant MapClient

    Client->>Controller: 스토리 등록 요청(storeName 등 포함)
    Controller->>Service: registerStory(request)
    Service->>MapClient: searchShops(request.storeName)
    MapClient-->>Service: 매장 검색 결과 반환
    Service-->>Controller: 스토리 등록 결과 반환
    Controller-->>Client: 응답 반환
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Suggested labels

test

Suggested reviewers

  • lvalentine6

Poem

🐰
이름이 바뀌었네, query에서 storeName!
문서와 테스트도 모두 맞춰 정돈했지.
깔끔한 코드, 명확한 요청,
토끼는 깡충깡충 뛰며 기뻐하네—
이름 하나 바꿨을 뿐인데
프로젝트가 더 단단해졌네!
🥕
"""

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5a02e67 and 4b25c01.

📒 Files selected for processing (1)
  • src/test/java/eatda/document/story/StoryDocumentTest.java (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/test/java/eatda/document/story/StoryDocumentTest.java
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: test
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch docs/documentation-multi-part

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 48ad47d and 5a02e67.

📒 Files selected for processing (5)
  • src/main/java/eatda/controller/story/StoryRegisterRequest.java (1 hunks)
  • src/main/java/eatda/service/story/StoryService.java (1 hunks)
  • src/test/java/eatda/document/store/CheerDocumentTest.java (1 hunks)
  • src/test/java/eatda/document/story/StoryDocumentTest.java (1 hunks)
  • src/test/java/eatda/service/story/StoryServiceTest.java (2 hunks)
🧰 Additional context used
🧠 Learnings (3)
src/main/java/eatda/service/story/StoryService.java (1)

Learnt from: leegwichan
PR: #101
File: src/main/java/eatda/domain/story/Story.java:126-130
Timestamp: 2025-07-23T11:19:46.968Z
Learning: In Story.java, the validateStoreRoadAddress method only checks for null (not blank) because the Kakao API can legitimately return empty strings for roadAddress values in certain cases, so blank road addresses should be allowed.

src/main/java/eatda/controller/story/StoryRegisterRequest.java (1)

Learnt from: leegwichan
PR: #101
File: src/main/java/eatda/domain/story/Story.java:126-130
Timestamp: 2025-07-23T11:19:46.968Z
Learning: In Story.java, the validateStoreRoadAddress method only checks for null (not blank) because the Kakao API can legitimately return empty strings for roadAddress values in certain cases, so blank road addresses should be allowed.

src/test/java/eatda/service/story/StoryServiceTest.java (1)

Learnt from: leegwichan
PR: #101
File: src/main/java/eatda/domain/story/Story.java:126-130
Timestamp: 2025-07-23T11:19:46.968Z
Learning: In Story.java, the validateStoreRoadAddress method only checks for null (not blank) because the Kakao API can legitimately return empty strings for roadAddress values in certain cases, so blank road addresses should be allowed.

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: test
🔇 Additional comments (7)
src/main/java/eatda/service/story/StoryService.java (1)

43-43: 필드명 변경이 올바르게 적용되었습니다.

request.query()에서 request.storeName()으로의 변경이 StoryRegisterRequest의 필드명 변경과 일치합니다.

src/main/java/eatda/controller/story/StoryRegisterRequest.java (1)

4-4: 스토리 등록 API 필드명(querystoreName) 변경 – 클라이언트 영향 검증 필요

query에서 storeName으로 필드명이 변경되어 의도가 더 명확해졌습니다. 다만 이는 API 계약을 변경하는 Breaking Change이므로, 클라이언트 애플리케이션(프론트엔드, 테스트, 문서 등)에 영향이 없는지 반드시 확인해 주세요.

src/test/java/eatda/service/story/StoryServiceTest.java (2)

48-48: 테스트 모킹이 서비스 로직과 일치하도록 올바르게 업데이트되었습니다.

request.query()에서 request.storeName()으로의 변경이 서비스 레이어 변경사항과 일관성을 유지합니다.


61-61: 실패 테스트 케이스도 일관되게 업데이트되었습니다.

성공/실패 시나리오 모두에서 동일한 방식으로 필드명 변경이 적용되어 테스트 커버리지가 유지됩니다.

src/test/java/eatda/document/store/CheerDocumentTest.java (2)

42-55: multipart/form-data 요청 형식에 대한 상세한 문서화가 추가되었습니다.

마크다운 형식의 문서화는 다음과 같은 장점을 제공합니다:

  • 요청 형식과 필드 제약사항 명시
  • 실제 사용 가능한 JSON 예시 제공
  • 한국어 설명으로 로컬 개발자 친화적

이는 PR 목표인 multipart/form-data 요청 형식 문서화를 효과적으로 달성합니다.


60-60: 문서화 개선이 적절히 적용되었습니다.

새로 추가된 마크다운 상수를 사용하여 API 문서의 가독성과 유용성이 크게 향상되었습니다.

src/test/java/eatda/document/story/StoryDocumentTest.java (1)

61-61: 필드 경로가 올바르게 업데이트되었습니다.

"query"에서 "storeName"으로의 변경이 StoryRegisterRequest의 필드명 변경과 일치합니다.

@sonarqubecloud
Copy link

Copy link
Member

@lvalentine6 lvalentine6 left a comment

Choose a reason for hiding this comment

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

이번 PR도 고생하셨습니다! 🎉

@leegwichan leegwichan merged commit e1a2b9a into develop Jul 26, 2025
4 of 5 checks passed
@leegwichan leegwichan deleted the docs/documentation-multi-part branch July 26, 2025 07:33
@github-actions
Copy link

🎉 This PR is included in version 1.4.0-develop.30 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This PR is included in version 1.5.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants