Skip to content

Commit

Permalink
7.8.2 -> 7.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwizp committed Sep 28, 2020
1 parent 97e2201 commit b0e1ac7
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,5 @@ const migrations700: SavedObjectMigrationFn<any, any> = (doc): DashboardDoc700To
export const dashboardSavedObjectTypeMigrations = {
'7.0.0': flow(migrations700),
'7.3.0': flow(migrations730),
'7.8.2': flow(migrateMatchAllQuery),
'7.9.3': flow(migrateMatchAllQuery),
};
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ import { DEFAULT_QUERY_LANGUAGE } from '../../../data/common';
* This migration script is related to:
* @link https://github.com/elastic/kibana/pull/62194
* @link https://github.com/elastic/kibana/pull/14644
* This is only a problem when you import an object from 5.x into 6.x but to be sure that all saved objects migrated that script was added into 7.8.2
* Important: migration scripts was moved from 6.7.2 -> 7.9.3
* This is only a problem when you import an object from 5.x into 6.x but to be sure that all saved objects migrated that script was added into 7.9.3
*/
export const migrateMatchAllQuery: SavedObjectMigrationFn<any, any> = (doc) => {
const searchSourceJSON = get(doc, 'attributes.kibanaSavedObjectMeta.searchSourceJSON');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ Object {
});
});

describe('7.8.2', () => {
const migrationFn = searchMigrations['7.8.2'];
describe('7.9.3', () => {
const migrationFn = searchMigrations['7.9.3'];

it('should migrate obsolete match_all query', () => {
const migratedDoc = migrationFn(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ import { DEFAULT_QUERY_LANGUAGE } from '../../../data/common';
* This migration script is related to:
* @link https://github.com/elastic/kibana/pull/62194
* @link https://github.com/elastic/kibana/pull/14644
* This is only a problem when you import an object from 5.x into 6.x but to be sure that all saved objects migrated that script was added into 7.8.2
* Important: migration scripts was moved from 6.7.2 -> 7.9.3
* This is only a problem when you import an object from 5.x into 6.x but to be sure that all saved objects migrated that script was added into 7.9.3
*/
const migrateMatchAllQuery: SavedObjectMigrationFn<any, any> = (doc) => {
const searchSourceJSON = get(doc, 'attributes.kibanaSavedObjectMeta.searchSourceJSON');
Expand Down Expand Up @@ -131,5 +132,5 @@ const migrateSearchSortToNestedArray: SavedObjectMigrationFn<any, any> = (doc) =
export const searchMigrations = {
'7.0.0': flow(setNewReferences),
'7.4.0': flow(migrateSearchSortToNestedArray),
'7.8.2': flow(migrateMatchAllQuery),
'7.9.3': flow(migrateMatchAllQuery),
};
Original file line number Diff line number Diff line change
Expand Up @@ -1461,8 +1461,8 @@ describe('migration visualization', () => {
});
});

describe('7.8.2', () => {
const migrationFn = visualizationSavedObjectTypeMigrations['7.8.2'];
describe('7.9.3', () => {
const migrationFn = visualizationSavedObjectTypeMigrations['7.9.3'];

it('should migrate obsolete match_all query', () => {
const migratedDoc = migrationFn(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,8 @@ const migrateTableSplits: SavedObjectMigrationFn<any, any> = (doc) => {
* This migration script is related to:
* @link https://github.com/elastic/kibana/pull/62194
* @link https://github.com/elastic/kibana/pull/14644
* This is only a problem when you import an object from 5.x into 6.x but to be sure that all saved objects migrated that script was added into 7.8.2
* Important: migration scripts was moved from 6.7.2 -> 7.9.3
* This is only a problem when you import an object from 5.x into 6.x but to be sure that all saved objects migrated that script was added into 7.9.3
*/
const migrateMatchAllQuery: SavedObjectMigrationFn<any, any> = (doc) => {
const searchSourceJSON = get(doc, 'attributes.kibanaSavedObjectMeta.searchSourceJSON');
Expand Down Expand Up @@ -788,6 +789,6 @@ export const visualizationSavedObjectTypeMigrations = {
'7.4.2': flow(transformSplitFiltersStringToQueryObject),
'7.7.0': flow(migrateOperatorKeyTypo, migrateSplitByChartRow),
'7.8.0': flow(migrateTsvbDefaultColorPalettes),
'7.8.2': flow(migrateMatchAllQuery),
'7.9.3': flow(migrateMatchAllQuery),
'7.10.0': flow(migrateFilterRatioQuery, removeTSVBSearchSource),
};

0 comments on commit b0e1ac7

Please sign in to comment.