Skip to content

Conversation

@HI-JIN2
Copy link
Member

@HI-JIN2 HI-JIN2 commented Nov 24, 2025

Summary

2025.11.24 3.1.6(44) QA 담당자 이윤소
https://eat-ssu.slack.com/archives/C07N4U8FN65/p1763979235471709?thread_ts=1763889538.781759&cid=C07N4U8FN65

문제 상황 정의

순서가 리뷰 씀 > 네트웤 오류 다이알로그 뜸> 근데 리뷰 작성은 성공함

문제 파악

  • postReview와 saveS3 둘다 UIState를 Success로 바꾸기 때문에
  • Acitivity에서 postReview 작업이 다 안끝난 상태에서 Success 인식 -> finish 호출로 인해 viewmodelscope가 깨져 IOException으로 인식 -> observeNetworkError 호출되어
image

Describe your changes

수정 전 수정 후
스크린샷 2025-11-24 오후 8 21 26 스크린샷 2025-11-24 오후 8 21 43

@HI-JIN2 HI-JIN2 requested a review from PeraSite November 24, 2025 11:25
@HI-JIN2 HI-JIN2 self-assigned this Nov 24, 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은 리뷰 작성 기능에서 발생하던 레이스 컨디션을 해결하여, 리뷰가 성공적으로 작성되었음에도 불구하고 네트워크 오류 다이얼로그가 잘못 표시되는 문제를 수정합니다. 기존에는 리뷰 게시와 S3 업로드 과정에서 각각 UI 상태를 성공으로 설정하여, 비동기 작업이 완료되기 전에 UI가 종료되고 이로 인해 IOException이 발생하여 오류로 인식되는 문제가 있었습니다. 이번 변경을 통해 UI 성공 상태 관리를 단일화하여 이러한 오작동을 방지합니다.

Highlights

  • 레이스 컨디션 해결: 리뷰 작성 과정에서 postReviewsaveS3 두 곳에서 UiState.Success를 설정하여 발생하던 레이스 컨디션을 수정했습니다.
  • UI 상태 관리 개선: UiState.Success 정의를 한 곳에서만 관리하도록 변경하여, 작업 완료 전에 finish()가 호출되어 네트워크 오류 다이얼로그가 잘못 표시되는 문제를 방지했습니다.
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
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은 이미지가 포함된 리뷰를 제출할 때 발생하는 경쟁 상태(race condition)를 해결합니다. 기존 코드에서는 이미지 업로드(saveS3)가 완료된 직후 UI 상태를 Success로 변경하여, 아직 리뷰 전송(postReview)이 완료되지 않았음에도 불구하고 화면이 종료되는 문제가 있었습니다. 이로 인해 postReview 작업이 중단되어 오류가 발생할 수 있었습니다. 이번 수정으로 saveS3에서 UiState.Success를 호출하는 코드를 제거하여, 오직 postReview가 성공적으로 완료되었을 때만 Success 상태가 되도록 로직을 단일화했습니다. 이는 문제 상황을 정확히 해결하는 올바른 접근 방식입니다.

@HI-JIN2 HI-JIN2 changed the title hotfix: uistate Success에 대한 race condition 수정 [Hotfix] 사진 있는 리뷰 작성시 uistate Success에 대한 race condition 수정 Nov 24, 2025
Copy link
Member

@PeraSite PeraSite left a comment

Choose a reason for hiding this comment

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

💯

@HI-JIN2 HI-JIN2 merged commit 0990236 into develop Nov 24, 2025
1 check passed
@HI-JIN2 HI-JIN2 deleted the hotfix/photoreview-ioexception branch November 24, 2025 11:28
@HI-JIN2 HI-JIN2 mentioned this pull request Nov 24, 2025
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.

3 participants