-
Notifications
You must be signed in to change notification settings - Fork 1
Удалять юзердату при отвязке метода входа #231
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
Удаление юзердаты при отвязке метода входа
|
Внесены изменения в auth_backend/auth_method/oauth.py |
Temmmmmo
left a comment
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.
тестируй пж, что пишешь)
| new_user = {"user_id": user_session.user.id} | ||
| old_user_params = await cls._delete_auth_methods(user_session.user, db_session=db.session) | ||
| old_user[cls.get_name()] = old_user_params | ||
| await cls._delete_userdata(user=user_session.user, db_session=db.session) |
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.
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.
Добавила новый метод класса, проверь пожалуйста, насколько это корректно
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.
@classmethod
async def _delete_userdata(cls, user: User, *, db_session: DbSession) -> None:
"""Удаление данных пользователя
Args:
user (User): Объект пользователя
db_session (DbSession): Сессия базы данных
Returns:
Ничего?
"""
raise NotImplementedError()
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.
Добавила @AbstractMethod после @classmethod
|
💩 Code linting failed, use |
|
Импортировала класс User в userdata_mixin.py, но все равно тесты не видят User |

Удаление юзердаты при отвязке метода входа
Изменения
Детали реализации
Check-List
blackиisortдля Back-End илиPrettierдля Front-End?