Make maps share-capable (#116221)

This commit is contained in:
Joe Portner 2021-10-25 23:39:05 -04:00 committed by GitHub
parent fd659b762f
commit 8ce1c1f9bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -13,7 +13,8 @@ import { savedObjectMigrations } from './saved_object_migrations';
export const mapSavedObjects: SavedObjectsType = {
name: 'map',
hidden: false,
namespaceType: 'single',
namespaceType: 'multiple-isolated',
convertToMultiNamespaceTypeVersion: '8.0.0',
mappings: {
properties: {
description: { type: 'text' },

View file

@ -44,7 +44,7 @@ export default function ({ getService }) {
type: 'index-pattern',
},
]);
expect(resp.body.migrationVersion).to.eql({ map: '7.14.0' });
expect(resp.body.migrationVersion).to.eql({ map: '8.0.0' }); // migrtionVersion is derived from both "migrations" and "convertToMultiNamespaceVersion" fields when the object is registered
expect(resp.body.attributes.layerListJSON.includes('indexPatternRefName')).to.be(true);
});
});