Skip to content

Conversation

@Tonitzpp
Copy link

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 the backup file 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.

<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

Copilot AI Nov 27, 2025

Choose a reason for hiding this comment

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

The fallback case on line 68 still displays volume.path instead of volume.uuid, which is inconsistent with the change on line 67. For consistency with the PR's goal of showing volume UUIDs instead of backup file storage UUIDs, this should also be changed to volume.uuid.

Suggested change
<span v-else>{{ volume.type }} - {{ volume.path }}</span> ({{ parseFloat(volume.size / (1024.0 * 1024.0 * 1024.0)).toFixed(1) }} GB)
<span v-else>{{ volume.type }} - {{ volume.uuid }}</span> ({{ parseFloat(volume.size / (1024.0 * 1024.0 * 1024.0)).toFixed(1) }} GB)
Suggested change
<span v-else>{{ volume.type }} - {{ volume.path }}</span> ({{ parseFloat(volume.size / (1024.0 * 1024.0 * 1024.0)).toFixed(1) }} GB)
<span v-else>{{ volume.type }} - {{ volume.uuid }}</span> ({{ parseFloat(volume.size / (1024.0 * 1024.0 * 1024.0)).toFixed(1) }} GB)

Copilot uses AI. Check for mistakes.
@codecov
Copy link

codecov bot commented Nov 27, 2025

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff             @@
##               main   #12156    +/-   ##
==========================================
  Coverage     17.56%   17.56%            
- Complexity    15540    15549     +9     
==========================================
  Files          5909     5913     +4     
  Lines        529059   529440   +381     
  Branches      64617    64670    +53     
==========================================
+ Hits          92919    93018    +99     
- Misses       425687   425964   +277     
- Partials      10453    10458     +5     
Flag Coverage Δ
uitests 3.58% <ø> (+<0.01%) ⬆️
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: "

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