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
Improve secret hostname hint #6873
Conversation
/kind bug |
@jerolimov , The Server URL annotation's value can be |
@karthikjeeyar You're absolute right here. We need to make a difference here between http and ssh. I updated this PR (incl the PR description and gif). Wdyt about this change now? (I didn't tested the dockerconfig way and are not sure if https:// is correct in that case.) |
@jerolimov Thank you for improving the hint based on the Authentication type, this is very useful to the user, but however i have a suggestion to reorder the @bgliwa01 Let us know your thought on this. |
@karthikjeeyar Yes, I see this exactly like you. From the code perspective it looks a little bit strange, but I think also this would improve the UX. I reordered the components to get a better feeling for the result: @karthikjeeyar @bgliwa01 Wdyt? I removed the subtitle "Designate provider to be authenticated" because I was unsure where we want keep it. But I can restore it again if you want this. |
Btw, if the tekton Authentication at Run Time doc contains all cases we also should (in this ticket, or in a new one..) hide some combinations here:
/cc @andrewballantyne @vdemeester wdyt? Should I create a new ticket for this or solve this here as well? |
frontend/packages/dev-console/src/components/pipelines/modals/common/SecretAnnotation.tsx
Outdated
Show resolved
Hide resolved
Right, I think it make sense to hide thoses |
@christianvogt @vdemeester @karthikjeeyar @andrewballantyne Updated the PR with your feedback,
Btw, should we rename Docker registry to Image registry?!? |
@bgliwa01 Thanks for bringing this up in the weekly pipeline sync. Added the following changes now:
|
/retest |
Thanks @jerolimov |
/retest |
/retest |
frontend/packages/pipelines-plugin/src/components/pipelines/modals/common/SecretForm.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/pipelines-plugin/src/components/pipelines/modals/common/SecretForm.tsx
Outdated
Show resolved
Hide resolved
Thanks @vikram-raj, I added the missing translation namespace. |
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.
verified it. Thanks @jerolimov
/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.
Forgot to hit a review on Friday. @jerolimov You still have the same issue that I noted in my description to Brigid. If you switch the type or access-to it does not reset the value of the Server URL... which could be easily overlooked that the hint changed.
So you want that we clear the server URL or change them as well? Yeah its maybe the safest way. We could also apply some additional form validation rules here. But let us start with the easiest solution (resetting it)?! Will do that. |
Right, the easiest thing is for us to clear (reset back to default) items below the changed field... that way the user is mentally required to re-address those values. I think you'll probably also want to reset the field back to untouched(?) because Formik won't understand what we are doing and will flag the field against the validation schema -- which says "string not empty"... and errors it because we just emptied it haha. I don't think this noise is needed for the user. |
@andrewballantyne @vikram-raj @bgliwa01 I added the following change so that the "Server URL" was now cleared when
|
/retest |
/retest |
/test backend |
Thanks @jerolimov, Verified locally, works fine |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andrewballantyne, bgliwa01, jerolimov, karthikjeeyar, vikram-raj The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes:
https://issues.redhat.com/browse/ODC-4906
Analysis / Root cause:
When starting a pipeline there is an option to add a
Secret
to fetch data from a private git repository. The hint here suggest a server name like "https://github.com", but the pipeline/secret combination works only when the server name is something like "github.com".Solution Description:
Update the hint from static
The base server url (e.g. https://github.com)
to a dynamic version which is now depending on the selected auth mechanism:For docker config json:
The base server url (e.g. https://quay.io/)
(new example server)For http basic auth:
The base server url (e.g. https://github.com)
(unchanged)For SSH:
Server hostname without schema or path (e.g. github.com)
Edit: After getting some feedback in this PR, this PR now also changes the order of the input fields to show depending fields below the more generic options.
It also hides some useless "Access To" and "Authentication Type" combinations:
See #6873 (comment) and #6873 (comment)
Screen shots / Gifs for design review:
@openshift/team-devconsole-ux
Before:
After:
And some more detail screens:
Access to options in now above the auth type
Docker registry auth type options:
Docker registry with basic auth selected:
Docker registry with Image Registry selected:
Git server auth type options:
Git server with basic auth selected:
Git server with SSH Key selected:
Unit test coverage report:
No unit test changed.
Test setup:
Browser conformance: