Skip to content

Comments

[fix] PostResponseDto에 additionalComposers 필드 추가#83

Merged
k3vin7 merged 1 commit intomainfrom
fix/posts
Feb 17, 2026
Merged

[fix] PostResponseDto에 additionalComposers 필드 추가#83
k3vin7 merged 1 commit intomainfrom
fix/posts

Conversation

@k3vin7
Copy link
Contributor

@k3vin7 k3vin7 commented Feb 17, 2026

Summary

  • 큐레이션 임시저장 후 불러오기 시 additionalComposers 정보가 응답에 포함되도록 PostResponseDto에 필드 추가
  • CurationPost인 경우 additionalComposersComposerSummary 리스트로 변환하여 반환
  • 관련 테스트 및 REST docs 업데이트

Test plan

  • 전체 테스트 통과 확인
  • 큐레이션 글 임시저장 후 불러오기 시 additionalComposers 포함 여부 확인

🤖 Generated with Claude Code

큐레이션 임시저장 후 불러오기 시 additionalComposers 정보가 응답에 포함되도록 수정

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gemini-code-assist
Copy link

Summary of Changes

Hello @k3vin7, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 Pull Request는 큐레이션 게시물 임시 저장 기능을 개선하여, 임시 저장된 게시물을 다시 불러올 때 추가 작곡가 정보가 누락되지 않고 응답에 포함되도록 데이터 모델을 확장하고 관련 로직을 구현합니다. 이를 통해 사용자 경험의 일관성을 확보하고 데이터 무결성을 유지하는 데 기여합니다.

Highlights

  • PostResponseDto 필드 추가: 큐레이션 임시저장 후 불러오기 시 additionalComposers 정보가 응답에 포함되도록 PostResponseDtoadditionalComposers 필드를 추가했습니다.
  • CurationPost 처리 로직 추가: CurationPost인 경우 additionalComposersComposerSummary 리스트로 변환하여 반환하는 로직을 추가했습니다.
  • 테스트 및 REST docs 업데이트: 추가된 필드에 맞춰 관련 테스트 코드와 REST docs를 업데이트했습니다.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • src/main/java/com/daramg/server/post/dto/PostResponseDto.java
    • additionalComposers 필드를 PostResponseDto 레코드에 추가했습니다.
    • 팩토리 메서드 from에서 additionalComposers를 생성자에 전달하도록 수정했습니다.
    • CurationPost에서 추가 작곡가 정보를 추출하여 ComposerSummary 리스트로 변환하는 extractAdditionalComposers private static 메서드를 추가했습니다.
  • src/test/java/com/daramg/server/composer/presentation/ComposerQueryControllerTest.java
    • 테스트용 PostResponseDto 객체 생성 시 additionalComposers 필드에 null을 추가했습니다.
    • REST docs에 posts.content[].additionalComposers 필드 및 하위 필드(id, koreanName, era, continent)에 대한 설명을 추가하고, CURATION 타입일 때만 존재하며 선택 사항임을 명시했습니다.
  • src/test/java/com/daramg/server/post/presentation/PostQueryControllerTest.java
    • 다양한 테스트 시나리오에서 PostResponseDto 객체 생성 시 additionalComposers 필드에 null을 추가했습니다.
    • REST docs에 content[].additionalComposers 필드 및 하위 필드(id, koreanName, era, continent)에 대한 설명을 추가하고, CURATION 타입일 때만 존재하며 선택 사항임을 명시했습니다.
Activity
  • 작성자(k3vin7)가 모든 테스트 통과를 확인했습니다.
  • 작성자(k3vin7)가 큐레이션 글 임시저장 후 불러오기 시 additionalComposers 포함 여부 확인을 위한 수동 테스트를 계획했습니다.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

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

Choose a reason for hiding this comment

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

Code Review

이 PR은 PostResponseDtoadditionalComposers 필드를 추가하여 큐레이션 임시 저장 후 불러오기 시 해당 정보가 응답에 포함되도록 개선했습니다. 관련 테스트 및 REST docs도 업데이트되어 변경 사항이 잘 반영되었습니다. 전반적으로 변경 사항은 명확하고 PR의 목표를 잘 달성하고 있습니다.

.map(ComposerSummary::from)
.toList();
}
return null;

Choose a reason for hiding this comment

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

medium

extractAdditionalComposers 메서드에서 additionalComposers가 없는 경우 null을 반환하고 있습니다. 컬렉션 타입의 필드는 null 대신 빈 리스트(Collections.emptyList())를 반환하는 것이 더 안전하고 일관된 API 디자인입니다. 이는 클라이언트 코드에서 NullPointerException을 방지하고 추가적인 null 체크 로직을 줄일 수 있습니다.

Suggested change
return null;
return Collections.emptyList();

@k3vin7 k3vin7 merged commit deb0564 into main Feb 17, 2026
1 check 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.

1 participant