diff --git a/plugins/catalog-backend/migrations/20210622104022_refresh_state_location_key.js b/plugins/catalog-backend/migrations/20210622104022_refresh_state_location_key.js index ca90bf9074..37ab5e12cb 100644 --- a/plugins/catalog-backend/migrations/20210622104022_refresh_state_location_key.js +++ b/plugins/catalog-backend/migrations/20210622104022_refresh_state_location_key.js @@ -27,7 +27,6 @@ exports.up = async function up(knex) { .comment( 'An opaque key that uniquely identifies the location of an entity in order to support conflict resolution', ); - // table.index(['location_key'], 'refresh_state_location_key_idx'); }); }; @@ -37,6 +36,5 @@ exports.up = async function up(knex) { exports.down = async function down(knex) { await knex.schema.alterTable('refresh_state', table => { table.dropColumn('location_key'); - // table.dropIndex([], 'refresh_state_location_key_idx'); }); }; diff --git a/plugins/catalog-backend/src/next/DefaultLocationService.test.ts b/plugins/catalog-backend/src/next/DefaultLocationService.test.ts index ae2c4e9a20..f965ec3077 100644 --- a/plugins/catalog-backend/src/next/DefaultLocationService.test.ts +++ b/plugins/catalog-backend/src/next/DefaultLocationService.test.ts @@ -48,11 +48,14 @@ describe('DefaultLocationServiceTest', () => { }, deferredEntities: [ { - apiVersion: 'backstage.io/v1alpha1', - kind: 'Component', - metadata: { - name: 'bar', + entity: { + apiVersion: 'backstage.io/v1alpha1', + kind: 'Component', + metadata: { + name: 'bar', + }, }, + locationKey: 'file:///tmp/mock.yaml', }, ], relations: [], diff --git a/plugins/catalog-backend/src/next/DefaultLocationService.ts b/plugins/catalog-backend/src/next/DefaultLocationService.ts index 70679a3bd6..2820ba14b1 100644 --- a/plugins/catalog-backend/src/next/DefaultLocationService.ts +++ b/plugins/catalog-backend/src/next/DefaultLocationService.ts @@ -92,7 +92,6 @@ export class DefaultLocationService implements LocationService { }); if (processed.ok) { - // todo unprocessedEntities.push(...processed.deferredEntities); entities.push(processed.completedEntity); } else {