Skip to content

Commit 7a9d223

Browse files
committed
fixup: remove unused dep and log
1 parent abed7c7 commit 7a9d223

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

packages/compass-e2e-tests/helpers/test-runner-context.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ import { hideBin } from 'yargs/helpers';
99
import Debug from 'debug';
1010
import fs from 'fs';
1111
import { getAtlasCloudSandboxDefaultConnections } from './compass-web-sandbox';
12-
import {
13-
E2E_TEST_ATLAS_PREFERENCES_OVERRIDE_PORT,
14-
startPreferencesOverrideServer,
15-
} from './atlas-ai-preferences-override';
12+
import { E2E_TEST_ATLAS_PREFERENCES_OVERRIDE_PORT } from './atlas-ai-preferences-override';
1613

1714
const debug = Debug('compass-e2e-tests:context');
1815

packages/compass-generative-ai/src/atlas-ai-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ export class AtlasAiService {
340340
this.logger.log.info(
341341
this.logger.mongoLogId(1_001_000_300),
342342
'AtlasAIService',
343-
`Fetched if the AI feature is enabled ${process.env.E2E_TEST_ATLAS_PREFERENCES_OVERRIDE_PORT}`,
343+
'Fetched if the AI feature is enabled',
344344
{
345345
enabled: isAIFeatureEnabled,
346346
featureResponse,

packages/compass-preferences-model/src/compass-web-preferences-access.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ export class CompassWebPreferencesAccess implements PreferencesAccess {
1717
savePreferences(_attributes: Partial<UserPreferences>) {
1818
if (
1919
process.env.E2E_TEST_ATLAS_PREFERENCES_OVERRIDE_PORT !== undefined &&
20-
process.env.E2E_TEST_ATLAS_PREFERENCES_OVERRIDE_PORT !== 'false' &&
21-
Object.keys(_attributes).length === 4
20+
process.env.E2E_TEST_ATLAS_PREFERENCES_OVERRIDE_PORT !== 'false'
2221
) {
2322
return Promise.resolve(this._preferences.savePreferences(_attributes));
2423
}

0 commit comments

Comments
 (0)