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
OCPBUGS-9214: Create button is disabled in Git Import form when git repo url has hyphens in owner part of the url #12652
OCPBUGS-9214: Create button is disabled in Git Import form when git repo url has hyphens in owner part of the url #12652
Conversation
@lokanandaprabhu: This pull request references Jira Issue OCPBUGS-9214, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/cc |
/test e2e-gcp-console |
@@ -1,7 +1,7 @@ | |||
import { TFunction } from 'i18next'; | |||
import * as yup from 'yup'; | |||
|
|||
export const nameRegex = /^[a-z]([a-z0-9]-?)*[a-z0-9]$/; | |||
export const nameRegex = /^[a-z](?!.*--)[a-z0-9-]*[a-z0-9]$/; |
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.
Please update the unit tests related to this change to make clear which cases doesn't work before and which you want or don't want to allow any more.
The old allowed already
adsf-asdf
asdf-asdf-asdf
but not
adsf--asdf
asdf--asdf--asdf
And this might be one of the issues. Two dashes are allowed!
But your negative lookahead looks like you want to deny that.
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.
/jira refresh |
@jerolimov: This pull request references Jira Issue OCPBUGS-9214, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
4cc33e5
to
4ce11b5
Compare
/hold |
ca90c86
to
0021c3c
Compare
@lokanandaprabhu: This pull request references Jira Issue OCPBUGS-9214, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
0021c3c
to
7a2337d
Compare
@lokanandaprabhu: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/unhold |
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.
Tested different git and container import pages, as well as the pipeline builder and helm imports. Works as expected.
Some helm charts doesn't install successfully when using a name like "4dotnet" and the Helm chart uses the name to create a Service. But this depends on the helm chart and couldn't be handled in our form.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jerolimov, lokanandaprabhu 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 |
@lokanandaprabhu: Jira Issue OCPBUGS-9214: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-9214 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Fixes:
https://issues.redhat.com/browse/OCPBUGS-9214
Analysis / Root cause:
hyphen in the 2nd character of the name was not allowed due to regular expression check
Solution Description:
Allowed to add hyphen in the 2nd character of the name
Name -
Should contain only letter(a-z) or number(0-9) as first character
Should contain only letter(a-z) or number(0-9) as last character
Should contain only letter(a-z) or number(0-9) or hyphens(-) or dots(.) in between
Should not contain 2 dots consecutively
Screen shots / Gifs for design review:
-------Before-----
-------After----
Unit test coverage report:
NA
Test setup:
/app
in the context dir under advanced git options.Browser conformance: