mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[maps] bump saved object reference migration version to 7.2.0 (#36772)
This commit is contained in:
parent
3815f7a98d
commit
1fad462ca8
6 changed files with 7 additions and 7 deletions
|
@ -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 {
|
||||
|
|
|
@ -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', {
|
||||
|
|
|
@ -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', {
|
||||
|
|
|
@ -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', {
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -191,7 +191,7 @@
|
|||
}
|
||||
],
|
||||
"migrationVersion" : {
|
||||
"map" : "7.1.0"
|
||||
"map" : "7.2.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue