Tonitzpp opened a new pull request, #13456: URL: https://github.com/apache/cloudstack/pull/13456
### Description When a user is added to a project, and this project is then deleted, the user-project mapping is never removed from the database. Thus, when attempting to delete the user's account, an error is returned stating that the account is still linked to a project. Therefore, this PR deletes the invalid user-project mappings and fixes the project deletion process in CloudStack. ### Types of changes - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] New feature (non-breaking change which adds functionality) - [X] Bug fix (non-breaking change which fixes an issue) - [ ] Enhancement (improves an existing feature and functionality) - [ ] Cleanup (Code refactoring and cleanup, that may add test cases) - [ ] Build/CI - [ ] Test (unit or integration test code) ### Feature/Enhancement Scale or Bug Severity #### Bug Severity - [ ] BLOCKER - [ ] Critical - [X] Major - [ ] Minor - [ ] Trivial ### Screenshots (if appropriate): ### How Has This Been Tested? 1. A new project belonging to a domain admin account was created and a user was added to it. 2. In the database, I observed that `select * from project_account` had the entries for 1 account and 1 user belonging to the project. 3. I deleted the project. 4. I the database, using the same command, I observed that the mappings were removed after project deletion. 5. I deleted the user's account without receiving any errors. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
