Skip to content

Conversation

@sureshanaparti
Copy link
Contributor

Description

This PR adds info in UI for 'Use primary storage replication' in snapshot view(s).

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?

Verified the take snapshot and create recurring snapshots from UI.

TakeSnapshot_View CreateRecurringSnapshot_View

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

Copy link
Contributor

@slavkap slavkap left a comment

Choose a reason for hiding this comment

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

havent't tested it, but the code LGTM

@sureshanaparti
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

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

@codecov
Copy link

codecov bot commented Oct 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 17.57%. Comparing base (2dbc86a) to head (8b4f719).
⚠️ Report is 59 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##               main   #11943    +/-   ##
==========================================
  Coverage     17.56%   17.57%            
- Complexity    15542    15550     +8     
==========================================
  Files          5909     5913     +4     
  Lines        529058   529429   +371     
  Branches      64617    64677    +60     
==========================================
+ Hits          92922    93021    +99     
- Misses       425683   425944   +261     
- Partials      10453    10464    +11     
Flag Coverage Δ
uitests 3.58% <ø> (+<0.01%) ⬆️
unittests 18.63% <100.00%> (+<0.01%) ⬆️

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

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 enhances snapshot creation UI forms by adding tooltip descriptions to storage replication and async backup fields, and updates the API parameter descriptions for storage replication. The changes improve user guidance by displaying API descriptions directly in the UI as tooltips.

  • Added tooltip labels with API parameter descriptions to useStorageReplication and asyncbackup form fields across multiple Vue components
  • Updated API parameter descriptions for useStorageReplication in Java API command classes to be more descriptive and consistent
  • Removed redundant required = false parameters from API annotations (as false is the default)
  • Made a minor code style improvement in the Java ConfigKey declaration

Reviewed Changes

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

Show a summary per file
File Description
ui/src/views/storage/TakeSnapshot.vue Added tooltip labels with API descriptions for useStorageReplication and asyncbackup fields
ui/src/views/storage/SnapshotZones.vue Added tooltip label with API description for useStorageReplication field
ui/src/views/storage/FormSchedule.vue Added tooltip label and beforeCreate hook to fetch API params for useStorageReplication field
server/src/main/java/com/cloud/storage/snapshot/SnapshotManager.java Simplified ConfigKey declaration by removing redundant type parameter
api/src/main/java/org/apache/cloudstack/api/command/user/snapshot/CreateSnapshotPolicyCmd.java Updated description and removed redundant required parameter for useStorageReplication
api/src/main/java/org/apache/cloudstack/api/command/user/snapshot/CreateSnapshotCmd.java Updated description and removed redundant required parameter for useStorageReplication
api/src/main/java/org/apache/cloudstack/api/command/user/snapshot/CopySnapshotCmd.java Updated description for useStorageReplication parameter

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@blueorangutan
Copy link

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

@sureshanaparti
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@sureshanaparti 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 15889

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.

4 participants