[maps] bump saved object reference migration version to 7.2.0 (#36772) (#36792)

This commit is contained in:
Nathan Reese 2019-05-23 10:09:13 -06:00 committed by GitHub
parent 1cf5d827e2
commit 5338f6c358
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 7 deletions

View file

@ -8,7 +8,7 @@ import { extractReferences } from './common/migrations/references';
export const migrations = {
'map': {
'7.1.0': (doc) => {
'7.2.0': (doc) => {
const { attributes, references } = extractReferences(doc);
return {

View file

@ -47,7 +47,7 @@ export const getEcommerceSavedObjects = () => {
}
],
'migrationVersion': {
'map': '7.1.0'
'map': '7.2.0'
},
'attributes': {
'title': i18n.translate('xpack.maps.sampleData.ecommerceSpec.mapsTitle', {

View file

@ -32,7 +32,7 @@ export const getFlightsSavedObjects = () => {
}
],
'migrationVersion': {
'map': '7.1.0'
'map': '7.2.0'
},
'attributes': {
'title': i18n.translate('xpack.maps.sampleData.flightaSpec.mapsTitle', {

View file

@ -32,7 +32,7 @@ export const getWebLogsSavedObjects = () => {
}
],
'migrationVersion': {
'map': '7.1.0'
'map': '7.2.0'
},
'attributes': {
'title': i18n.translate('xpack.maps.sampleData.flightaSpec.logsTitle', {

View file

@ -12,7 +12,7 @@ export default function ({ getService }) {
describe('migrations', () => {
it('should apply saved object reference migration when importing map saved objects prior to 7.1.0', async () => {
it('should apply saved object reference migration when importing map saved objects prior to 7.2.0', async () => {
const resp = await supertest
.post(`/api/saved_objects/map`)
.set('kbn-xsrf', 'kibana')
@ -42,7 +42,7 @@ export default function ({ getService }) {
type: 'index-pattern'
}
]);
expect(resp.body.migrationVersion).to.eql({ map: '7.1.0' });
expect(resp.body.migrationVersion).to.eql({ map: '7.2.0' });
expect(resp.body.attributes.layerListJSON.includes('indexPatternRefName')).to.be(true);
});
});

View file

@ -191,7 +191,7 @@
}
],
"migrationVersion" : {
"map" : "7.1.0"
"map" : "7.2.0"
}
}
}