Skip to content

Commit

Permalink
change wizard doc version to 2; change migration version to 2.3.0
Browse files Browse the repository at this point in the history
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
  • Loading branch information
abbyhu2000 committed Sep 2, 2022
1 parent 5dbbd1e commit c5089e6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,14 @@ export const getTopNavConfig = (
visualizationState,
styleState,
saveDisabledReason,
dispatch
dispatch,
}: TopNavConfigParams,
{ history, toastNotifications, i18n: { Context: I18nContext }, data: { indexPatterns } }: WizardServices
{
history,
toastNotifications,
i18n: { Context: I18nContext },
data: { indexPatterns },
}: WizardServices
) => {
const topNavConfig: TopNavMenuData[] = [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function createSavedWizardVisClass(services: SavedObjectOpenSearchDashboa
description: '',
visualizationState: '{}',
styleState: '{}',
version: 1,
version: 2,
},
});
this.showInRecentlyAccessed = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ const migrateIndexPattern: SavedObjectMigrationFn<any, any> = (doc) => {
};

export const wizardSavedObjectTypeMigrations = {
'3.0.0': flow(migrateIndexPattern),
'2.3.0': flow(migrateIndexPattern),
};

0 comments on commit c5089e6

Please sign in to comment.