java
2023-05-08
2023-05-08
凡事一俭,则谋生易足;谋生易足,则求人无争,亦于人无求。——钱泳
相关的pr
:https://github.com/apache/incubator-streampark/pull/2734
对应的描述:
What changes were proposed in this pull request
Issue Number: close #2712
Brief change log
- Requirement:
- 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