This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Delete user API by username to be called by the auth service (#2386)
* Add Delete user API by username to be called by admin-console service account * delete assocaited space owned by an identities being deleted * Add Delete user API by username to be called by admin-console service account * delete assocaited space owned by an identities being deleted * Delete user ans associated resources should be called from auth service * make codacy happy with coding styling * Update account/user.go Co-Authored-By: corinnekrych <[email protected]> * Update account/user.go Co-Authored-By: corinnekrych <[email protected]> * clean code with review's comments * Update account/user.go Co-Authored-By: corinnekrych <[email protected]> * refactor delete user test in sub-test * refactor delete user remove unnecessary tf.Users(1) * refactor delete user remove to assert wuth CheckExists * Update design/account.go Co-Authored-By: corinnekrych <[email protected]> * Update space/space.go Co-Authored-By: corinnekrych <[email protected]> * refactor space test to use nest sub-test * refactor migration tests to use gorm.Dialect * add test for deleting users with mutiple identities * refactor account/user_blackbox_test.go to fail the sub-test instead of entire test * refactor controller/users.go to group if statement * refactor controller/users.go tests into subtest * remove user should keep all data committed on spaces not owned by this user, whereas data in owned spaces are all deleted * fix unit test for create wit revision, unknown modifier is allowed * refactor * refactor * refactor * PermanetDelete of a space to check for spaceId nil * make codacy happy * migration test to check modifier_id colunm is not dropped
- Loading branch information
1 parent
8c71948
commit a9703fb
Showing
12 changed files
with
648 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.