Skip to content

ui: show related settings when (main) config value is changed - #13965

Open
shwstppr wants to merge 1 commit into
apache:mainfrom
shwstppr:ui-config-related
Open

ui: show related settings when (main) config value is changed#13965
shwstppr wants to merge 1 commit into
apache:mainfrom
shwstppr:ui-config-related

Conversation

@shwstppr

@shwstppr shwstppr commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Description

For many CloudStack feature there is a main boolean config which controls whether the feature is enabled or not. When such configs are changed it may be useful for user to update related configurations for the feature. This UI change shows those related settings using the changed config name.

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):

UI-Config-Related.mp4
image

How Has This Been Tested?

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

For many CloudStack feature there is a main boolean config which
controls whether the feature is enabled or not. When such configs are
changed it may be useful for user to update related configurations for
the feature. This UI change shows those related settings using the
changed config name.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Copilot AI lite review requested due to automatic review settings August 25, 2026 08:31
@shwstppr
shwstppr marked this pull request as ready for review August 25, 2026 08:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 enhances the CloudStack UI configuration editor to prompt administrators with a list of “related settings” after a main (boolean) global configuration is changed, making it easier to review/update dependent settings from the same screen.

Changes:

  • Add a related-settings modal to ConfigurationValue that fetches and displays configs sharing the changed config’s prefix.
  • Add logic to derive a related-config prefix and call listConfigurations to populate the modal.
  • Add new English locale strings for the modal title and prompt message.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
ui/src/views/setting/ConfigurationValue.vue Adds related-settings modal UI, prefix derivation, and API call to fetch/display related configuration entries.
ui/public/locales/en.json Adds i18n strings for the related-settings modal title and prompt message.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +193 to +200
<a-modal
v-if="!suppressRelatedPrompt"
v-model:visible="relatedModalVisible"
:title="$t('label.related.settings')"
:footer="null"
:maskClosable="false"
:width="'60vw'"
@cancel="closeRelatedModal">
Comment on lines +403 to +408
const params = {
[this.scopeKey]: this.$route.params?.id,
keyword: prefix,
pagesize: -1,
listAll: true
}
Comment thread ui/src/views/setting/ConfigurationValue.vue
@codecov

codecov Bot commented Aug 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 19.73%. Comparing base (4e4a26b) to head (6643017).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main   #13965   +/-   ##
=========================================
  Coverage     19.73%   19.73%           
- Complexity    19956    19958    +2     
=========================================
  Files          6371     6371           
  Lines        575765   575822   +57     
  Branches      70478    70492   +14     
=========================================
+ Hits         113642   113655   +13     
- Misses       449766   449816   +50     
+ Partials      12357    12351    -6     
Flag Coverage Δ
uitests 3.41% <ø> (-0.01%) ⬇️
unittests 21.01% <ø> (+<0.01%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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.

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.

2 participants