Skip to content

Commit

Permalink
fixup: remove unused dep and log
Browse files Browse the repository at this point in the history
  • Loading branch information
Anemy committed Dec 14, 2024
1 parent abed7c7 commit 7a9d223
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
5 changes: 1 addition & 4 deletions packages/compass-e2e-tests/helpers/test-runner-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
2 changes: 1 addition & 1 deletion packages/compass-generative-ai/src/atlas-ai-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ export class CompassWebPreferencesAccess implements PreferencesAccess {
savePreferences(_attributes: Partial<UserPreferences>) {
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));
}
Expand Down

0 comments on commit 7a9d223

Please sign in to comment.