Skip to content

Conversation

@HI-JIN2
Copy link
Member

@HI-JIN2 HI-JIN2 commented Sep 23, 2025

Summary

버그 인지 시나리오

저는 분명 사진을 포함해서 리뷰를 작성했습니다.
식단 > 리뷰에서는 보이는 잘 보이던 사진이, 내 리뷰에서는 보이지 않는 오류를 발견하였습니다.

수정 전 수정 후
스크린샷 2025-09-23 오후 4 56 31 스크린샷 2025-09-23 오후 5 00 38

kimumu하는 리뷰가 사진이 있는 리뷰가 맞습니다.

To reviewers

버그 수정만 하였습니다.
클린 어쩌구는 v2에서 이미 바꿔놔서 여기서 또 바꾸면 충돌납니다..

@HI-JIN2 HI-JIN2 self-assigned this Sep 23, 2025
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @HI-JIN2, 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은 사용자가 '내 리뷰' 페이지에서 자신의 리뷰 사진을 볼 수 없었던 중요한 버그를 해결합니다. 이 버그는 사진이 다른 섹션에서는 올바르게 표시되었음에도 불구하고 특정 페이지에서만 발생했습니다. 또한, 데이터 모델 변환 과정에서 발생할 수 있는 null 값 관련 오류를 방지하기 위해 여러 필드에 대한 기본값 처리 로직을 추가하여 애플리케이션의 안정성을 향상시켰습니다.

Highlights

  • 사진 표시 버그 수정: 사용자가 작성한 리뷰에 사진이 포함되어 있음에도 불구하고 '내 리뷰' 섹션에서 사진이 보이지 않던 버그를 수정했습니다.
  • Null 값 처리 개선: API 응답에서 특정 필드가 null일 경우 발생할 수 있는 문제를 방지하기 위해 MyReviewResponseReview 객체로 변환할 때 기본값을 할당하도록 로직을 추가했습니다.
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

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
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은 '내 리뷰' 화면에서 리뷰에 포함된 사진이 보이지 않는 버그를 수정하고, API 응답의 null 값에 대한 기본값 처리를 추가합니다.

MyReviewAdapter에서 CardView의 visibility를 올바르게 처리하여 사진이 표시되도록 수정한 점은 좋습니다. 또한 이미지 URL을 다루는 로직을 firstOrNull을 사용하여 더 안전하고 간결하게 개선한 점도 훌륭합니다.

MyReviewResponse에서 API 응답의 null 가능성에 대비한 것은 좋지만, 몇 가지 개선할 점이 보입니다. reviewId의 기본값으로 1을 사용하는 것은 중복 ID 문제를 일으킬 수 있으므로 더 안전한 값으로 변경하는 것을 제안합니다. 또한, 불필요한 코드가 있어 수정을 제안했습니다. 자세한 내용은 각 파일의 주석을 확인해주세요.

HI-JIN2 and others added 2 commits September 23, 2025 17:05
…wResponse.kt

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…wResponse.kt

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Copy link
Member

@kangyuri1114 kangyuri1114 left a comment

Choose a reason for hiding this comment

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

💯

tasteGrade = data.tasteRating ?: 0,
writeDate = data.writeDate ?: "",
content = data.content ?: "",
imgUrl = data.imgUrlList ?: arrayListOf(),
Copy link
Member

Choose a reason for hiding this comment

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

이미지를 하나만 올릴 수 있는걸로 알고 있었는데 리스트로 오는군요,,?
확장성을 위한 거였을까요? 궁금하네요..

Copy link
Member Author

Choose a reason for hiding this comment

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

리스트로 옵니다! 말씀하신대로 확장성을 위해서 리스트로 리뷰작성/리스트 둘다 리스트로 되어있는데, 운영 단에서 1장 이상일 필요 없다랑 S3 리소스 문제로 1장으로 운영하고 있슴다

@HI-JIN2 HI-JIN2 merged commit e80bde6 into develop Sep 28, 2025
1 check passed
@HI-JIN2 HI-JIN2 deleted the fix/my-review-not-visible-photo branch September 28, 2025 14:58
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.

4 participants