mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Move migration utils into common/utils/
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
3958e613ec
commit
6620bb5340
@ -8,7 +8,6 @@ import { moveSync, removeSync } from "fs-extra";
|
|||||||
import directoryForUserDataInjectable from "../../../common/app-paths/directory-for-user-data/directory-for-user-data.injectable";
|
import directoryForUserDataInjectable from "../../../common/app-paths/directory-for-user-data/directory-for-user-data.injectable";
|
||||||
import { isDefined } from "../../../common/utils";
|
import { isDefined } from "../../../common/utils";
|
||||||
import joinPathsInjectable from "../../../common/path/join-paths.injectable";
|
import joinPathsInjectable from "../../../common/path/join-paths.injectable";
|
||||||
import { generateNewIdFor } from "../../../migrations/utils";
|
|
||||||
|
|
||||||
function mergePrometheusPreferences(left: ClusterPrometheusPreferences, right: ClusterPrometheusPreferences): ClusterPrometheusPreferences {
|
function mergePrometheusPreferences(left: ClusterPrometheusPreferences, right: ClusterPrometheusPreferences): ClusterPrometheusPreferences {
|
||||||
if (left.prometheus && left.prometheusProvider) {
|
if (left.prometheus && left.prometheusProvider) {
|
||||||
@ -78,6 +77,7 @@ function mergeClusterModel(prev: ClusterModel, right: Omit<ClusterModel, "id">):
|
|||||||
import { getInjectable } from "@ogre-tools/injectable";
|
import { getInjectable } from "@ogre-tools/injectable";
|
||||||
import loggerInjectable from "../../../common/logger.injectable";
|
import loggerInjectable from "../../../common/logger.injectable";
|
||||||
import { clusterStoreMigrationInjectionToken } from "../../../common/cluster-store/migration-token";
|
import { clusterStoreMigrationInjectionToken } from "../../../common/cluster-store/migration-token";
|
||||||
|
import { generateNewIdFor } from "../../../common/utils/generate-new-id-for";
|
||||||
|
|
||||||
const v500Beta13ClusterStoreMigrationInjectable = getInjectable({
|
const v500Beta13ClusterStoreMigrationInjectable = getInjectable({
|
||||||
id: "v5.0.0-beta.13-cluster-store-migration",
|
id: "v5.0.0-beta.13-cluster-store-migration",
|
||||||
|
|||||||
@ -7,7 +7,6 @@ import * as uuid from "uuid";
|
|||||||
import type { ClusterStoreModel } from "../../../common/cluster-store/cluster-store";
|
import type { ClusterStoreModel } from "../../../common/cluster-store/cluster-store";
|
||||||
import type { Hotbar, HotbarItem } from "../../../common/hotbars/types";
|
import type { Hotbar, HotbarItem } from "../../../common/hotbars/types";
|
||||||
import { defaultHotbarCells, getEmptyHotbar } from "../../../common/hotbars/types";
|
import { defaultHotbarCells, getEmptyHotbar } from "../../../common/hotbars/types";
|
||||||
import { generateNewIdFor } from "../../../migrations/utils";
|
|
||||||
import { getLegacyGlobalDiForExtensionApi } from "../../../extensions/as-legacy-globals-for-extension-api/legacy-global-di-for-extension-api";
|
import { getLegacyGlobalDiForExtensionApi } from "../../../extensions/as-legacy-globals-for-extension-api/legacy-global-di-for-extension-api";
|
||||||
import directoryForUserDataInjectable from "../../../common/app-paths/directory-for-user-data/directory-for-user-data.injectable";
|
import directoryForUserDataInjectable from "../../../common/app-paths/directory-for-user-data/directory-for-user-data.injectable";
|
||||||
import catalogCatalogEntityInjectable from "../../../common/catalog-entities/general-catalog-entities/implementations/catalog-catalog-entity.injectable";
|
import catalogCatalogEntityInjectable from "../../../common/catalog-entities/general-catalog-entities/implementations/catalog-catalog-entity.injectable";
|
||||||
@ -17,6 +16,7 @@ import { getInjectable } from "@ogre-tools/injectable";
|
|||||||
import { hotbarStoreMigrationInjectionToken } from "../../../common/hotbars/migrations-token";
|
import { hotbarStoreMigrationInjectionToken } from "../../../common/hotbars/migrations-token";
|
||||||
import readJsonSyncInjectable from "../../../common/fs/read-json-sync.injectable";
|
import readJsonSyncInjectable from "../../../common/fs/read-json-sync.injectable";
|
||||||
import loggerInjectable from "../../../common/logger.injectable";
|
import loggerInjectable from "../../../common/logger.injectable";
|
||||||
|
import { generateNewIdFor } from "../../../common/utils/generate-new-id-for";
|
||||||
|
|
||||||
interface Pre500WorkspaceStoreModel {
|
interface Pre500WorkspaceStoreModel {
|
||||||
workspaces: {
|
workspaces: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user