-
Notifications
You must be signed in to change notification settings - Fork 2
Topic/delete user account #768
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
Conversation
テストでエラーになっていた箇所を修正しました。
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Firebaseのエラー周りで指摘です
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
このPRはユーザ削除機能を実装することを目的としており、以下の変更が含まれます:
- API側でFirebaseおよびSupabaseの認証モジュールを利用してユーザ削除を実装し、既存のDB削除処理と連携
- Web側において、ユーザ削除用の新たなRTKQミューテーションやダイアログの削除処理を追加
- 関連テストやdocker-compose設定の更新を行い、サービス用のキーを追加するなどの環境整備を実施
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
web/src/services/tcApi.js | deleteUserミューテーションの追加 |
web/src/pages/App/UserMenu/DeleteAccountDialog.jsx | ユーザ削除処理とサインアウト処理を統合したダイアログの更新 |
docker-compose-supabase-local.yml | SupabaseのSERVICE_ROLE_KEYの設定追加 |
api/app/routers/users.py | ユーザ削除エンドポイントの更新(認証モジュール経由で削除実施) |
api/app/auth/supabase_auth_module.py, firebase_auth_module.py | 認証モジュールにdelete_userの実装追加 |
各テストファイル | ユーザ削除に関するモックパッチの挿入とテストの更新 |
Comments suppressed due to low confidence (2)
web/src/pages/App/UserMenu/DeleteAccountDialog.jsx:49
- 削除処理が成功または失敗した後、ダイアログが閉じられないため、handleClose()を呼び出してUIの状態をリセットすることを検討してください。
const handleDeleteAccount = async () => { ... }
api/app/auth/auth_module.py:31
- delete_userの実装がpassになっています。基底クラスとして意図する場合はNotImplementedErrorを明示的に投げるようにすると、オーバーライド忘れを防げます。
def delete_user(self, uid): pass
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR の目的
経緯・意図・意思決定
参考文献