mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 15:17:30 -04:00
* [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:
parent
3bf295490a
commit
6405fea8e4
13 changed files with 188 additions and 63 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue