Skip to content

나간 채팅방 조회 안 되게 수정#64

Merged
cfcromn merged 1 commit intodevelopfrom
update/chat-room-array
Dec 28, 2025
Merged

나간 채팅방 조회 안 되게 수정#64
cfcromn merged 1 commit intodevelopfrom
update/chat-room-array

Conversation

@cfcromn
Copy link
Collaborator

@cfcromn cfcromn commented Dec 28, 2025

💡 배경 및 개요

나간 채팅방이 조회가 되는 문제가 있었습니다 이 문제를 자기가 나가면 조회가 되지 않게 수정하여 해결하였습니다.

Resolves: #{이슈번호}

📃 작업내용

나간 채팅방 조회 안 되게 수정

🙋‍♂️ 리뷰노트

구현 시에 고민이었던 점들 혹은 특정 부분에 대한 의도가 있었다면 PR 리뷰의 이해를 돕기 위해 서술해주세요!

또한 리뷰어에게 특정 부분에 대한 집중 혹은 코멘트 혹은 질문을 요청하는 경우에 작성하면 좋아요!

e.g. 작업을 끝내야할 시간이 얼마 없어 확장성보다는 동작을 위주로 만들었어요! 감안하고 리뷰해주세요!

✅ PR 체크리스트

템플릿 체크리스트 말고도 추가적으로 필요한 체크리스트는 추가해주세요!

  • [] 이 작업으로 인해 변경이 필요한 문서가 변경되었나요? (e.g. .env, 노션, README)
  • 이 작업을 하고나서 공유해야할 팀원들에게 공유되었나요? (e.g. "API 개발 완료됐어요", "환경값 추가되었어요")
  • 작업한 코드가 정상적으로 동작하나요?
  • Merge 대상 브랜치가 올바른가요?
  • PR과 관련 없는 작업이 있지는 않나요?

🎸 기타

@cfcromn cfcromn requested a review from hej090224 December 28, 2025 08:09
@cfcromn cfcromn self-assigned this Dec 28, 2025
@cfcromn cfcromn added the Fix label Dec 28, 2025
@gemini-code-assist
Copy link

Summary of Changes

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

이 Pull Request는 사용자가 나간 채팅방이 조회되는 기존의 버그를 수정합니다. 이제 사용자는 자신이 나간 채팅방이나 비활성 상태의 채팅방을 더 이상 목록에서 볼 수 없게 되어, 사용자 경험을 개선하고 데이터 일관성을 유지합니다.

Highlights

  • 나간 채팅방 조회 문제 해결: 사용자가 채팅방을 나갔음에도 불구하고 해당 채팅방이 목록에 계속 표시되는 문제를 해결했습니다.
  • 채팅방 목록 필터링 로직 추가: 채팅방 조회 시, "RoomStatus.ACTIVE" 상태의 채팅방만 조회하고, 현재 사용자가 나가지 않은 채팅방만 필터링하여 반환하도록 로직을 추가했습니다.
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

@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을 리뷰했습니다.

나간 채팅방이 조회되지 않도록 필터링 로직을 추가하신 부분을 확인했습니다. 기능적으로는 올바르게 동작할 것으로 보입니다.

다만, 현재 구현은 데이터베이스에서 모든 관련 채팅방을 가져온 후 애플리케이션 메모리에서 필터링을 수행하고 있어, 데이터가 많아질 경우 성능 저하가 우려됩니다. 이와 관련하여 데이터베이스 쿼리 단에서 필터링을 수행하도록 개선하는 방안을 코멘트로 제안드렸습니다. 이 방식을 적용하면 더 효율적이고 확장성 있는 코드가 될 것입니다.

수고하셨습니다!

@cfcromn cfcromn merged commit 4ab4a7f into develop Dec 28, 2025
1 check passed
@cfcromn cfcromn deleted the update/chat-room-array branch December 29, 2025 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants