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

   ### Description
   
   Currently, to add a user or account to a project through UI, a select input 
field is rendered, displaying the accounts and users that the caller has access 
to as options. As a result, users with an account of the `User` type are unable 
to add other accounts or users to a project, since they don't have access to 
other accounts or users and no options are available to be selected in the 
input field.
   
   This PR modifies the input field to allow users to both select from the 
available options and manually enter the account name or username they wish to 
add to the project.
   
   ---
   
   Fixes #9774
   
   ### 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)
   - [X] 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
   - [X] Minor
   
   #### Bug Severity
   
   - [ ] BLOCKER
   - [ ] Critical
   - [ ] Major
   - [X] Minor
   - [ ] Trivial
   
   
   ### Screenshots (if appropriate):
   
   #### Adding an account by selecting an option available in the dropdown
   
   
![image](https://github.com/user-attachments/assets/364ee224-fe4f-48da-a1ae-aa3e25c4bb8b)
   
   #### Adding a user by entering their username in the input field
   
![image](https://github.com/user-attachments/assets/574f79f1-8d67-49fd-8f2a-f2cb4109e061)
   
   ### How Has This Been Tested?
   
   1. I created a domain `d1`, a domain admin (`d1`) and two normal users 
(`u1-d1` and `u2-d1`) belonging to the domain.
   2. I created a project with the `d1` account.
   3. I verified that the `d1` account can select accounts and users of their 
domain to add them to the project.
   4. I added the `u1-d1` account to the project as an admin.
   5. I logged in with the `u1-d1` account, accessed the project and added the 
user `u2-d1` to the project.
   


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