Skip to content

migration/supabase 계정 변경 #136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

okstring
Copy link
Collaborator

@okstring okstring commented Jun 19, 2025

🔍 변경사항 요약

  • 타겟 DB 초기화 후 - 기존 데이터 완전 삭제 ✅
    • Public 스키마 마이그레이션 ✅
    • Auth 스키마 마이그레이션 ✅
    • 외래키 관계 설정 ✅
    • RLS 정책 설정 ✅
    • RPC 쿼리 생성 ✅
  • 현재 데이터베이스 마이그레이션으로 기존 유저 로그인이 가능합니다.
  • 각종 key는 저희 채널에 참고해주세요
  • 본인이 맡은 부분에 대해 마이그레이션을 부탁드리고 이 브랜치에 직접 푸시 부탁드립니다.

Summary by CodeRabbit

  • Chores
    • Google OAuth 마이그레이션 관련 주석이 추가되었습니다. (기능 변경 없음)

@okstring okstring requested review from helljh, Dansot4891 and irmu98 June 19, 2025 02:08
@okstring okstring added the refactor 코드 리팩토링 label Jun 19, 2025
Copy link

coderabbitai bot commented Jun 19, 2025

Walkthrough

AuthRepositoryImpl 클래스의 비공개 메서드 위에 "Google Oauth Migration" 관련 TODO 주석이 추가되었습니다. 코드의 기능이나 논리에는 아무런 변경이 없으며, 해당 주석은 향후 작업을 위한 메모 역할을 합니다.

Changes

파일 경로 변경 요약
lib/auth/data/repository/auth_repository_impl.dart Google Oauth Migration 관련 TODO 주석 추가

Poem

🐰
토끼가 남긴 한 줄의 말,
"구글 OAuth, 곧 바꿀 거야!"
코드는 그대로, 주석만 쏙—
변화의 바람, 살짝쿵 속삭여.
오늘도 개발은 한 걸음 더!


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
lib/auth/data/repository/auth_repository_impl.dart (1)

25-25: TODO 주석을 더 구체적으로 작성해주세요.

마이그레이션 작업을 위한 TODO 주석 추가는 좋습니다. 하지만 향후 작업을 더 명확하게 하기 위해 구체적인 내용을 포함하는 것을 권장합니다.

다음과 같이 더 구체적인 TODO 주석으로 개선할 수 있습니다:

-//TODO: Google Oauth Migration
+//TODO: Google OAuth Migration - Supabase 계정 변경에 따른 OAuth 설정 및 콜백 URL 업데이트 필요
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 51c8bfa and 92a3147.

📒 Files selected for processing (1)
  • lib/auth/data/repository/auth_repository_impl.dart (1 hunks)

@okstring
Copy link
Collaborator Author

okstring commented Jun 19, 2025

⚠️ Edge Function, Secrets 마이그레이션

  • Secrets의 경우 사용중이어서 접두사인 SUPABASE를 제외해서 추가
  • Edge Function 테스트 필요

@irmu98
Copy link
Collaborator

irmu98 commented Jun 19, 2025

⚠️ Dashboard 마이그레이션

Dashboard 코드는 수정할 것이 없어 코드 수정은 없습니다. 키 변경 후 대시보드의 CRUD 테스트 결과 정상 작동합니다.

📌 Supabase에서 일부만 수정하였습니다.

  • View에 RLS 설정이 제외되어있어 다시 추가하였습니다.
  • 휴지통 구현을 위한 삭제 스케줄러 (supabase cron job)를 다시 추가했습니다. (⚠️ Disable 상태입니다. 주기적 삭제할일이 없을 것 같아 꺼놨습니다.)

📌 아무 활동이 없어 일주일 이후 Supabase가 중지되지 않도록 다음과 같은 기능을 추가했습니다.

  • keep-alive edge function을 추가했습니다. 이는 아무 의미없는 동작(team 테이블을 읽고 success 반환)을 수행합니다.
  • 매일 자정마다 keep-alive를 수행하도록 스케줄러(supabase cron job)에 등록하였습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor 코드 리팩토링
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants