From ed2aef4e103790eb830097db21fb23fd6e12d8fe Mon Sep 17 00:00:00 2001 From: sjaanus Date: Mon, 30 Dec 2024 11:09:20 +0200 Subject: [PATCH] Fix --- .../delta/client-feature-toggle-delta.ts | 6 ------ .../tests/client-feature-delta-api.e2e.test.ts | 1 - 2 files changed, 7 deletions(-) diff --git a/src/lib/features/client-feature-toggles/delta/client-feature-toggle-delta.ts b/src/lib/features/client-feature-toggles/delta/client-feature-toggle-delta.ts index 50f24e2b00ee..02a471e89b1b 100644 --- a/src/lib/features/client-feature-toggles/delta/client-feature-toggle-delta.ts +++ b/src/lib/features/client-feature-toggles/delta/client-feature-toggle-delta.ts @@ -161,7 +161,6 @@ export class ClientFeatureToggleDelta { const hasDelta = this.delta[environment] !== undefined; - if (!hasDelta) { await this.initEnvironmentDelta(environment); } @@ -171,11 +170,6 @@ export class ClientFeatureToggleDelta { } // TODO: 19.12 this logic seems to be not logical, when no revisionId is coming, it should not go to db, but take latest from cache - - console.log("ENVIRONMENT", environment); - console.log("DELTA CACHE", this.delta[environment]); - - // Should get the latest state if revision does not exist or if sdkRevision is not present // We should be able to do this without going to the database by merging revisions from the delta with // the base case diff --git a/src/lib/features/client-feature-toggles/tests/client-feature-delta-api.e2e.test.ts b/src/lib/features/client-feature-toggles/tests/client-feature-delta-api.e2e.test.ts index 76ada11ea48f..28b803425bb7 100644 --- a/src/lib/features/client-feature-toggles/tests/client-feature-delta-api.e2e.test.ts +++ b/src/lib/features/client-feature-toggles/tests/client-feature-delta-api.e2e.test.ts @@ -174,7 +174,6 @@ test('should get 304 if asked for latest revision', async () => { // @ts-ignore app.services.clientFeatureToggleService.clientFeatureToggleDelta.currentRevisionId = 14; - await app.request .set('If-None-Match', '14') .get('/api/client/delta')