Repository navigation
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #14255 +/- ##
============================================
+ Coverage 20.73% 20.77% +0.04%
- Complexity 20781 20847 +66
============================================
Files 6049 6054 +5
Lines 547783 548224 +441
Branches 77899 73229 -4670
============================================
+ Hits 113572 113888 +316
- Misses 420893 420995 +102
- Partials 13318 13341 +23
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
I forgot to change the test, so I will leave this one as draft for a bit before I can fix it. |
|
@rajiv-jain-netapp, thanks for the reviews! I made the following changes to this PR: Implemented null check for offerings, Changed how the backup path is stored in the response map and improved the test cases. For the backup path map, thank you for pointing out about the same volume name replacement scenario. I changed the map to now use the volume UUID as key. Also, I created a new structure for the map value that stores the volume name and its image storage path as attributes. Regarding the usage of storage data for the response, as the only value stored by For the tests, I extracted the
|
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
6 open issues
The PR is marked as non-breaking, but changing a public interface method signature is a… · New This view selectsv.name/v.uuidbut does not aggregate them or include them inGROUP BY. On… · NewObject.values(dataResource[item])will throw ifdataResource.backuppathsisnull/undefined… · New This class is used as a nested API response type but doesn’t include CloudStack-style response… · NewcreateBackupResponseis called in a loop forlistBackups, and this adds a DAO call per backup… · New Grammar nit: the description reads \"The backups paths\"; it should be \"The backup paths\" (or… · New
Review effort: Lite
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
12 open issues
dataResource[item]can benullfor non-Root Admin users (per the intended behavior on the API… · NewObject.values(dataResource[item])will throw ifdataResource.backuppathsisnull/undefined… This view selectsv.name/v.uuidbut does not aggregate them or include them inGROUP BY. On… The PR is marked as non-breaking, but changing a public interface method signature is a… Changing the interface method signature is a source/binary breaking change for any out-of-tree… · New This view now selectsv.nameandv.uuidwhile grouping by onlyb.id, nbsr.volume_id.… · New WhenlistBackupsreturns many results for a Root Admin on KBOSS, this adds a per-backup DAO call… · NewcreateBackupResponseis called in a loop forlistBackups, and this adds a DAO call per backup… This class is used as a nested API response type but doesn’t include CloudStack-style response… The description has a grammatical error: change “The backups paths” to “The backup paths”. · New Using the array index as the Vuekeycan cause incorrect re-rendering if the object entries… · New Grammar nit: the description reads \"The backups paths\"; it should be \"The backup paths\" (or…
Review effort: Lite
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |



Description
Currently, the backup's path in the secondary storage is not displayed in the GUI, being necessary to query it directly from the database. Therefore, the
backuppathsattribute, with the path of the backup of each VM's disk was added to thelistBackupsAPI response, and to the backup details in the GUI. Only Root Admin accounts are allowed to view the backup paths in the GUI and in the API response. Currently only supported byKBOSSprovider.Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Screenshots (if appropriate):
Backup paths in the GUI
How Has This Been Tested?
I configured KBOSS as the backup provider, and created a new backup of an existing VM. Then, I accessed the backup's details tab and validated that the new field was added successfully. I also validated that the
backuppathsattribute was present at thelistBackupsAPI response.