From 7a9d2238c6dd0e90ae4b32a982abb1b7d099e253 Mon Sep 17 00:00:00 2001 From: Rhys Howell Date: Fri, 13 Dec 2024 19:55:10 -0500 Subject: [PATCH] fixup: remove unused dep and log --- packages/compass-e2e-tests/helpers/test-runner-context.ts | 5 +---- packages/compass-generative-ai/src/atlas-ai-service.ts | 2 +- .../src/compass-web-preferences-access.ts | 3 +-- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/compass-e2e-tests/helpers/test-runner-context.ts b/packages/compass-e2e-tests/helpers/test-runner-context.ts index 77e710aca8c..4c7281e5298 100644 --- a/packages/compass-e2e-tests/helpers/test-runner-context.ts +++ b/packages/compass-e2e-tests/helpers/test-runner-context.ts @@ -9,10 +9,7 @@ import { hideBin } from 'yargs/helpers'; import Debug from 'debug'; import fs from 'fs'; import { getAtlasCloudSandboxDefaultConnections } from './compass-web-sandbox'; -import { - E2E_TEST_ATLAS_PREFERENCES_OVERRIDE_PORT, - startPreferencesOverrideServer, -} from './atlas-ai-preferences-override'; +import { E2E_TEST_ATLAS_PREFERENCES_OVERRIDE_PORT } from './atlas-ai-preferences-override'; const debug = Debug('compass-e2e-tests:context'); diff --git a/packages/compass-generative-ai/src/atlas-ai-service.ts b/packages/compass-generative-ai/src/atlas-ai-service.ts index 848d538267f..10faed0f5aa 100644 --- a/packages/compass-generative-ai/src/atlas-ai-service.ts +++ b/packages/compass-generative-ai/src/atlas-ai-service.ts @@ -340,7 +340,7 @@ export class AtlasAiService { this.logger.log.info( this.logger.mongoLogId(1_001_000_300), 'AtlasAIService', - `Fetched if the AI feature is enabled ${process.env.E2E_TEST_ATLAS_PREFERENCES_OVERRIDE_PORT}`, + 'Fetched if the AI feature is enabled', { enabled: isAIFeatureEnabled, featureResponse, diff --git a/packages/compass-preferences-model/src/compass-web-preferences-access.ts b/packages/compass-preferences-model/src/compass-web-preferences-access.ts index 0b9aa960c94..46f0bb88d9f 100644 --- a/packages/compass-preferences-model/src/compass-web-preferences-access.ts +++ b/packages/compass-preferences-model/src/compass-web-preferences-access.ts @@ -17,8 +17,7 @@ export class CompassWebPreferencesAccess implements PreferencesAccess { savePreferences(_attributes: Partial) { if ( process.env.E2E_TEST_ATLAS_PREFERENCES_OVERRIDE_PORT !== undefined && - process.env.E2E_TEST_ATLAS_PREFERENCES_OVERRIDE_PORT !== 'false' && - Object.keys(_attributes).length === 4 + process.env.E2E_TEST_ATLAS_PREFERENCES_OVERRIDE_PORT !== 'false' ) { return Promise.resolve(this._preferences.savePreferences(_attributes)); }