gpordeus opened a new pull request, #9265: URL: https://github.com/apache/cloudstack/pull/9265
### Description This PR allows selecting a target account (or project) during volume creation through the UI, using #8919's `OwnershipSelection`. ### 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) - [X] Enhancement (improves an existing feature and functionality) - [ ] Cleanup (Code refactoring and cleanup, that may add test cases) - [ ] build/CI ### Feature/Enhancement Scale or Bug Severity #### Feature/Enhancement Scale - [ ] Major - [X] Minor ### Screenshots (if appropriate):  ### How Has This Been Tested? **Environment with one domain (`dom`), besides `root`, and a domain admin and an user accounts in both `root` and `dom`, as well as the Root Admin. Every account created one project each.** Table lists all options shown in UI, when logged as each of the accounts: (User accounts did not show the selection fields Owner type, Domain and Account/Project. Neither did any of the projects.) | Logged in as | Listed domains | Listed accounts | Listed projects | | ------------- | ------------- | ------------- | ------------- | | ROOT Admin (`admin`) | - ROOT<br>- ROOT/dom | - admin, dadm, usr<br>- dom-adm, dom-usr | - admin-proj, dadm-proj, usr-proj<br>- dom-adm-proj, dom-usr-proj| | ROOT Domain Admin (`dadm`) | - ROOT<br>- ROOT/dom | - admin, dadm, usr<br>- dom-adm, dom-usr | - admin-proj, dadm-proj, usr-proj<br>- * | | ROOT User (`usr`) | --- | --- | --- | | ROOT/dom Domain Admin (`dom-adm`) | - ROOT/dom | - dom-adm, dom-usr | - dom-adm-proj, dom-usr-proj | | ROOT/dom User (`dom-usr`) | --- | --- | --- | #### Testing this, I found a bug on listProjects. A domain admin can't list a subdomain's projects, with `isrecursive` or not. I'm still working on the best way to go about it and will open a PR to fix it, but it's not ready yet. -- 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]
