dheeraj12347 opened a new pull request, #14008:
URL: https://github.com/apache/cloudstack/pull/14008

   ## Description
   
   Fix network selection for project-scoped unmanaged instance imports.
   
   When importing an unmanaged instance from a project scope, the network 
selection component was not receiving the project ID. As a result, 
`listNetworks` could fall back to account/domain-based filtering instead of 
retrieving networks for the selected project.
   
   This change passes the project ID to `MultiNetworkSelection` and uses it 
when fetching networks.
   
   ### Changes
   
   * Pass `form.projectid` from `ImportUnmanagedInstance.vue` to 
`MultiNetworkSelection`.
   * Add `projectid` as an optional prop to `MultiNetworkSelection`.
   * Refresh the available networks when the project ID changes.
   * Use `projectid` for the `listNetworks` API request when a project scope is 
selected.
   * Preserve the existing `domainid` + `account` behavior when no project ID 
is provided.
   * Add unit tests covering project-scoped and account/domain-scoped network 
requests and project changes.
   
   ### Testing
   
   * `git diff --check` passes.
   * Added unit coverage for the new project-scoped network filtering behavior.
   * Full UI unit-test execution could not be run locally because the UI 
dependencies are not installed in the current environment.
   
   ### Related
   
   Fixes the project-scoped network selection issue during unmanaged instance 
import.
   


-- 
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]

Reply via email to