-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix oVirt provider url help text field #744
Conversation
cc:// @RichardHoch @anarnold97 |
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.
LGTM code wise, waiting for docs approval
...ift-console-plugin/src/modules/Providers/views/create/components/OvirtProviderCreateForm.tsx
Outdated
Show resolved
Hide resolved
f772489
to
0e4d109
Compare
packages/forklift-console-plugin/locales/en/plugin__forklift-console-plugin.json
Outdated
Show resolved
Hide resolved
packages/forklift-console-plugin/locales/en/plugin__forklift-console-plugin.json
Outdated
Show resolved
Hide resolved
packages/forklift-console-plugin/locales/en/plugin__forklift-console-plugin.json
Outdated
Show resolved
Hide resolved
...ift-console-plugin/src/modules/Providers/views/create/components/OvirtProviderCreateForm.tsx
Outdated
Show resolved
Hide resolved
...ift-console-plugin/src/modules/Providers/views/create/components/OvirtProviderCreateForm.tsx
Outdated
Show resolved
Hide resolved
...ift-console-plugin/src/modules/Providers/views/create/components/OvirtProviderCreateForm.tsx
Outdated
Show resolved
Hide resolved
0e4d109
to
c91d18f
Compare
@RichardHoch @ahadas your suggested changes were applied, please review |
c91d18f
to
93426a2
Compare
As a followup for kubev2v#732, fix the oVirt provider's URL help text as follows: 1. Rephrase the error, warning and successful/initial text messages to be aligned with the documnetation, other providers fields and Patternfly error msg recommendations. 2. Set a url input ended with a "/" (i.e. "ovirt-engine/api/") as a valid url since it's mentioned on docs as valid and it's a common used case. 3. Fix a bug in which the waring text message string (helperTextMsgs.warning) is never displayed in the UI (the color is set to yellow to indicate the warning field validation state, but the text message was not changed accordingly). Signed-off-by: Sharon Gratch <sgratch@redhat.com>
93426a2
to
d8be031
Compare
Kudos, SonarCloud Quality Gate passed!
|
@@ -391,6 +390,7 @@ | |||
"URL must start with https:// or http:// and contain valid hostname and path": "URL must start with https:// or http:// and contain valid hostname and path", | |||
"URL of the provider": "URL of the provider", | |||
"URL of the provider, leave empty to use this providers URL": "URL of the provider, leave empty to use this providers URL", | |||
"URL of the Red Hat Virtualization Manager (RHVM) API endpoint. Ensure the URL includes the \"/ovirt-engine/api\" path. for example: https://rhv-host-example.com/ovirt-engine/api": "URL of the Red Hat Virtualization Manager (RHVM) API endpoint. Ensure the URL includes the \"/ovirt-engine/api\" path. for example: https://rhv-host-example.com/ovirt-engine/api", | |||
"User ID": "User ID", |
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.
@sgratch Should be "For example:..."
'Warning: The provided URL does not end with the RHVM API endpoint path: "ovirt-engine/api". Ensure the URL includes the correct path. For example: https://rhv-host-example.com/ovirt-engine/api', | ||
), | ||
success: t( | ||
'URL of the Red Hat Virtualization Manager (RHVM) API endpoint. Ensure the URL includes the "/ovirt-engine/api" path. for example: https://rhv-host-example.com/ovirt-engine/api', |
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.
@sgratch Should be "For example:..."
@sgratch hi, can you make a PR for @RichardHoch suggestions above ^^ ? |
Done: #749 |
Reference: #646
As a followup for #732, fix the oVirt provider's URL help text as follows:
Rephrase the error, warning and successful/initial text messages to be aligned with the documnetation, other providers fields and Patternfly error msg recommendations.
Set a URL input ended with a "/" (i.e. "ovirt-engine/api/") as a valid url since it's mentioned on docs as valid and it's a common used case.
Fix a bug in which the warning text message string (helperTextMsgs.warning) is never displayed in the UI (the color is set to yellow to indicate the warning field validation state, but the text message was not changed accordingly).
Before the fix, the warning text was the same as the successful text:
After the fix, the warning text is displayed: