Commit fac9bb4
authored
Remove support for types field in watcher search (elastic#120748)
In 8.x, setting the `input.search.request.types` field in the payload
when creating a watcher to an empty array was allowed, although it
resulted in a deprecation warning and had no effect (and any value
other than an empty array would result in an error).
In 9.x, support for this field is entirely removed, and the empty
array will also result in an error.
We have already introduced a script to be run as part of the upgrade
which removes the field from existing watches in
elastic#120371.
This also removes an unrelated TODO in passing, because we are not
going to do that (the functionality it refers to exists and is not
deprecated so cannot be removed).
ES-9747 #close #comment Types in search request removed in elastic#1207481 parent 969cd70 commit fac9bb4
File tree
3 files changed
+21
-18
lines changed- docs/changelog
- x-pack/plugin/watcher/src
- main/java/org/elasticsearch/xpack/watcher/support/search
- test/java/org/elasticsearch/xpack/watcher/support/search
3 files changed
+21
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
Lines changed: 0 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
173 | 172 | | |
174 | 173 | | |
175 | 174 | | |
176 | | - | |
177 | 175 | | |
178 | 176 | | |
179 | 177 | | |
| |||
196 | 194 | | |
197 | 195 | | |
198 | 196 | | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | 197 | | |
211 | 198 | | |
212 | 199 | | |
| |||
289 | 276 | | |
290 | 277 | | |
291 | 278 | | |
292 | | - | |
293 | 279 | | |
294 | 280 | | |
295 | 281 | | |
| |||
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
55 | | - | |
56 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
77 | | - | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
0 commit comments