[7.16][Transform] Improve transform upgrader (#79601) (#79700)

* [Transform] Improve transform upgrader (#79601)

This changes fixes some issues with the upgrader. It inlines the index name resolver as wildcard
deletes are not supported if action.destructive_requires_name is set to true(default). It changes
response to always return all counters in order to avoid an empty response. After documentation has
been created, it switches the deprecation URL to the upgrade API docs.

* change url to 7.16 specific one

* fix 7.x specific test

* fix put mapping call
This commit is contained in:
Hendrik Muhs 2021-10-25 13:49:08 +02:00 committed by GitHub
parent 3bf295490a
commit 6405fea8e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 188 additions and 63 deletions

View file

@ -37,15 +37,9 @@ public class UpgradeTransformsResponseTests extends ESTestCase {
private static void toXContent(UpgradeTransformsResponse response, XContentBuilder builder) throws IOException {
builder.startObject();
if (response.getUpdated() != 0) {
builder.field("updated", response.getUpdated());
}
if (response.getNoAction() != 0) {
builder.field("no_action", response.getNoAction());
}
if (response.getNeedsUpdate() != 0) {
builder.field("needs_update", response.getNeedsUpdate());
}
builder.field("updated", response.getUpdated());
builder.field("no_action", response.getNoAction());
builder.field("needs_update", response.getNeedsUpdate());
builder.endObject();
}