-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Automatic Import] Fix deploy error after editing the pipeline #194203
Conversation
Pinging @elastic/security-scalability (Team:Security-Scalability) |
ff96ad3
to
e8c3282
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
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.
Could we also add a unit test for this? So we don't inadvertently break it again in the future
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
To update your PR or re-run it, just comment with: cc @bhapas |
Starting backport for target branches: 8.15, 8.x https://github.com/elastic/kibana/actions/runs/11058692252 |
…ic#194203) ## Release Note Fixes a bug that is causing the deploy step to fail after a pipeline edit/save. ## Summary elastic#190407 introduced a bug that deployment fails when a pipeline is edited and saved in the review step. The issue is that after the edit pipeline flow is executed the review step's result is overridden and `samplesFormat` is removed which if not present [the `useEffect` in Deploy step](https://github.com/elastic/kibana/blob/main/x-pack/plugins/integration_assistant/public/components/create_integration/create_integration_assistant/steps/deploy_step/use_deploy_integration.ts#L41) fails. This PR fixes the issue by saving the `samplesFormat` that is present in the original result before the edit pipeline flow is executed there by having samplesFormat in the result. (cherry picked from commit 6366dc3)
…ic#194203) ## Release Note Fixes a bug that is causing the deploy step to fail after a pipeline edit/save. ## Summary elastic#190407 introduced a bug that deployment fails when a pipeline is edited and saved in the review step. The issue is that after the edit pipeline flow is executed the review step's result is overridden and `samplesFormat` is removed which if not present [the `useEffect` in Deploy step](https://github.com/elastic/kibana/blob/main/x-pack/plugins/integration_assistant/public/components/create_integration/create_integration_assistant/steps/deploy_step/use_deploy_integration.ts#L41) fails. This PR fixes the issue by saving the `samplesFormat` that is present in the original result before the edit pipeline flow is executed there by having samplesFormat in the result. (cherry picked from commit 6366dc3)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…194203) (#194217) # Backport This will backport the following commits from `main` to `8.x`: - [[Automatic Import] Fix deploy error after editing the pipeline (#194203)](#194203) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Bharat Pasupula","email":"123897612+bhapas@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-09-26T19:09:38Z","message":"[Automatic Import] Fix deploy error after editing the pipeline (#194203)\n\n## Release Note\r\n\r\nFixes a bug that is causing the deploy step to fail after a pipeline\r\nedit/save.\r\n\r\n## Summary\r\n\r\n#190407 introduced a bug that deployment fails when a pipeline is edited\r\nand saved in the review step.\r\n\r\nThe issue is that after the edit pipeline flow is executed the review\r\nstep's result is overridden and `samplesFormat` is removed which if not\r\npresent [the `useEffect` in Deploy\r\nstep](https://github.com/elastic/kibana/blob/main/x-pack/plugins/integration_assistant/public/components/create_integration/create_integration_assistant/steps/deploy_step/use_deploy_integration.ts#L41)\r\nfails.\r\n\r\nThis PR fixes the issue by saving the `samplesFormat` that is present in\r\nthe original result before the edit pipeline flow is executed there by\r\nhaving samplesFormat in the result.","sha":"6366dc344a239a24c65f8c6c829a43353e0243d6","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","v9.0.0","backport:prev-major","Team:Security-Scalability","Feature:AutomaticImport"],"title":"[Automatic Import] Fix deploy error after editing the pipeline","number":194203,"url":"https://github.com/elastic/kibana/pull/194203","mergeCommit":{"message":"[Automatic Import] Fix deploy error after editing the pipeline (#194203)\n\n## Release Note\r\n\r\nFixes a bug that is causing the deploy step to fail after a pipeline\r\nedit/save.\r\n\r\n## Summary\r\n\r\n#190407 introduced a bug that deployment fails when a pipeline is edited\r\nand saved in the review step.\r\n\r\nThe issue is that after the edit pipeline flow is executed the review\r\nstep's result is overridden and `samplesFormat` is removed which if not\r\npresent [the `useEffect` in Deploy\r\nstep](https://github.com/elastic/kibana/blob/main/x-pack/plugins/integration_assistant/public/components/create_integration/create_integration_assistant/steps/deploy_step/use_deploy_integration.ts#L41)\r\nfails.\r\n\r\nThis PR fixes the issue by saving the `samplesFormat` that is present in\r\nthe original result before the edit pipeline flow is executed there by\r\nhaving samplesFormat in the result.","sha":"6366dc344a239a24c65f8c6c829a43353e0243d6"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194203","number":194203,"mergeCommit":{"message":"[Automatic Import] Fix deploy error after editing the pipeline (#194203)\n\n## Release Note\r\n\r\nFixes a bug that is causing the deploy step to fail after a pipeline\r\nedit/save.\r\n\r\n## Summary\r\n\r\n#190407 introduced a bug that deployment fails when a pipeline is edited\r\nand saved in the review step.\r\n\r\nThe issue is that after the edit pipeline flow is executed the review\r\nstep's result is overridden and `samplesFormat` is removed which if not\r\npresent [the `useEffect` in Deploy\r\nstep](https://github.com/elastic/kibana/blob/main/x-pack/plugins/integration_assistant/public/components/create_integration/create_integration_assistant/steps/deploy_step/use_deploy_integration.ts#L41)\r\nfails.\r\n\r\nThis PR fixes the issue by saving the `samplesFormat` that is present in\r\nthe original result before the edit pipeline flow is executed there by\r\nhaving samplesFormat in the result.","sha":"6366dc344a239a24c65f8c6c829a43353e0243d6"}}]}] BACKPORT--> Co-authored-by: Bharat Pasupula <123897612+bhapas@users.noreply.github.com>
…#194203) (#194216) # Backport This will backport the following commits from `main` to `8.15`: - [[Automatic Import] Fix deploy error after editing the pipeline (#194203)](#194203) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Bharat Pasupula","email":"123897612+bhapas@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-09-26T19:09:38Z","message":"[Automatic Import] Fix deploy error after editing the pipeline (#194203)\n\n## Release Note\r\n\r\nFixes a bug that is causing the deploy step to fail after a pipeline\r\nedit/save.\r\n\r\n## Summary\r\n\r\n#190407 introduced a bug that deployment fails when a pipeline is edited\r\nand saved in the review step.\r\n\r\nThe issue is that after the edit pipeline flow is executed the review\r\nstep's result is overridden and `samplesFormat` is removed which if not\r\npresent [the `useEffect` in Deploy\r\nstep](https://github.com/elastic/kibana/blob/main/x-pack/plugins/integration_assistant/public/components/create_integration/create_integration_assistant/steps/deploy_step/use_deploy_integration.ts#L41)\r\nfails.\r\n\r\nThis PR fixes the issue by saving the `samplesFormat` that is present in\r\nthe original result before the edit pipeline flow is executed there by\r\nhaving samplesFormat in the result.","sha":"6366dc344a239a24c65f8c6c829a43353e0243d6","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","v9.0.0","backport:prev-major","Team:Security-Scalability","Feature:AutomaticImport"],"title":"[Automatic Import] Fix deploy error after editing the pipeline","number":194203,"url":"https://github.com/elastic/kibana/pull/194203","mergeCommit":{"message":"[Automatic Import] Fix deploy error after editing the pipeline (#194203)\n\n## Release Note\r\n\r\nFixes a bug that is causing the deploy step to fail after a pipeline\r\nedit/save.\r\n\r\n## Summary\r\n\r\n#190407 introduced a bug that deployment fails when a pipeline is edited\r\nand saved in the review step.\r\n\r\nThe issue is that after the edit pipeline flow is executed the review\r\nstep's result is overridden and `samplesFormat` is removed which if not\r\npresent [the `useEffect` in Deploy\r\nstep](https://github.com/elastic/kibana/blob/main/x-pack/plugins/integration_assistant/public/components/create_integration/create_integration_assistant/steps/deploy_step/use_deploy_integration.ts#L41)\r\nfails.\r\n\r\nThis PR fixes the issue by saving the `samplesFormat` that is present in\r\nthe original result before the edit pipeline flow is executed there by\r\nhaving samplesFormat in the result.","sha":"6366dc344a239a24c65f8c6c829a43353e0243d6"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194203","number":194203,"mergeCommit":{"message":"[Automatic Import] Fix deploy error after editing the pipeline (#194203)\n\n## Release Note\r\n\r\nFixes a bug that is causing the deploy step to fail after a pipeline\r\nedit/save.\r\n\r\n## Summary\r\n\r\n#190407 introduced a bug that deployment fails when a pipeline is edited\r\nand saved in the review step.\r\n\r\nThe issue is that after the edit pipeline flow is executed the review\r\nstep's result is overridden and `samplesFormat` is removed which if not\r\npresent [the `useEffect` in Deploy\r\nstep](https://github.com/elastic/kibana/blob/main/x-pack/plugins/integration_assistant/public/components/create_integration/create_integration_assistant/steps/deploy_step/use_deploy_integration.ts#L41)\r\nfails.\r\n\r\nThis PR fixes the issue by saving the `samplesFormat` that is present in\r\nthe original result before the edit pipeline flow is executed there by\r\nhaving samplesFormat in the result.","sha":"6366dc344a239a24c65f8c6c829a43353e0243d6"}}]}] BACKPORT--> Co-authored-by: Bharat Pasupula <123897612+bhapas@users.noreply.github.com>
Release Note
Fixes a bug that is causing the deploy step to fail after a pipeline edit/save.
Summary
#190407 introduced a bug that deployment fails when a pipeline is edited and saved in the review step.
The issue is that after the edit pipeline flow is executed the review step's result is overridden and
samplesFormat
is removed which if not present theuseEffect
in Deploy step fails.This PR fixes the issue by saving the
samplesFormat
that is present in the original result before the edit pipeline flow is executed there by having samplesFormat in the result.