Fixed the issue with modify user. Removed validation for tenant #574
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
/kind bug fix
What this PR does / why we need it:
This PR fixes the issue of user unable to submit the modify user form.
The same form is used for create and modify user, using a conditional check to display the fields.
In the modify user form the tenant field is not shown but the validation of
required
was still applied. This rendered the form always invalid, even if all the fields in the modify form were correctly filled.When the user clicks on modify, the
required
validation on tenant is not needed as the user cannot change the tenant.The
required
validation is now removed and the user is now able to update and submit the modify user form.Which issue(s) this PR fixes:
Fixes #565 #361
Test Report Added?:
/kind TESTED
Test Report:
![modify-user-1](https://user-images.githubusercontent.com/19162717/113756070-9e984080-972e-11eb-8ff8-d02625b78f91.png)
![modify-user-2](https://user-images.githubusercontent.com/19162717/113756080-a0fa9a80-972e-11eb-9db0-423a85e01723.png)
![modify-user-3](https://user-images.githubusercontent.com/19162717/113756084-a22bc780-972e-11eb-9883-6d072e24e930.png)
![modify-user-4](https://user-images.githubusercontent.com/19162717/113756087-a2c45e00-972e-11eb-9f95-dba702991840.png)
![modify-user-5](https://user-images.githubusercontent.com/19162717/113756093-a3f58b00-972e-11eb-9dfd-ab3bd8279901.png)
Special notes for your reviewer: