-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add mountopts to backup repository response #12360
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.22
Are you sure you want to change the base?
Add mountopts to backup repository response #12360
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## 4.22 #12360 +/- ##
=========================================
Coverage 17.59% 17.59%
- Complexity 15597 15599 +2
=========================================
Files 5910 5910
Lines 529618 529626 +8
Branches 64708 64709 +1
=========================================
+ Hits 93197 93204 +7
Misses 425930 425930
- Partials 10491 10492 +1
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:
|
There was a problem hiding this 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 adds the mountopts field to the backup repository API response, fixing issue #12359 where mount options would disappear from the UI after saving even though they were persisted in the database.
- Added
mountOptionsfield toBackupRepositoryResponsewith appropriate serialization and getter/setter methods - Updated
ApiResponseHelper.createBackupRepositoryResponse()to populate the mount options from the repository entity - Minor formatting cleanup in
BackupRepositoryServiceinterface (removed trailing blank line)
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| api/src/main/java/org/apache/cloudstack/api/response/BackupRepositoryResponse.java | Added mountOptions field with serialization annotation, getter and setter methods to expose mount options in API responses |
| server/src/main/java/com/cloud/api/ApiResponseHelper.java | Updated createBackupRepositoryResponse method to set mount options from the BackupRepository entity |
| api/src/main/java/org/apache/cloudstack/backup/BackupRepositoryService.java | Removed trailing blank line (formatting cleanup) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
72fd23e to
3aba1ce
Compare
|
@blueorangutan package |
|
@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. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 16225 |
Description
This PR add mountopts to backup repository response.
Fixes #12359
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Updated the mount options for the backup repository and re-open on the edit and update mount options again.
BEFORE CHANGES:
AFTER CHANGES:
How did you try to break this feature and the system with this change?