Skip to content

ui: show project instance volumes in default view - #14158

Open
1fanwang wants to merge 2 commits into
apache:4.22from
1fanwang:1fannnw/fix-project-instance-volumes
Open

ui: show project instance volumes in default view#14158
1fanwang wants to merge 2 commits into
apache:4.22from
1fanwang:1fannnw/fix-project-instance-volumes

Conversation

@1fanwang

Copy link
Copy Markdown

Description

Opening a project instance from Default view shows an empty Volumes tab even though its disks exist. The tab now includes accessible project resources while keeping the instance ID filter, so the disks appear without switching projects.

Fixes: #14070

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):

The reproduction checks the rendered table rows; the layout is unchanged.

How Has This Been Tested?

The committed regression mounts Vue against a local HTTP fixture with CloudStack's project filtering. It exercises the API client, Axios project selection, and rendered rows without replacing those functions.

I also ran the mounted tab against CloudStack 4.22.1.0 with real MySQL and API-created instances on its Simulator hypervisor. The live reproduction and logs cover that run.

# Scenario Command Result
1 Project instance in Default view Command below, before fix Zero rendered rows
2 Same component after fix Same command Root and data disks
Raw logs

From ui; the test and its HTTP fixture are both in this diff:

npm run test:unit -- --runInBand --coverage=false --verbose tests/unit/components/view/VolumesTab.spec.js

Before:

    Expected length: 2
    Received length: 0
    Received array:  []

After:

    ✓ shows volume rows for project instance in Default view (40ms)
Tests:       8 passed, 8 total

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

I also selected a different project and exercised account and system VMs. Regression cases cover disk order and prefetched rows.

Fixes: apache#14070
Signed-off-by: 1fanwang <1fannnw@gmail.com>
Signed-off-by: 1fanwang <1fannnw@gmail.com>
@boring-cyborg

boring-cyborg Bot commented Sep 11, 2026

Copy link
Copy Markdown

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:

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.

1 participant