Skip to content
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

fix:修复离职用户SaaS部分表数据未清理 #2843

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

yunlong098
Copy link

变更点(Changes)

  • xxxx

相关issues (Which issues this PR fixes)

  • Fixes #

备注(Special notes)


SubjectToDelete.objects.bulk_create(
[SubjectToDelete(subject_id=subject_id,
subject_type=SubjectType.USER.value) for subject_id in new_subject_ids])
Copy link
Collaborator

Choose a reason for hiding this comment

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

  1. 遗留数据不应该与正常逻辑耦合
  2. 遗留数据清理,可以使用 Django Command 方式提供(且可以直接清理遗留的表,而不需要重新添加到待删除的数subject里)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants