chore: remove 1-19 upgrade commands and navigation menu item feature flags (#19083)
## Summary - Deletes the entire `1-19` upgrade version command directory (7 files, ~1500 lines) and removes all references from the upgrade module and command runner. - Removes `IS_NAVIGATION_MENU_ITEM_ENABLED` and `IS_NAVIGATION_MENU_ITEM_EDITING_ENABLED` feature flags from the enum, seed data, generated schema files, and test mocks. These flags had no remaining feature-gated code — navigation menu items are now always enabled.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { Injectable, Logger } from '@nestjs/common';
|
||||
|
||||
import { InjectCacheStorage } from 'src/engine/core-modules/cache-storage/decorators/cache-storage.decorator';
|
||||
import { CacheStorageNamespace } from 'src/engine/core-modules/cache-storage/types/cache-storage-namespace.enum';
|
||||
@@ -12,6 +12,8 @@ export type CacheLockOptions = {
|
||||
|
||||
@Injectable()
|
||||
export class CacheLockService {
|
||||
private readonly logger = new Logger(CacheLockService.name);
|
||||
|
||||
constructor(
|
||||
@InjectCacheStorage(CacheStorageNamespace.EngineLock)
|
||||
private readonly cacheStorageService: CacheStorageService,
|
||||
@@ -35,7 +37,13 @@ export class CacheLockService {
|
||||
try {
|
||||
return await fn();
|
||||
} finally {
|
||||
await this.cacheStorageService.releaseLock(key);
|
||||
try {
|
||||
await this.cacheStorageService.releaseLock(key);
|
||||
} catch (releaseError) {
|
||||
this.logger.warn(
|
||||
`Failed to release lock for key "${key}": ${releaseError}`,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user