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
#	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 9b1a579 commit 9d80ad4
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1,173 deletions.
14 changes: 0 additions & 14 deletions packages/kbn-es-archiver/src/lib/indices/kibana_index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,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],
}
);

await kbnClient.savedObjects.migrate();
}

Expand Down
Loading

0 comments on commit 9d80ad4

Please sign in to comment.