Skip to content

πŸš‘οΈ x kakao initial image; return null when no image#51

Merged
bess-cater merged 1 commit intodevfrom
hotfix/profile-image-init
Sep 16, 2025
Merged

πŸš‘οΈ x kakao initial image; return null when no image#51
bess-cater merged 1 commit intodevfrom
hotfix/profile-image-init

Conversation

@bess-cater
Copy link
Copy Markdown
Contributor

μ–΄λ–€ 이유둜 PRλ₯Ό ν•˜μ…¨λ‚˜μš”?

  • feature 병합
  • 버그 μˆ˜μ •
  • μ½”λ“œ κ°œμ„ 
  • μ½”λ“œ μˆ˜μ •
  • 배포
  • 기타(μ•„λž˜μ— μžμ„Έν•œ λ‚΄μš© κΈ°μž…ν•΄μ£Όμ„Έμš”)

μ„ΈλΆ€ λ‚΄μš© - μ™œ ν•΄λ‹Ή PR이 ν•„μš”ν•œμ§€ μžμ„Έν•˜κ²Œ μ„€λͺ…ν•΄μ£Όμ„Έμš”

  • kako 이미지 μ„€μ • x

PRν•˜κΈ° 전에 ν™•μΈν•΄μ£Όμ„Έμš”

  • λ‘œμ»¬ν…ŒμŠ€νŠΈλ₯Ό μ§„ν–‰ν•˜μ…¨λ‚˜μš”?
  • λ¨Έμ§€ν•  브랜치λ₯Ό ν™•μΈν•˜μ…¨λ‚˜μš”?

κ΄€λ ¨ 이슈 번호

Copy link
Copy Markdown
Contributor

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

Summary of Changes

Hello @bess-cater, 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!

이 PR은 μ‚¬μš©μž ν”„λ‘œν•„ 이미지 처리 둜직의 견고성을 ν–₯μƒμ‹œν‚€λŠ” 것을 λͺ©ν‘œλ‘œ ν•©λ‹ˆλ‹€. 특히 카카였 μ‚¬μš©μž 생성 μ‹œ ν”„λ‘œν•„ 이미지 μˆ˜μ§‘μ„ μ€‘λ‹¨ν•˜κ³ , 이미지 ν‚€κ°€ μ—†λŠ” κ²½μš°μ—λ„ μ„œλΉ„μŠ€κ°€ 였λ₯˜ 없이 None을 λ°˜ν™˜ν•˜λ„λ‘ ν•˜μ—¬ 잠재적인 λŸ°νƒ€μž„ 였λ₯˜λ₯Ό λ°©μ§€ν•˜κ³  μ½”λ“œμ˜ μ•ˆμ •μ„±μ„ λ†’μ˜€μŠ΅λ‹ˆλ‹€.

Highlights

  • 카카였 μ‚¬μš©μž ν”„λ‘œν•„ 이미지 처리 κ°œμ„ : 카카였 μ‚¬μš©μž 생성 μ‹œ ν”„λ‘œν•„ 이미지λ₯Ό 더 이상 μˆ˜μ§‘ν•˜μ§€ μ•Šκ³  profile_photo ν•„λ“œλ₯Ό None으둜 λͺ…μ‹œμ μœΌλ‘œ μ„€μ •ν•˜λ„λ‘ λ³€κ²½ν–ˆμŠ΅λ‹ˆλ‹€.
  • ν”„λ‘œν•„ 이미지 URL 쑰회 둜직 κ°•ν™”: μ‚¬μš©μž ν”„λ‘œν•„ 사진 URL을 κ°€μ Έμ˜¬ λ•Œ profile_photo_key의 쑴재 μ—¬λΆ€λ₯Ό λ¨Όμ € ν™•μΈν•˜μ—¬, ν‚€κ°€ 없을 경우 None을 λ°˜ν™˜ν•˜λ„λ‘ μ•ˆμ „ν•˜κ²Œ μ²˜λ¦¬ν–ˆμŠ΅λ‹ˆλ‹€.
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. ↩

@bess-cater bess-cater merged commit c9e9af4 into dev Sep 16, 2025
1 check passed
Copy link
Copy Markdown
Contributor

