You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
To be able to delete a user we need first to clean all ownership on accounts, then we need to do the same in account history. Only then, the user can be delete without integrity constraint.
We are at the point where we need to delete a user with hundreds of entries. On the account side it seems doable quite easily with the search arguments, but not for "accounts history", there seems to be no argumentation possible there and no details about the "user".
Describe the solution you'd like
At user deletion, there could be an option to transfer ownership to another user (history included !), and a warning to inform about ownership and history lose concerning this user. What do you think ?
Describe alternatives you've considered
We don't delete user and live with it.
Additional context
Error thrown at user deletion:
When there are accounts owned by the user: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`my_syspass_db`.`Account`, CONSTRAINT `fk_Account_userEditId` FOREIGN KEY (`userEditId`) REFERENCES `User` (`id`))
When entries exist in the account history (but not in account): SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`my_syspass_db`.`AccountHistory`, CONSTRAINT `fk_AccountHistory_userEditId` FOREIGN KEY (`userEditId`) REFERENCES `User` (`id`))
Bye !
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
To be able to delete a user we need first to clean all ownership on accounts, then we need to do the same in account history. Only then, the user can be delete without integrity constraint.
We are at the point where we need to delete a user with hundreds of entries. On the account side it seems doable quite easily with the search arguments, but not for "accounts history", there seems to be no argumentation possible there and no details about the "user".
Describe the solution you'd like
At user deletion, there could be an option to transfer ownership to another user (history included !), and a warning to inform about ownership and history lose concerning this user. What do you think ?
Describe alternatives you've considered
We don't delete user and live with it.
Additional context
Error thrown at user deletion:
When there are accounts owned by the user:
SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`my_syspass_db`.`Account`, CONSTRAINT `fk_Account_userEditId` FOREIGN KEY (`userEditId`) REFERENCES `User` (`id`))
When entries exist in the account history (but not in account):
SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`my_syspass_db`.`AccountHistory`, CONSTRAINT `fk_AccountHistory_userEditId` FOREIGN KEY (`userEditId`) REFERENCES `User` (`id`))
Bye !
The text was updated successfully, but these errors were encountered: