Skip to content

Commit

Permalink
Store latest model versions in _meta
Browse files Browse the repository at this point in the history
  • Loading branch information
gsoldevila committed Mar 25, 2024
1 parent 257d4a1 commit f6b6eb0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import type {
SavedObjectsRawDoc,
} from '@kbn/core-saved-objects-server';
import {
getLatestMappingsVirtualVersionMap,
getVirtualVersionMap,
type IndexMappingMeta,
type IndexTypesMap,
type MigrationResult,
Expand Down Expand Up @@ -119,7 +119,7 @@ export const runV2Migration = async (options: RunV2MigrationOpts): Promise<Migra
indicesWithRelocatingTypes.forEach((index) => migratorIndices.add(index));

// we will store model versions instead of hashes (to be FIPS compliant)
const appVersions = getLatestMappingsVirtualVersionMap(options.typeRegistry.getAllTypes());
const appVersions = getVirtualVersionMap(options.typeRegistry.getAllTypes());

const migrators = Array.from(migratorIndices).map((indexName, i) => {
return {
Expand Down

0 comments on commit f6b6eb0

Please sign in to comment.