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
Bug 1909790: fix pipeline yaml edit flow #7618
Bug 1909790: fix pipeline yaml edit flow #7618
Conversation
/kind bug |
@debsmita1: This pull request references Bugzilla bug 1909790, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
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. |
if (!pipeline.metadata?.namespace) { | ||
pipeline.metadata.namespace = ns; |
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.
I think we should keep the namespace
check, or it would cause ODC-5251 to appear again.
eaab40c
to
230fdee
Compare
230fdee
to
1e06cfb
Compare
1e06cfb
to
f9fed27
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.
/lgtm
@debsmita1: This pull request references Bugzilla bug 1909790, which is valid. 3 validation(s) were run on this bug
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. |
1 similar comment
@debsmita1: This pull request references Bugzilla bug 1909790, which is valid. 3 validation(s) were run on this bug
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. |
/assign @andrewballantyne |
/assign |
@@ -49,6 +50,13 @@ const PipelineBuilderPage: React.FC<PipelineBuilderPageProps> = (props) => { | |||
if (values.editorType === EditorType.YAML) { | |||
try { | |||
pipeline = safeLoad(values.yamlData); | |||
pipeline = |
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.
Just curious, why can't we do something similar to how edit-yaml component handles updates?
@debsmita1 The problem here is in |
/lgtm cancel |
f9fed27
to
e4ea066
Compare
Thanks @debsmita1 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andrewballantyne, debsmita1, karthikjeeyar, rottencandy 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 |
@debsmita1: The following test failed, say
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. |
/retest Please review the full test history for this PR and help us cut down flakes. |
@debsmita1: All pull requests linked via external trackers have merged: Bugzilla bug 1909790 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/ODC-5270
Analysis / Root cause:
The new pipeline obj has no resourceVersion property
Solution Description:
Merged the new pipeline and existing pipeline objects
GIF:
Unit test coverage report:
Browser conformance: