[streams][lifecycle] unwired inherit lifecycle#226487
[streams][lifecycle] unwired inherit lifecycle#226487klacabane merged 25 commits intoelastic:mainfrom
Conversation
| ); | ||
| } | ||
|
|
||
| export function getTemplateLifecycle( |
There was a problem hiding this comment.
@masseyke as discussed we look at the template to determine what is the fallback lifecycle configuration by a call to _simulate_index. Would love if you could have a look at the logic that figures out the configuration. Maybe it's better to check the unit tests:
There was a problem hiding this comment.
I agree that it smells a little to implement the template -> active lifecycle logic in Kibana, but I can't think of a better way.
There was a problem hiding this comment.
I just ran tests that were equivalent to your unit tests in elasticsearch, and got the same results that you're getting. So it looks correct to me.
|
Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs) |
flash1293
left a comment
There was a problem hiding this comment.
Tested and works as expected, LGMT (one small nit, but non-blocking).
| definition: Streams.WiredStream.Definition, | ||
| ancestors: Streams.WiredStream.Definition[] | ||
| ): WiredIngestStreamEffectiveLifecycle { | ||
| ): (IngestStreamLifecycleDSL | IngestStreamLifecycleILM) & { from: string } { |
There was a problem hiding this comment.
Shouldn't we change WiredIngestStreamEffectiveLifecycle to this type instead of inlining here? With this change, I can't see why we would still need the old WiredIngestStreamEffectiveLifecycle anymore
| ); | ||
| } | ||
|
|
||
| export function getTemplateLifecycle( |
There was a problem hiding this comment.
I agree that it smells a little to implement the template -> active lifecycle logic in Kibana, but I can't think of a better way.
⏳ Build in-progress, with failures
Failed CI StepsTest Failures
History
|
|
Starting backport for target branches: 9.1 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
## Summary Closes elastic#222440 Closes elastic#226059 `inherit` lifecycle will now remove any overrides set at the stream layer and revert back to the data stream's template configuration. I also took the opportunity to reduce the spinners overload on the lifecycle page when refreshing --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Joe Reuter <johannes.reuter@elastic.co> (cherry picked from commit 9a46967) # Conflicts: # x-pack/platform/plugins/shared/streams/server/lib/streams/state_management/streams/unwired_stream.ts
# Backport This will backport the following commits from `main` to `9.1`: - [[streams][lifecycle] unwired inherit lifecycle (#226487)](#226487) <!--- Backport version: 10.0.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Kevin Lacabane","email":"kevin.lacabane@elastic.co"},"sourceCommit":{"committedDate":"2025-07-09T11:59:58Z","message":"[streams][lifecycle] unwired inherit lifecycle (#226487)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/222440\nCloses https://github.com/elastic/kibana/issues/226059\n\n`inherit` lifecycle will now remove any overrides set at the stream\nlayer and revert back to the data stream's template configuration.\n\nI also took the opportunity to reduce the spinners overload on the\nlifecycle page when refreshing\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Joe Reuter <johannes.reuter@elastic.co>","sha":"9a469676e6d92031495b14951031d82730c03d7d","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:obs-ux-logs","backport:version","Feature:Streams","v9.1.0","v9.2.0"],"title":"[streams][lifecycle] unwired inherit lifecycle","number":226487,"url":"https://github.com/elastic/kibana/pull/226487","mergeCommit":{"message":"[streams][lifecycle] unwired inherit lifecycle (#226487)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/222440\nCloses https://github.com/elastic/kibana/issues/226059\n\n`inherit` lifecycle will now remove any overrides set at the stream\nlayer and revert back to the data stream's template configuration.\n\nI also took the opportunity to reduce the spinners overload on the\nlifecycle page when refreshing\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Joe Reuter <johannes.reuter@elastic.co>","sha":"9a469676e6d92031495b14951031d82730c03d7d"}},"sourceBranch":"main","suggestedTargetBranches":["9.1"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/226487","number":226487,"mergeCommit":{"message":"[streams][lifecycle] unwired inherit lifecycle (#226487)\n\n## Summary\n\nCloses https://github.com/elastic/kibana/issues/222440\nCloses https://github.com/elastic/kibana/issues/226059\n\n`inherit` lifecycle will now remove any overrides set at the stream\nlayer and revert back to the data stream's template configuration.\n\nI also took the opportunity to reduce the spinners overload on the\nlifecycle page when refreshing\n\n---------\n\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by: Joe Reuter <johannes.reuter@elastic.co>","sha":"9a469676e6d92031495b14951031d82730c03d7d"}}]}] BACKPORT-->
## Summary Closes elastic#222440 Closes elastic#226059 `inherit` lifecycle will now remove any overrides set at the stream layer and revert back to the data stream's template configuration. I also took the opportunity to reduce the spinners overload on the lifecycle page when refreshing --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Summary
Closes #222440
Closes #226059
inheritlifecycle will now remove any overrides set at the stream layer and revert back to the data stream's template configuration.I also took the opportunity to reduce the spinners overload on the lifecycle page when refreshing