Commit fb8c221
authored
Remove feature flag from influencing the serialisation (#119875)
When serialising the `IndicesOptions` we were using the helper method
`IndicesOptions#allowSelectors()` to retrieve the value of the flag
`allowSelector` from the `GatekeeperOptions`.
This helper method is taking into consideration the failure store
feature flag to ensure we will not allow selectors unless the feature
flag is enabled:
```
public boolean allowSelectors() {
return DataStream.isFailureStoreFeatureFlagEnabled() && gatekeeperOptions.allowSelectors();
}
```
This was tripping this test. In this case we do not want the feature
flag to influence the serialsation of the object. We only want it to be
used during index name expression resolution.
Fixes: #119862 Fixes: #119861 Fixes: #119860 Fixes: #119859 Fixes:
#119822 Fixes: #119821 Fixes: #119820 Fixes: #1198191 parent e64c8cf commit fb8c221
File tree
2 files changed
+4
-26
lines changed- server/src/main/java/org/elasticsearch/action/support
2 files changed
+4
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | 248 | | |
273 | 249 | | |
274 | 250 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
884 | 884 | | |
885 | 885 | | |
886 | 886 | | |
887 | | - | |
| 887 | + | |
| 888 | + | |
888 | 889 | | |
889 | 890 | | |
890 | 891 | | |
| |||
1464 | 1465 | | |
1465 | 1466 | | |
1466 | 1467 | | |
1467 | | - | |
| 1468 | + | |
| 1469 | + | |
1468 | 1470 | | |
1469 | 1471 | | |
1470 | 1472 | | |
0 commit comments