Skip to content

Commit b661f09

Browse files
committed
chore: rename to AI opt-in
1 parent 544a84c commit b661f09

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

packages/compass-aggregations/src/modules/pipeline-builder/pipeline-ai.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ export const resetIsAggregationGeneratedFromQuery =
449449
export const showInput = (): PipelineBuilderThunkAction<Promise<void>> => {
450450
return async (dispatch, _getState, { atlasAiService }) => {
451451
try {
452-
if (process.env.COMPASS_E2E_SKIP_ATLAS_SIGNIN !== 'true') {
452+
if (process.env.COMPASS_E2E_SKIP_AI_OPT_IN !== 'true') {
453453
await atlasAiService.ensureAiFeatureAccess();
454454
}
455455
dispatch({

packages/compass-e2e-tests/tests/collection-ai-query.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('Collection ai query', function () {
2929
before(async function () {
3030
skipForWeb(this, 'ai queries not yet available in compass-web');
3131

32-
process.env.COMPASS_E2E_SKIP_ATLAS_SIGNIN = 'true';
32+
process.env.COMPASS_E2E_SKIP_AI_OPT_IN = 'true';
3333

3434
// Start a mock server to pass an ai response.
3535
const {
@@ -72,7 +72,7 @@ describe('Collection ai query', function () {
7272

7373
await stopMockAtlasServer();
7474

75-
delete process.env.COMPASS_E2E_SKIP_ATLAS_SIGNIN;
75+
delete process.env.COMPASS_E2E_SKIP_AI_OPT_IN;
7676

7777
await cleanup(compass);
7878
await telemetry.stop();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ export class AtlasAiService {
255255
}
256256

257257
private throwIfAINotEnabled() {
258-
if (process.env.COMPASS_E2E_SKIP_ATLAS_SIGNIN === 'true') {
258+
if (process.env.COMPASS_E2E_SKIP_AI_OPT_IN === 'true') {
259259
return;
260260
}
261261
if (!isAIFeatureEnabled(this.preferences.getPreferences())) {

packages/compass-query-bar/src/stores/ai-query-reducer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ export const cancelAIQuery = (): QueryBarThunkAction<
414414
export const showInput = (): QueryBarThunkAction<Promise<void>> => {
415415
return async (dispatch, _getState, { atlasAiService }) => {
416416
try {
417-
if (process.env.COMPASS_E2E_SKIP_ATLAS_SIGNIN !== 'true') {
417+
if (process.env.COMPASS_E2E_SKIP_AI_OPT_IN !== 'true') {
418418
await atlasAiService.ensureAiFeatureAccess();
419419
}
420420
dispatch({ type: AIQueryActionTypes.ShowInput });

packages/compass/src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ declare module 'process' {
3535
HADRON_AUTO_UPDATE_ENDPOINT_OVERRIDE?: string;
3636
COMPASS_ATLAS_SERVICE_UNAUTH_BASE_URL_OVERRIDE?: string;
3737
COMPASS_CLIENT_ID_OVERRIDE?: string;
38-
COMPASS_E2E_SKIP_ATLAS_SIGNIN?: string;
38+
COMPASS_E2E_SKIP_AI_OPT_IN?: string;
3939
COMPASS_OIDC_ISSUER_OVERRIDE?: string;
4040
COMPASS_ATLAS_AUTH_PORTAL_URL_OVERRIDE?: string;
4141
}

0 commit comments

Comments
 (0)