Skip to content

Always show composed_of field for composable index templates #105315

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

Merged
merged 6 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/changelog/105315.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pr: 105315
summary: Always show `composed_of` field for composable index templates
area: Indices APIs
type: bug
issues:
- 104627
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,16 @@ setup:
type: keyword
lifecycle:
data_retention: "30d"

---
"Get index template always shows composed_of":
- skip:
version: " - 8.12.99"
reason: "A bug was fixed in 8.13.0 to make `composed_of` always returned"

- do:
indices.get_index_template:
name: test

- match: {index_templates.0.name: test}
- match: {index_templates.0.index_template.composed_of: []}
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private ComposableIndexTemplate(
) {
this.indexPatterns = indexPatterns;
this.template = template;
this.componentTemplates = componentTemplates;
this.componentTemplates = componentTemplates == null ? List.of() : componentTemplates;
this.priority = priority;
this.version = version;
this.metadata = metadata;
Expand Down