Conversation
Summary of ChangesHello, 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은 메인 맵 화면에서 학과 정보 로드와 제휴 API 호출 간의 비동기 처리 순서를 보장하여 Race Condition을 수정하는 것을 목적으로 합니다. 기존에는 로컬 DB 데이터를 기반으로 API를 즉시 호출하여 서버 응답 오류가 발생할 가능성이 있었으나, 서버 확인 로직을 선행하도록 변경하여 안정성을 높였습니다. Highlights
🧠 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. Using Gemini Code AssistThe 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
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 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. 비동기 꼬인 실타래를 풀고서, 서버 응답 기다려 호출하네. 순서가 바로 서니 오류는 사라지고, 맵 위엔 평화가 찾아오네. Footnotes
|
There was a problem hiding this comment.
Code Review
이번 풀 리퀘스트에서는 MainMapViewController의 학과 정보 로드 및 UI 업데이트 로직을 개선하였습니다. viewDidLoad에서 수행하던 초기화 작업을 viewWillAppear로 옮기고, 서버 통신 완료 후 실행될 로직을 클로저 형태로 구현했습니다. 리뷰를 통해 fetchDepartmentAndUpdateButton 내부 로직과 중복되는 updateMyOnlyButtonTitle() 호출을 제거하여 코드를 최적화할 것을 제안했습니다.
🔗 연결된 이슈
Resolved #411
✨ 주요 작업사항
viewWillAppear에서 Realm(로컬 DB) 데이터 기반으로 제휴 API를 즉시 호출하던 로직을, 서버에서 학과 정보를 확인한 후 호출하도록 변경viewDidLoad에서 중복 호출되던fetchDepartmentAndUpdateButton()제거기존 문제
viewDidLoad→fetchDepartmentAndUpdateButton()(비동기, 응답 대기중)viewWillAppear→ Realm에서 이전 세션의 학과 데이터를 읽고 바로fetchMyPartnerships()호출MISSING_USER_DEPARTMENT에러 발생수정 후
viewWillAppear에서 서버 학과 확인이 완료된 후에만 제휴 API를 호출하도록 순서 보장🔍 리뷰어에게 (선택)