ποΈ x kakao initial image; return null when no image#51
Conversation
There was a problem hiding this comment.
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
-
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. β©
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
μ΄ λ³κ²½μΌλ‘ 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]λ‘ λ³κ²½νλ κ²μ κ³ λ €ν΄λ³Ό μ μμ΅λλ€.
| 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 "" |
μ΄λ€ μ΄μ λ‘ PRλ₯Ό νμ ¨λμ?
μΈλΆ λ΄μ© - μ ν΄λΉ PRμ΄ νμνμ§ μμΈνκ² μ€λͺ ν΄μ£ΌμΈμ
PRνκΈ° μ μ νμΈν΄μ£ΌμΈμ
κ΄λ ¨ μ΄μ λ²νΈ