The administrator cancels the user deletion function and replaces it with disabling users.
Detailed logic:
The administrator cancels the user deletion function.
When the user account is disabled, it cannot own resources (application and project ownership)
Add resource transfer function to transfer disabled user resources to new users
Verifying this change
Change the user’s status when the user has resources.
This change is already covered by existing tests, such as UserServiceTest.
This change added tests and can be verified as follows:
testLockUser in UserServiceTest
This unit test covers different scenarios for locking and unlocking a user when they have no resources, as well as locking a user when they have resources and checking the different return results.
testTransferResource in UserServiceTest
This unit test involves transferring a user’s resources to another person.
Does this pull request potentially affect one of the following parts
Dependencies (does it add or upgrade a dependency):
no