Skip to content

Conversation

@Pearl1594
Copy link
Contributor

Description

This PR fixes #11570
Following issues were fixed:

  1. When updating domain-level setting (from UI) it is observed that it doesn't pass the domain id, hence leading to the update of the global setting
  2. On switching between different domains, the settings weren't getting updated. i.e., while the API returns the correct value, the settings displayed the older domains values.

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

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

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

@codecov
Copy link

codecov bot commented Sep 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 18.58%. Comparing base (3d6ec29) to head (c576d32).
⚠️ Report is 195 commits behind head on 4.22.

Additional details and impacted files
@@             Coverage Diff              @@
##               4.22   #11571      +/-   ##
============================================
+ Coverage     17.36%   18.58%   +1.22%     
- Complexity    15237    16538    +1301     
============================================
  Files          5888     5911      +23     
  Lines        525741   567407   +41666     
  Branches      64164    81153   +16989     
============================================
+ Hits          91274   105454   +14180     
- Misses       424167   450696   +26529     
- Partials      10300    11257     +957     
Flag Coverage Δ
uitests 3.85% <ø> (+0.22%) ⬆️
unittests 19.68% <ø> (+1.28%) ⬆️

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.

@weizhouapache weizhouapache added this to the 4.20.2 milestone Sep 3, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 3, 2025

@shwstppr
Copy link
Contributor

shwstppr commented Sep 4, 2025

@blueorangutan ui

@blueorangutan
Copy link

@shwstppr a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan
Copy link

UI build: ✔️
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/11571 (QA-JID-737)

Copy link
Contributor

@harikrishna-patnala harikrishna-patnala left a comment

Choose a reason for hiding this comment

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

@Pearl1594 does this need change in base branch to 4.20 ?

@bernardodemarco bernardodemarco self-requested a review September 4, 2025 11:39
@weizhouapache weizhouapache self-assigned this Sep 10, 2025
@weizhouapache
Copy link
Member

I could not reproduce the issue with updateconfiguration in 4.20, the domainid is passed

api('updateConfiguration', {
[this.scopeKey]: this.resource.id,
name: item.name,
value: this.editableValue

it seems to be a regression of #10596

moving to 4.22 milestone. cc @Pearl1594 @harikrishna-patnala

@weizhouapache weizhouapache modified the milestones: 4.20.2, 4.22.0 Sep 15, 2025
@vishesh92 vishesh92 requested a review from Copilot October 10, 2025 07:55
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes domain-level configuration updates in the UI by ensuring domain ID is passed when updating domain settings and by refreshing configuration data when switching between domains.

  • Added resource prop passing to maintain domain context across configuration components
  • Fixed domain ID parameter passing in updateConfiguration API calls
  • Added watchers to refresh configuration data when loading state changes or config records update

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
ui/src/views/setting/ConfigurationValue.vue Added resource prop, watchers for data refresh, and domain ID parameter handling
ui/src/views/setting/ConfigurationTable.vue Added resource prop and passed it to ConfigurationValue component
ui/src/components/view/SettingsTab.vue Passed resource prop to ConfigurationTable component

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@kiranchavala
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

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

@weizhouapache weizhouapache removed their assignment Nov 6, 2025
@blueorangutan
Copy link

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

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 and tested in lab, but reset does not work for domein-settings.

@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 ✔️ debian ✖️ suse15. SL-JID 15665

@DaanHoogland DaanHoogland reopened this Nov 7, 2025
@blueorangutan
Copy link

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

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.

white box tested in a lab, checking the values for multiple domains and globally for a setting in both the DB and the UI

Copy link
Contributor

@nvazquez nvazquez 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 DaanHoogland changed the base branch from main to 4.22 November 7, 2025 16:34
@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 15682

@DaanHoogland
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

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

@sonarqubecloud
Copy link

@blueorangutan
Copy link

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

Test Result Time (s) Test File

@DaanHoogland DaanHoogland modified the milestones: 4.22.0, 4.22.1 Nov 11, 2025
@DaanHoogland DaanHoogland merged commit 15439ed into 4.22 Nov 11, 2025
81 of 99 checks passed
@DaanHoogland DaanHoogland deleted the fix-domain-scope-config branch November 11, 2025 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ldap.search.group.principle Issue UI /API : Domain level ldap settings are not peristed

8 participants