You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "shwstppr (via GitHub)" <gi...@apache.org> on 2025/05/08 07:55:20 UTC
[I] ui: deploy form fetches data twice [cloudstack]
shwstppr opened a new issue, #10832:
URL: https://github.com/apache/cloudstack/issues/10832
### problem
When accessing the "Deploy VM" wizard (and potentially other forms), most data is fetched twice. This appears to be caused by the OwnershipSelection component, which resets and re-fetches data upon creation. As a result, redundant API calls are triggered, impacting performance and potentially user experience.
Added the following logs to check,
```
diff --git a/ui/src/views/compute/DeployVM.vue b/ui/src/views/compute/DeployVM.vue
index c6b6842bb6..d0eeff36c3 100644
--- a/ui/src/views/compute/DeployVM.vue
+++ b/ui/src/views/compute/DeployVM.vue
@@ -1723,6 +1723,7 @@ export default {
})
},
async fetchData () {
+ console.log(new Date().toLocaleString(), 'T3st - fetching data')
const zones = await this.fetchZoneByQuery()
if (zones && zones.length === 1) {
this.selectedZone = zones[0]
@@ -2327,6 +2328,7 @@ export default {
this.owner.domainid = null
this.owner.projectid = OwnerOptions.selectedProject
}
+ console.log(new Date().toLocaleString(), 'T3st - resetting data')
this.resetData()
},
fetchZones (zoneId, listZoneAllow) {
```
https://github.com/user-attachments/assets/c5ec9c0c-3e6e-4fb8-9d0f-4d713d032155
### versions
4.20, maybe others which have ownership selection UI
### The steps to reproduce the bug
1. Open deploy vm wizard
2. Check many list APIs being called twice
### What to do about it?
Do not reset data on initial creation of the components
--
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: commits-unsubscribe@cloudstack.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] ui: deploy form fetches data twice [cloudstack]
Posted by "Pearl1594 (via GitHub)" <gi...@apache.org>.
Pearl1594 closed issue #10832: ui: deploy form fetches data twice
URL: https://github.com/apache/cloudstack/issues/10832
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] ui: deploy form fetches data twice [cloudstack]
Posted by "Pearl1594 (via GitHub)" <gi...@apache.org>.
Pearl1594 commented on issue #10832:
URL: https://github.com/apache/cloudstack/issues/10832#issuecomment-3760695504
Fixed with: https://github.com/apache/cloudstack/pull/11705
--
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: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org