Skip to content

Commit

Permalink
Speed up spaces tests by letting v2 migrations do less work (elastic#…
Browse files Browse the repository at this point in the history
…91829)

* Don't mess with v2 migration's index

* Speed up spaces tests by letting v2 migrations do less work

* Add disabled mapping for spaces so that plugin can be disabled

* Add security as codeowners of xpack saved object api integration suite
# Conflicts:
#	.github/CODEOWNERS
#	packages/kbn-es-archiver/src/lib/indices/kibana_index.ts
#	x-pack/test/functional/es_archives/saved_objects_management/spaces_integration/mappings.json
#	x-pack/test/saved_object_api_integration/common/fixtures/es_archiver/saved_objects/spaces/mappings.json
  • Loading branch information
rudolf committed Mar 17, 2021
1 parent 657bff3 commit 62c3c2f
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1,174 deletions.
15 changes: 0 additions & 15 deletions packages/kbn-es-archiver/src/lib/indices/kibana_index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,6 @@ export async function migrateKibanaIndex({
client: Client;
kbnClient: KbnClient;
}) {
// we allow dynamic mappings on the index, as some interceptors are accessing documents before
// the migration is actually performed. The migrator will put the value back to `strict` after migration.
await client.indices.putMapping(
{
index: '.kibana',
body: {
dynamic: true,
},
},
{
ignore: [404],
headers: ES_CLIENT_HEADERS,
}
);

await kbnClient.savedObjects.migrate();
}

Expand Down
Loading

0 comments on commit 62c3c2f

Please sign in to comment.