Skip to content

Conversation

@Tonitzpp
Copy link

@Tonitzpp Tonitzpp commented Nov 27, 2025

Description

When accessing the details of a backup in the UI, all the volumes that are part of the backup are listed. However, the listing displays a UUID that does not identify the volume, but it's path in the storage, which can cause confusion for users. This PR changed the listing details to display the UUID of the volumes.

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

Screenshots (if appropriate):

Backup volumes before changes:

Volume path:
image

Backup volume:
image

Backup volumes after changes:

Volume path:
image

Backup volume:
image

How Has This Been Tested?

I created a VM to perform the tests and assigned it a backup offering. After that I created a backup and verified that the volumes UUID had been changed to their respective UUID in the backup details.

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

@boring-cyborg
Copy link

boring-cyborg bot commented Nov 27, 2025

Congratulations on your first Pull Request and welcome to the Apache CloudStack community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md)
Here are some useful points:

@DaanHoogland DaanHoogland requested review from abh1sar and Copilot and removed request for Copilot November 27, 2025 14:33
Copilot finished reviewing on behalf of DaanHoogland November 27, 2025 14:34
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 updates the backup details page to display volume UUIDs instead of backup file storage UUIDs, improving clarity for users when viewing backup volume information.

Key Changes:

  • Modified the volume display in the backup details to show the volume UUID instead of the volume path

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

@codecov
Copy link

codecov bot commented Nov 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 17.57%. Comparing base (a50de02) to head (861028e).
⚠️ Report is 53 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #12156      +/-   ##
============================================
+ Coverage     17.56%   17.57%   +0.01%     
- Complexity    15540    15549       +9     
============================================
  Files          5909     5913       +4     
  Lines        529059   529508     +449     
  Branches      64617    64702      +85     
============================================
+ Hits          92919    93061     +142     
- Misses       425687   425991     +304     
- Partials      10453    10456       +3     
Flag Coverage Δ
uitests 3.69% <ø> (+0.11%) ⬆️
unittests 18.63% <ø> (+<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.

@abh1sar
Copy link
Collaborator

abh1sar commented Dec 1, 2025

IMO simply replacing path with uuid might cause more confusion for people who are used to it.
And displaying just uuid is not useful for someone who wants to look at the backup file on storage. One can still go to the volume and get the uuid by clicking on the volume in backup details.

If the confusion is about what the string represents, can we prefix it with "path: "

<div v-for="(volume, idx) in JSON.parse(dataResource[item])" :key="idx">
<router-link v-if="!dataResource['vmbackupofferingremoved']" :to="{ path: '/volume/' + volume.uuid }">{{ volume.type }} - {{ volume.path }}</router-link>
<router-link v-if="!dataResource['vmbackupofferingremoved']" :to="{ path: '/volume/' + volume.uuid }">{{ volume.type }} - {{ volume.uuid }}</router-link>
<span v-else>{{ volume.type }} - {{ volume.path }}</span> ({{ parseFloat(volume.size / (1024.0 * 1024.0 * 1024.0)).toFixed(1) }} GB)
Copy link
Member

Choose a reason for hiding this comment

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

@Tonitzpp, what happens when the workflow reaches the v-else statement (line 68)? Should volume.path be displayed then?

@Tonitzpp
Copy link
Author

Tonitzpp commented Dec 8, 2025

@abh1sar the path displayed in the GUI is not the backup file path, but the volume path. Furthermore, end users do not have access to the storage to "check the files"; thus, this information is not very valuable to them. On the other hand, displaying the volume UUID is much more useful, as it facilitates API usage.

@DaanHoogland
Copy link
Contributor

this change should not cause regressions in GHA

@DaanHoogland
Copy link
Contributor

retrying

@DaanHoogland DaanHoogland reopened this Dec 8, 2025
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