Skip to content

Conversation

@Pearl1594
Copy link
Contributor

@Pearl1594 Pearl1594 commented Aug 18, 2025

Description

This PR adds UUID for the ldap config, which will help resolve #11440

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • 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

Feature/Enhancement Scale

  • Major
  • Minor

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clgtm, but let’s do this in 4.20.2 or 4.22 ? including some of the other ldap improvements?

@codecov
Copy link

codecov bot commented Aug 18, 2025

Codecov Report

❌ Patch coverage is 6.97674% with 40 lines in your changes missing coverage. Please review.
✅ Project coverage is 17.57%. Comparing base (ec533cd) to head (9ab2d6e).
⚠️ Report is 13 commits behind head on main.

Files with missing lines Patch % Lines
...va/org/apache/cloudstack/ldap/LdapManagerImpl.java 0.00% 13 Missing ⚠️
.../cloudstack/ldap/dao/LdapConfigurationDaoImpl.java 9.09% 10 Missing ⚠️
...dstack/api/response/LdapConfigurationResponse.java 0.00% 7 Missing ⚠️
...rg/apache/cloudstack/ldap/LdapConfigurationVO.java 33.33% 3 Missing and 1 partial ⚠️
...dstack/api/command/LdapDeleteConfigurationCmd.java 0.00% 3 Missing ⚠️
...oudstack/api/command/LdapListConfigurationCmd.java 0.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #11462      +/-   ##
============================================
+ Coverage     17.42%   17.57%   +0.14%     
- Complexity    15336    15493     +157     
============================================
  Files          5892     5894       +2     
  Lines        526521   528978    +2457     
  Branches      64293    65276     +983     
============================================
+ Hits          91767    92964    +1197     
- Misses       424401   425640    +1239     
- Partials      10353    10374      +21     
Flag Coverage Δ
uitests 3.61% <ø> (-0.01%) ⬇️
unittests 18.63% <6.97%> (+0.15%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@sureshanaparti sureshanaparti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clgtm

@Pearl1594 Pearl1594 marked this pull request as ready for review September 3, 2025 19:44
@Pearl1594
Copy link
Contributor Author

@blueorgangutan package

@DaanHoogland
Copy link
Contributor

@blueorgangutan package

@shwstppr
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@shwstppr 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.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✖️ debian ✔️ suse15. SL-JID 14961

@DaanHoogland DaanHoogland self-requested a review September 15, 2025 09:49
@DaanHoogland
Copy link
Contributor

@Pearl1594 , should this be a draft still?

@Pearl1594
Copy link
Contributor Author

any particular reason this needs to be a draft @DaanHoogland . I believe it's ready for review and test.

Copy link
Member

@weizhouapache weizhouapache left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code lgtm

@DaanHoogland
Copy link
Contributor

any particular reason this needs to be a draft @DaanHoogland . I believe it's ready for review and test.

I was asking because of the upgrade path

@weizhouapache
Copy link
Member

any particular reason this needs to be a draft @DaanHoogland . I believe it's ready for review and test.

I was asking because of the upgrade path

right, I did not notice it at all 🤦

@Pearl1594
Copy link
Contributor Author

Updated the upgrade path :). Thanks @DaanHoogland

Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clgtm

@github-actions
Copy link

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@DaanHoogland
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@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.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15168

@DaanHoogland
Copy link
Contributor

@blueorangutan test keepEnv

@blueorangutan
Copy link

@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

@blueorangutan
Copy link

[SF] Trillian test result (tid-14449)
Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8
Total time taken: 52733 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr11462-t14449-kvm-ol8.zip
Smoke tests completed. 147 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@vishesh92
Copy link
Member

@blueorangutan package

@blueorangutan
Copy link

@vishesh92 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.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 15233

@vishesh92
Copy link
Member

@blueorangutan test keepEnv

@blueorangutan
Copy link

@vishesh92 a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

Copy link
Member

@vishesh92 vishesh92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did a cursory review of code and it looks good to me.

I created 2 LDAP configs in UI with same host & port but different domains.
After the fix, I am able to open the LDAP config I want and see the correct details.

@blueorangutan
Copy link

[SF] Trillian test result (tid-14479)
Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8
Total time taken: 53881 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr11462-t14479-kvm-ol8.zip
Smoke tests completed. 147 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

Copy link
Member

@weizhouapache weizhouapache left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code lgtm

@weizhouapache weizhouapache merged commit cd12fa5 into main Oct 1, 2025
48 of 50 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Apache CloudStack 4.22.0 Oct 1, 2025
@weizhouapache
Copy link
Member

merging based on approvals and manual test.
thanks @Pearl1594 @vishesh92

@weizhouapache weizhouapache deleted the add-uuid-ldap-conf branch October 1, 2025 12:43
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 1, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
5.1% Coverage on New Code (required ≥ 40%)

See analysis details on SonarQube Cloud

dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Oct 17, 2025
* Add UUID field for LDAP configuration

* move db changes to the lastest schema file

* Add ID param to list ldapConf API & delete ldapConf API

* fix ui test

* fix 1 ui test

* fix test

* fix api description

---------

Co-authored-by: dahn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

LDAP configuration dialog opens wrong item

7 participants