-
Notifications
You must be signed in to change notification settings - Fork 28
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
[MTV-1794] Update provider vCenter validation #1523
[MTV-1794] Update provider vCenter validation #1523
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #1523 +/- ##
==========================================
- Coverage 36.81% 36.22% -0.59%
==========================================
Files 158 157 -1
Lines 2548 2595 +47
Branches 599 632 +33
==========================================
+ Hits 938 940 +2
- Misses 1428 1461 +33
- Partials 182 194 +12 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
/lgtm |
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.
@jpuzz0 please see comment below
I suggest removing the urlMatchesCertFqdn
ui validation and leave only the following validation:
f (isValidIpAddress) {
return {
type: 'warning',
msg: 'The URL is not a fully qualified domain name (FQDN). If the certificate does not match the URL, the connection might fail.',
};
...console-plugin/src/modules/Providers/utils/validators/provider/vsphere/validateVCenterURL.ts
Outdated
Show resolved
Hide resolved
eff8697
to
2f37dfb
Compare
2f37dfb
to
96e1e9e
Compare
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.
@jpuzz0
Thanks for removing the error. Please check the following comments:
- Still need to handle the edit URL for vcenter verification since currently when editing a URL of an existing vcenter insecure provider, the warning of "The URL is not a fully qualified domain name (FQDN)..." is initially displayed:
Screencast.from.2025-03-18.16-12-35.webm
- Consider rephrasing the warning text to something like:
"The URL is not a fully qualified domain name (FQDN). If the certificate is not skipped and does not match the URL, the connection might fail. "
@RichardHoch can you please advice?
...forklift-console-plugin/src/modules/Providers/utils/validators/provider/providerValidator.ts
Show resolved
Hide resolved
...e-plugin/src/modules/Providers/utils/validators/provider/vsphere/vsphereProviderValidator.ts
Show resolved
Hide resolved
packages/forklift-console-plugin/src/modules/Providers/views/create/components/EditProvider.tsx
Show resolved
Hide resolved
...t-console-plugin/src/modules/Providers/views/create/components/VCenterProviderCreateForm.tsx
Show resolved
Hide resolved
CC:// @RichardHoch @anarnold97 |
@sgratch I've updated the text to your suggestion and updated the edit validation. |
54ba538
to
6b29fb8
Compare
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.
All issues mentioned above were addresses.
I see that something seems broken with the VSphereEditURLModal
url field validation for the vcenter end point. The validation text message is not re-rendered as required and the initial value is also wrong (note that the text message flickers once opening the modal):
Before this fix:
Screencast.from.2025-03-19.12-07-59.webm
After this fix:
Screencast.from.2025-03-19.12-09-20.webm
@sgratch The flickering is due to us now having to fetch the secret to make this validation check - since it depends on whether the connection is marked as secure or not. I will make the request happen on page entry versus modal open to prevent this. Otherwise, I noticed there was an issue with how I was passing down the input value for URL, so the rest should be fixed here as well. |
0e9e35a
to
f7e7e85
Compare
Signed-off-by: Jeff Puzzo <[email protected]>
f7e7e85
to
d0d9e67
Compare
|
📝 Links
https://issues.redhat.com/browse/MTV-1794
📝 Description
Address feedback related to this comment: https://issues.redhat.com/browse/MTV-1794?focusedId=26727397&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-26727397
🎥 Demo
Screen.Recording.2025-03-12.at.1.29.19.PM.mov