1fanwang opened a new pull request, #14158: URL: https://github.com/apache/cloudstack/pull/14158
### 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: https://github.com/apache/cloudstack/issues/14070 ### Types of changes - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] New feature (non-breaking change which adds functionality) - [x] 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 - [x] 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](https://gist.github.com/73c9a09f40ae15eae5f29a5c5957d28b) 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 | <details><summary>Raw logs</summary> From `ui`; the test and its HTTP fixture are both in this diff: ```sh npm run test:unit -- --runInBand --coverage=false --verbose tests/unit/components/view/VolumesTab.spec.js ``` Before: ```text Expected length: 2 Received length: 0 Received array: [] ``` After: ```text ✓ shows volume rows for project instance in Default view (40ms) Tests: 8 passed, 8 total ``` </details> #### 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. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
