-
Notifications
You must be signed in to change notification settings - Fork 26
SRVKP-9338: Reset submit error on YAML editor changes #793
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
SRVKP-9338: Reset submit error on YAML editor changes #793
Conversation
|
@anwesha-palit-redhat: This pull request references SRVKP-9338 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.21.0" version, but no target version was set. 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 openshift-eng/jira-lifecycle-plugin repository. |
|
/cherrypick release-v1.21.x |
|
@anwesha-palit-redhat: once the present PR merges, I will cherry-pick it on top of 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-sigs/prow repository. |
|
@anwesha-palit-redhat: This pull request references SRVKP-9338 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.21.0" version, but no target version was set. 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 openshift-eng/jira-lifecycle-plugin repository. |
vikram-raj
left a comment
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
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: anwesha-palit-redhat, 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 |
|
/retest |
1 similar comment
|
/retest |
|
/retest-required |
442dbf9 to
e15d02e
Compare
|
/retest-required |
e15d02e to
670f9e5
Compare
|
/cherrypick release-v1.20.x |
|
@anwesha-palit-redhat: once the present PR merges, I will cherry-pick it on top of 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-sigs/prow repository. |
|
/cherrypick release-v1.19.x |
|
@anwesha-palit-redhat: once the present PR merges, I will cherry-pick it on top of 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-sigs/prow repository. |
|
/cherrypick release-v1.21.x |
|
@anwesha-palit-redhat: once the present PR merges, I will cherry-pick it on top of 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-sigs/prow repository. |
vikram-raj
left a comment
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
|
@anwesha-palit-redhat: new pull request created: #808 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-sigs/prow repository. |
|
@anwesha-palit-redhat: new pull request created: #809 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-sigs/prow repository. |
|
@anwesha-palit-redhat: new pull request created: #810 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-sigs/prow repository. |
Problem
When a user encounters a submit error (e.g., invalid YAML or API failure) in the Pipeline Builder's YAML editor, the error persists even after editing the YAML content. This keeps the submit button disabled and the error message visible until the user switches between Form and YAML views.
Solution
Added
handleOnChangecallback inCodeEditorField.tsxthat resetsstatus.submitErrorwhenever the YAML content changes. This provides immediate feedback and re-enables the submit button when users correct their YAML after an error.Changes
CodeEditorField.tsx:setStatusfrom Formik contexthandleOnChangecallback that clearssubmitErrorwhen YAML is editedonChangehandler with the new callbackTesting
Verify that:
Screen recording before fix
Issue_while_creating_YAML.mov
Screen recording after fix
after_fix_validation_issue.mov
AI assisted unit tests: Claude 4.5