Skip to content

Commit

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

* Speed up spaces tests by letting v2 migrations do less work (#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

* Fix backport for ES _types

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
rudolf and kibanamachine authored Mar 19, 2021
1 parent cb8e30b commit 92e7cf6
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 1,167 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
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
},
"type": "space",
"updated_at": "2017-09-21T18:49:16.270Z"
},
"type": "doc"
}
}
}

Expand All @@ -28,16 +27,14 @@
},
"type": "space",
"updated_at": "2017-09-21T18:49:16.270Z"
},
"type": "doc"
}
}
}

{
"type": "doc",
"value": {
"index": ".kibana",
"type": "doc",
"id": "index-pattern:logstash-*",
"source": {
"index-pattern": {
Expand All @@ -58,7 +55,6 @@
"type": "doc",
"value": {
"index": ".kibana",
"type": "doc",
"id": "space_1:visualization:75c3e060-1e7c-11e9-8488-65449e65d0ed",
"source": {
"visualization": {
Expand All @@ -82,7 +78,6 @@
"type": "doc",
"value": {
"index": ".kibana",
"type": "doc",
"id": "config:6.0.0",
"source": {
"config": {
Expand Down
Loading

0 comments on commit 92e7cf6

Please sign in to comment.