-
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
[Fleet] Delete non existing streams in overrideInputs #116998
[Fleet] Delete non existing streams in overrideInputs #116998
Conversation
Pinging @elastic/fleet (Team:Fleet) |
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: cc @nchaulet |
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.
🚀
@@ -1111,7 +1112,9 @@ export function overridePackageInputs( | |||
} | |||
|
|||
if (override.vars) { | |||
originalInput = deepMergeVars(originalInput, override) as NewPackagePolicyInput; | |||
const indexOfInput = inputs.indexOf(originalInput); |
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.
Ahh I see the issue. Nasty bug - thank you for tracking it down. We were mutating this object but never actually replacing it in the original array. Good catch!
) Co-authored-by: Nicolas Chaulet <[email protected]>
) Co-authored-by: Nicolas Chaulet <[email protected]>
Summary
Closes #116985
When you try to upgrade from 7.12 to 7.16 you get that error
That error is here because we do not delete datastreams that do not exists anymore in the auto upgrade feature, that PR should change that.