File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed
rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.get_index_template
server/src/main/java/org/elasticsearch/cluster/metadata Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change
1
+ pr : 105315
2
+ summary : Always show `composed_of` field for composable index templates
3
+ area : Indices APIs
4
+ type : bug
5
+ issues :
6
+ - 104627
Original file line number Diff line number Diff line change @@ -188,3 +188,16 @@ setup:
188
188
type : keyword
189
189
lifecycle :
190
190
data_retention : " 30d"
191
+
192
+ ---
193
+ " Get index template always shows composed_of " :
194
+ - skip :
195
+ version : " - 8.12.99"
196
+ reason : " A bug was fixed in 8.13.0 to make `composed_of` always returned"
197
+
198
+ - do :
199
+ indices.get_index_template :
200
+ name : test
201
+
202
+ - match : {index_templates.0.name: test}
203
+ - match : {index_templates.0.index_template.composed_of: []}
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ private ComposableIndexTemplate(
125
125
) {
126
126
this .indexPatterns = indexPatterns ;
127
127
this .template = template ;
128
- this .componentTemplates = componentTemplates ;
128
+ this .componentTemplates = componentTemplates == null ? List . of () : componentTemplates ;
129
129
this .priority = priority ;
130
130
this .version = version ;
131
131
this .metadata = metadata ;
You can’t perform that action at this time.
0 commit comments