From b8731fc82b8757855beac8d97fce4671bfa6646f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Tue, 19 May 2026 22:38:52 +0200 Subject: [PATCH] Remove unused DbRefreshStateRow import and logger declaration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) Signed-off-by: Fredrik Adelöw --- .../database/operations/stitcher/performStitching.test.ts | 2 -- .../src/database/operations/stitcher/performStitching.ts | 6 +----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/plugins/catalog-backend/src/database/operations/stitcher/performStitching.test.ts b/plugins/catalog-backend/src/database/operations/stitcher/performStitching.test.ts index 44c8a74cc4..9924f75b9d 100644 --- a/plugins/catalog-backend/src/database/operations/stitcher/performStitching.test.ts +++ b/plugins/catalog-backend/src/database/operations/stitcher/performStitching.test.ts @@ -315,8 +315,6 @@ it.each(databases.eachSupportedId())( describe.each(databases.eachSupportedId())( 'performStitching edge cases, %p', databaseId => { - const logger = mockServices.logger.mock(); - it('stitches when final_entities row already exists', async () => { const knex = await databases.init(databaseId); await applyDatabaseMigrations(knex); diff --git a/plugins/catalog-backend/src/database/operations/stitcher/performStitching.ts b/plugins/catalog-backend/src/database/operations/stitcher/performStitching.ts index 6929d3ca62..aa5572f4e6 100644 --- a/plugins/catalog-backend/src/database/operations/stitcher/performStitching.ts +++ b/plugins/catalog-backend/src/database/operations/stitcher/performStitching.ts @@ -26,11 +26,7 @@ import { SerializedError } from '@backstage/errors'; import { Knex } from 'knex'; import { createHash } from 'node:crypto'; import stableStringify from 'fast-json-stable-stringify'; -import { - DbFinalEntitiesRow, - DbRefreshStateRow, - DbStitchQueueRow, -} from '../../tables'; +import { DbFinalEntitiesRow, DbStitchQueueRow } from '../../tables'; import { buildEntitySearch } from './buildEntitySearch'; import { markDeferredStitchCompleted } from './markDeferredStitchCompleted'; import { syncSearchRows } from './syncSearchRows';