@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은 카카였 μ‚¬μš©μž 생성 μ‹œ ν”„λ‘œν•„ 이미지λ₯Ό 더 이상 μ €μž₯ν•˜μ§€ μ•Šλ„λ‘ λ‘œμ§μ„ μˆ˜μ •ν•˜κ³ , ν”„λ‘œν•„ 이미지가 μ—†λŠ” 경우λ₯Ό μ²˜λ¦¬ν•˜λŠ” λ³€κ²½ 사항을 ν¬ν•¨ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€. user_repository.pyμ—μ„œ profile_photoλ₯Ό None으둜 μ„€μ •ν•œ 것은 μ˜λ„μ— λΆ€ν•©ν•©λ‹ˆλ‹€. travel_review_service.pyμ—μ„œ profile_photo_keyκ°€ None일 수 μžˆλŠ” 경우λ₯Ό μ²˜λ¦¬ν•œ 것도 쒋은 κ°œμ„ μž…λ‹ˆλ‹€. ν•˜μ§€λ§Œ 이둜 인해 TravelReviewListResponse λͺ¨λΈμ— None 값이 μ „λ‹¬λ˜μ–΄ μœ νš¨μ„± 검사 였λ₯˜κ°€ λ°œμƒν•  수 μžˆλŠ” μ‹¬κ°ν•œ λ¬Έμ œκ°€ λ°œκ²¬λ˜μ—ˆμŠ΅λ‹ˆλ‹€. ν•΄λ‹Ή 문제λ₯Ό ν•΄κ²°ν•˜κΈ° μœ„ν•œ μ½”λ“œ μˆ˜μ •μ„ μ œμ•ˆν•©λ‹ˆλ‹€.

def get_travel_review_list(self, user_id: int) -> List[TravelReviewListResponse]:
user_profile = self.user_repo.get_profile(user_id)
user_photo_url = self.s3_client.get_file(user_profile.profile_photo_key)
user_photo_url = self.s3_client.get_file(user_profile.profile_photo_key) if user_profile.profile_photo_key else None
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.

critical

이 λ³€κ²½μœΌλ‘œ user_photo_url이 None이 될 수 μžˆμŠ΅λ‹ˆλ‹€. ν•˜μ§€λ§Œ TravelReviewListResponse μŠ€ν‚€λ§ˆμ˜ user_photo ν•„λ“œλŠ” str νƒ€μž…μœΌλ‘œ μ •μ˜λ˜μ–΄ μžˆμ–΄ None 값을 ν—ˆμš©ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€. (μ°Έκ³ : src/schema/travel_review_response.py의 29번째 쀄). 이둜 인해 profile_photo_keyκ°€ μ—†λŠ” μ‚¬μš©μžμ˜ μ—¬ν–‰ 리뷰 λͺ©λ‘μ„ μ‘°νšŒν•  λ•Œ Pydantic ValidationErrorκ°€ λ°œμƒν•˜μ—¬ APIκ°€ μ‹€νŒ¨ν•˜κ²Œ λ©λ‹ˆλ‹€.

이 문제λ₯Ό ν•΄κ²°ν•˜κΈ° μœ„ν•΄ profile_photo_keyκ°€ 없을 경우 None λŒ€μ‹  빈 λ¬Έμžμ—΄("")을 λ°˜ν™˜ν•˜λ„λ‘ μˆ˜μ •ν•˜λŠ” 것을 μ œμ•ˆν•©λ‹ˆλ‹€. μ΄λ ‡κ²Œ ν•˜λ©΄ μŠ€ν‚€λ§ˆ μœ νš¨μ„± 검사λ₯Ό 톡과할 수 μžˆμŠ΅λ‹ˆλ‹€. λ˜λŠ” 근본적으둜 TravelReviewListResponse의 user_photo ν•„λ“œ νƒ€μž…μ„ Optional[str]둜 λ³€κ²½ν•˜λŠ” 것을 κ³ λ €ν•΄λ³Ό 수 μžˆμŠ΅λ‹ˆλ‹€.

Suggested change
user_photo_url = self.s3_client.get_file(user_profile.profile_photo_key) if user_profile.profile_photo_key else None
user_photo_url = self.s3_client.get_file(user_profile.profile_photo_key) if user_profile.profile_photo_key else ""

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