Add missing project cleanups while deleting/moving user - #13817
Add missing project cleanups while deleting/moving user#13817winterhazel wants to merge 6 commits into
Conversation
|
@blueorangutan package |
|
@winterhazel a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #13817 +/- ##
=========================================
Coverage 19.65% 19.65%
- Complexity 19792 19798 +6
=========================================
Files 6368 6368
Lines 574881 574943 +62
Branches 70351 70355 +4
=========================================
+ Hits 112970 113011 +41
- Misses 449639 449658 +19
- Partials 12272 12274 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 18784 |
|
@blueorangutan test |
|
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-16724)
|
|
Changing to draft, as I am making some changes to also cover a few cleanups I missed in the original PR that allow the creation of inconsistent entries. |
|
@sudo87 thank you for testing! |
|
@winterhazel does this need re-testing? (I saw you added commits) |
@DaanHoogland yes, I need to test it as well. I will try to do it today. |
|
@blueorangutan package |
|
@winterhazel a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 18843 |
|
@blueorangutan package |
|
@winterhazel a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 18844 |
|
@DaanHoogland manual testing is done for this one. Can we run the smoke tests here? |
|
@blueorangutan test |
|
@sudo87 a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-16746)
|
|
@winterhazel , will you merge this before rc3? |
@DaanHoogland yes, this will be on RC3. |
bernardodemarco
left a comment
There was a problem hiding this comment.
Performed some general tests, lgtm
| DELETE FROM `cloud`.`project_account` WHERE `user_id` IN (SELECT `id` FROM `cloud`.`user` WHERE `removed`); | ||
| DELETE FROM `cloud`.`project_invitations` WHERE `user_id` IN (SELECT `id` FROM `cloud`.`user` WHERE `removed`); |
There was a problem hiding this comment.
| DELETE FROM `cloud`.`project_account` WHERE `user_id` IN (SELECT `id` FROM `cloud`.`user` WHERE `removed`); | |
| DELETE FROM `cloud`.`project_invitations` WHERE `user_id` IN (SELECT `id` FROM `cloud`.`user` WHERE `removed`); | |
| DELETE FROM `cloud`.`project_account` WHERE `user_id` IN (SELECT `id` FROM `cloud`.`user` WHERE `removed` IS NOT NULL); | |
| DELETE FROM `cloud`.`project_invitations` WHERE `user_id` IN (SELECT `id` FROM `cloud`.`user` WHERE `removed` IS NOT NULL); |
Description
This PR adds missing
project_accountandproject_invitationcleanups while deleting/moving a user. Some of these changes were missing on the merge-forward of #10008.Closes #13796.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
DB upgrade
User cleanup
Remove user from a project
Move user