From 3ea0c6cca183398d27b381d2c8692c44eec200b7 Mon Sep 17 00:00:00 2001 From: spalger Date: Wed, 7 Oct 2020 09:11:37 -0700 Subject: [PATCH 1/4] [es/mappings] remove doc_values from text fields --- src/plugins/dashboard/server/saved_objects/dashboard.ts | 8 ++++---- src/plugins/discover/server/saved_objects/search.ts | 2 +- .../visualizations/server/saved_objects/visualization.ts | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/plugins/dashboard/server/saved_objects/dashboard.ts b/src/plugins/dashboard/server/saved_objects/dashboard.ts index 850b2470dd475..ee15d7f2173b6 100644 --- a/src/plugins/dashboard/server/saved_objects/dashboard.ts +++ b/src/plugins/dashboard/server/saved_objects/dashboard.ts @@ -44,12 +44,12 @@ export const dashboardSavedObjectType: SavedObjectsType = { mappings: { properties: { description: { type: 'text' }, - hits: { type: 'integer', index: false, doc_values: false }, + hits: { type: 'integer', index: false }, kibanaSavedObjectMeta: { - properties: { searchSourceJSON: { type: 'text', index: false, doc_values: false } }, + properties: { searchSourceJSON: { type: 'text', index: false } }, }, - optionsJSON: { type: 'text', index: false, doc_values: false }, - panelsJSON: { type: 'text', index: false, doc_values: false }, + optionsJSON: { type: 'text', index: false }, + panelsJSON: { type: 'text', index: false }, refreshInterval: { properties: { display: { type: 'keyword', index: false, doc_values: false }, diff --git a/src/plugins/discover/server/saved_objects/search.ts b/src/plugins/discover/server/saved_objects/search.ts index c13550e543ab6..a6e42f956a025 100644 --- a/src/plugins/discover/server/saved_objects/search.ts +++ b/src/plugins/discover/server/saved_objects/search.ts @@ -48,7 +48,7 @@ export const searchSavedObjectType: SavedObjectsType = { hits: { type: 'integer', index: false, doc_values: false }, kibanaSavedObjectMeta: { properties: { - searchSourceJSON: { type: 'text', index: false, doc_values: false }, + searchSourceJSON: { type: 'text', index: false }, }, }, sort: { type: 'keyword', index: false, doc_values: false }, diff --git a/src/plugins/visualizations/server/saved_objects/visualization.ts b/src/plugins/visualizations/server/saved_objects/visualization.ts index ad7618a8640ba..5261b2cac7dcf 100644 --- a/src/plugins/visualizations/server/saved_objects/visualization.ts +++ b/src/plugins/visualizations/server/saved_objects/visualization.ts @@ -45,13 +45,13 @@ export const visualizationSavedObjectType: SavedObjectsType = { properties: { description: { type: 'text' }, kibanaSavedObjectMeta: { - properties: { searchSourceJSON: { type: 'text', index: false, doc_values: false } }, + properties: { searchSourceJSON: { type: 'text', index: false } }, }, savedSearchRefName: { type: 'keyword', index: false, doc_values: false }, title: { type: 'text' }, - uiStateJSON: { type: 'text', index: false, doc_values: false }, + uiStateJSON: { type: 'text', index: false }, version: { type: 'integer' }, - visState: { type: 'text', index: false, doc_values: false }, + visState: { type: 'text', index: false }, }, }, migrations: visualizationSavedObjectTypeMigrations, From b30ea965a706946aa7b6e28c0b6de2821b59ec63 Mon Sep 17 00:00:00 2001 From: spalger Date: Wed, 7 Oct 2020 09:19:14 -0700 Subject: [PATCH 2/4] don't remove from integer field --- src/plugins/dashboard/server/saved_objects/dashboard.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/dashboard/server/saved_objects/dashboard.ts b/src/plugins/dashboard/server/saved_objects/dashboard.ts index ee15d7f2173b6..a85f67f5ba56a 100644 --- a/src/plugins/dashboard/server/saved_objects/dashboard.ts +++ b/src/plugins/dashboard/server/saved_objects/dashboard.ts @@ -44,7 +44,7 @@ export const dashboardSavedObjectType: SavedObjectsType = { mappings: { properties: { description: { type: 'text' }, - hits: { type: 'integer', index: false }, + hits: { type: 'integer', index: false, doc_values: false }, kibanaSavedObjectMeta: { properties: { searchSourceJSON: { type: 'text', index: false } }, }, From dc2979b6bb1212a011ba03e627c977b17657ea9b Mon Sep 17 00:00:00 2001 From: spalger Date: Wed, 7 Oct 2020 09:20:21 -0700 Subject: [PATCH 3/4] run tests against unverified snapshot --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 3b68cde206573..7fa056f5b10c6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,7 @@ #!/bin/groovy +env.KBN_ES_SNAPSHOT_USE_UNVERIFIED = 'true' + library 'kibana-pipeline-library' kibanaLibrary.load() From 090a0e305ed22edc24ee7a873faa6e4954aed83b Mon Sep 17 00:00:00 2001 From: spalger Date: Wed, 7 Oct 2020 10:59:26 -0700 Subject: [PATCH 4/4] Revert "run tests against unverified snapshot" This reverts commit dc2979b6bb1212a011ba03e627c977b17657ea9b. --- Jenkinsfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7fa056f5b10c6..3b68cde206573 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,5 @@ #!/bin/groovy -env.KBN_ES_SNAPSHOT_USE_UNVERIFIED = 'true' - library 'kibana-pipeline-library' kibanaLibrary.load()