-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[UI] Add option to select owner of volume when creating it #9265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9265 +/- ##
========================================
- Coverage 4.19% 4.18% -0.01%
========================================
Files 369 369
Lines 30233 30297 +64
Branches 5343 5365 +22
========================================
Hits 1269 1269
- Misses 28820 28884 +64
Partials 144 144
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
@DaanHoogland a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
|
@gpordeus two concerns |
|
Hi, @DaanHoogland , thanks for checking this out.
The offerings not found is a regression that happened on 4.19 (version of QA environment), where calling
Just admins, it uses the same verification as #8919. |
DaanHoogland
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm
winterhazel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Manually tested in a local lab running on 4.20. Everything seems to be working as intended.
My environment had the following domains, accounts and projects:
- ROOT: admin (root admin), pr (project)
- ROOT/d1: d1 (domain admin), u1 (user), pd1 (project)
- ROOT/d2: d2 (domain admin), pd2 (project)
I did the following tests:
- I logged into every admin account and verified that the ownership selection only showed accounts they had access to. I created the volume and verified they were created for the chosen account.
- I logged into account u1 and verified that the ownership selection did not get shown. I created the volume and verified that it was created for account u1.
- I verified that the ownership selection was not shown for projects. I created the volume and verified that it was created for the project.

Description
This PR allows selecting a target account (or project) during volume creation through the UI, using #8919's
OwnershipSelection.Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Screenshots (if appropriate):
How Has This Been Tested?
Environment with one domain (
dom), besidesroot, and a domain admin and an user accounts in bothrootanddom, 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.)
admin)- ROOT/dom
- dom-adm, dom-usr
- dom-adm-proj, dom-usr-proj
dadm)- ROOT/dom
- dom-adm, dom-usr
- *
usr)dom-adm)dom-usr)Testing this, I found a bug on listProjects. A domain admin can't list a subdomain's projects, with
isrecursiveor 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.