-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[4.20] Fix account deletion blocked by deleted project admin mappings #12615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 4.20
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## 4.20 #12615 +/- ##
=============================================
- Coverage 16.27% 4.15% -12.12%
=============================================
Files 5662 404 -5258
Lines 500033 32965 -467068
Branches 60717 5893 -54824
=============================================
- Hits 81368 1370 -79998
+ Misses 409591 31419 -378172
+ Partials 9074 176 -8898
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
This PR backports the fix from #12607 to the 4.20 branch. It contains the same change and unit test as the main/4.22 fix, adjusted for the 4.20 codebase. Please let me know if any additional changes are needed for the backport. |
|
@blueorangutan package |
|
@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Co-authored-by: dahn <daan.hoogland@gmail.com>
|
Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 16761 |
|
@SURYAS1306 please check the build error. |
|
Hi @sureshanaparti , The build issue was caused by incorrect mocks in AccountManagerImplTest. Could you please re-run the workflows when convenient? |
|
The previous build failure was due to missing imports (ProjectAccountDao, ProjectDao, InjectMocks) in AccountManagerImplTest. I’ve added the required imports and pushed the fix in the latest commit. Could you please re-run the workflows when possible? |
Description
Backport of #12607 to the 4.20 branch.
This change fixes an issue where account deletion was blocked if the account
was listed as an administrator of projects that were already removed
(removed is not null).
The fix ensures that only active projects are considered when checking
whether an account manages projects, allowing deletion when only deleted
projects are associated.
Includes the same defensive check and unit test added in the main branch.
Rebased to 4.20 as requested by @DaanHoogland
Fixes #12601
Types of changes