Skip to content

Commit

Permalink
Make maps share-capable (elastic#116221)
Browse files Browse the repository at this point in the history
  • Loading branch information
jportner authored Oct 26, 2021
1 parent fd659b7 commit 8ce1c1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion x-pack/plugins/maps/server/saved_objects/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down
2 changes: 1 addition & 1 deletion x-pack/test/api_integration/apis/maps/migrations.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});
Expand Down

0 comments on commit 8ce1c1f

Please sign in to comment.