-
Notifications
You must be signed in to change notification settings - Fork 159
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(BA-461): Filter vfolder deletion info by vfolder status #3446
Conversation
Co-authored-by: octodog <[email protected]>
Co-authored-by: octodog <[email protected]>
async with engine.begin_session() as db_conn: | ||
result = await db_conn.execute(query) | ||
target_vfs = result.fetchall() | ||
delete_query = sa.delete(vfolders).where(vfolders.c.group == group_id) | ||
result = await db_conn.execute(delete_query) |
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.
Can I know the existing code history?
vfolder_permissions.delete().where(vfolder_permissions.c.user == user_uuid), | ||
) | ||
result = await conn.execute( | ||
sa.select([vfolders.c.id, vfolders.c.host, vfolders.c.quota_scope_id]) |
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.
Can the existing condition be removed?
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
Co-authored-by: octodog <[email protected]> Backported-from: main (24.12) Backported-to: 24.09 Backport-of: 3446
Co-authored-by: octodog <[email protected]> Backported-from: main (24.12) Backported-to: 24.03 Backport-of: 3446
BA-461
resolves #3394
Filter vfolders by status before calling initiate_vfolder_deletion(), rather than checking the status within the function. This approach ensures consistent vfolder status throughout the transaction.
Checklist: (if applicable)
📚 Documentation preview 📚: https://sorna--3446.org.readthedocs.build/en/3446/
📚 Documentation preview 📚: https://sorna-ko--3446.org.readthedocs.build/ko/3446/