Commit 2d59c84
authored
[ML] Reuse SourceDestValidator for data frame analytics (#50841)
This commit removes validation logic of source and dest indices
for data frame analytics and replaces it with using the common
`SourceDestValidator` class which is already used by transforms.
This way the validations and their messages become consistent
while we reduce code.
This means that where these validations fail the error messages
will be slightly different for data frame analytics.1 parent ce50e8e commit 2d59c84
File tree
18 files changed
+256
-385
lines changed- x-pack/plugin
- core/src
- main/java/org/elasticsearch/xpack/core
- common/validation
- ml
- action
- dataframe
- test/java/org/elasticsearch/xpack/core
- common/validation
- ml/dataframe
- ml
- qa/ml-with-security
- src
- main/java/org/elasticsearch/xpack/ml
- action
- dataframe
- test/java/org/elasticsearch/xpack/ml/dataframe
- src/test/resources/rest-api-spec/test/ml
- transform/src/main/java/org/elasticsearch/xpack/transform
- action
- utils
18 files changed
+256
-385
lines changedLines changed: 19 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
| |||
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
| 231 | + | |
243 | 232 | | |
244 | 233 | | |
245 | 234 | | |
| |||
299 | 288 | | |
300 | 289 | | |
301 | 290 | | |
| 291 | + | |
302 | 292 | | |
303 | | - | |
| 293 | + | |
304 | 294 | | |
305 | | - | |
| 295 | + | |
306 | 296 | | |
307 | 297 | | |
308 | 298 | | |
| |||
427 | 417 | | |
428 | 418 | | |
429 | 419 | | |
430 | | - | |
| 420 | + | |
431 | 421 | | |
432 | 422 | | |
433 | 423 | | |
434 | 424 | | |
435 | 425 | | |
436 | | - | |
| 426 | + | |
437 | 427 | | |
438 | 428 | | |
439 | 429 | | |
| |||
454 | 444 | | |
455 | 445 | | |
456 | 446 | | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
457 | 458 | | |
458 | 459 | | |
459 | 460 | | |
| |||
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| 95 | + | |
| 96 | + | |
93 | 97 | | |
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
97 | 114 | | |
98 | 115 | | |
99 | 116 | | |
100 | | - | |
| 117 | + | |
101 | 118 | | |
102 | 119 | | |
103 | 120 | | |
| |||
107 | 124 | | |
108 | 125 | | |
109 | 126 | | |
110 | | - | |
| 127 | + | |
111 | 128 | | |
112 | 129 | | |
113 | 130 | | |
| |||
Lines changed: 0 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | | - | |
21 | 19 | | |
22 | 20 | | |
23 | | - | |
24 | | - | |
25 | 21 | | |
26 | 22 | | |
27 | 23 | | |
| |||
94 | 90 | | |
95 | 91 | | |
96 | 92 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | 93 | | |
0 commit comments