Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit 1752d87

Browse files
authored
DOP-4458: Remove SHOW_CHATBOT environment variable in Autobuilder (#1014)
removing all instances of chatbot
1 parent 0480b71 commit 1752d87

File tree

10 files changed

+2
-15
lines changed

10 files changed

+2
-15
lines changed

cdk-infra/lib/constructs/worker/worker-env-construct.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ export class WorkerEnvConstruct extends Construct {
4646
// font-end feature flag for unified footer locale selector
4747
const gatsbyHideUnifiedFooterLocale = StringParameter.valueFromLookup(this, `${ssmPrefix}/flag/hide_locale`);
4848

49-
// front end feature flag for chatbot UI
50-
const gatsbyUseChatbot = StringParameter.valueFromLookup(this, `${ssmPrefix}/flag/use_chatbot`);
51-
5249
const githubBotUsername = StringParameter.valueFromLookup(this, `${ssmPrefix}/github/bot/username`);
5350

5451
const npmEmail = StringParameter.valueFromLookup(this, `${ssmPrefix}/npm/email`);
@@ -99,7 +96,6 @@ export class WorkerEnvConstruct extends Construct {
9996
USE_CUSTOM_BUCKETS: `${getUseCustomBuckets()}`,
10097
FEATURE_NAME: getFeatureName(),
10198
GATSBY_TEST_SEARCH_UI: 'false',
102-
GATSBY_SHOW_CHATBOT: gatsbyUseChatbot,
10399
GATSBY_HIDE_UNIFIED_FOOTER_LOCALE: gatsbyHideUnifiedFooterLocale,
104100
GATSBY_MARIAN_URL: gatsbyMarianUrl,
105101
IS_FEATURE_BRANCH: getIsFeatureBranch(),

config/custom-environment-variables.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"previewBuildEnabled": "PREVIEW_BUILD_ENABLED",
2424
"featureFlagUpdatePages": "FEATURE_FLAG_UPDATE_PAGES",
2525
"featureFlagSearchUI": "GATSBY_TEST_SEARCH_UI",
26-
"gatsbyUseChatbot": "GATSBY_SHOW_CHATBOT",
2726
"gatsbyHideUnifiedFooterLocale": "GATSBY_HIDE_UNIFIED_FOOTER_LOCALE",
2827
"gatsbyMarianURL": "GATSBY_MARIAN_URL",
2928
"repoBranchesCollection": "REPO_BRANCHES_COL_NAME",

config/default.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"previewBuildEnabled": "false",
3434
"featureFlagUpdatePages": "false",
3535
"featureFlagSearchUI": "false",
36-
"gatsbyUseChatbot": "false",
3736
"parallel": {
3837
"enabled": true,
3938
"stg": {

infrastructure/ecs-main/ecs_service.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ Resources:
6666
Value: ${self:custom.featureFlagMonorepoPath}
6767
- Name: GATSBY_TEST_SEARCH_UI
6868
Value: ${self:custom.featureFlagSearchUI}
69-
- Name: GATSBY_SHOW_CHATBOT
70-
Value: ${self:custom.gatsbyUseChatbot}
7169
- Name: GATSBY_MARIAN_URL
7270
Value: ${self:custom.gatsbyMarianURL}
7371
- Name: GATSBY_HIDE_UNIFIED_FOOTER_LOCALE

infrastructure/ecs-main/serverless.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ custom:
105105
featureFlagMonorepoPath: ${ssm:/env/${self:provider.stage}/docs/worker_pool/flag/monorepo_path}
106106
featureFlagSearchUI: ${ssm:/env/${self:provider.stage}/docs/worker_pool/flag/search_ui}
107107
gatsbyTestEmbedVersions: ${ssm:/env/${self:provider.stage}/docs/worker_pool/flag/embedded_versions}
108-
gatsbyUseChatbot: ${ssm:/env/${self:provider.stage}/docs/worker_pool/flag/use_chatbot}
109108
gatsbyHideUnifiedFooterLocale: ${ssm:/env/${self:provider.stage}/docs/worker_pool/flag/hide_locale}
110109
gatsbyMarianURL: ${ssm:/env/${self:provider.stage}/docs/worker_pool/frontend/marian_url}
111110
fastlyMainToken: ${ssm:/env/${self:provider.stage}/docs/worker_pool/fastly/docs/main/token}

src/commands/src/scripts/local-build/utils/get-env-vars.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ const workerParamStrings = [
2828
'/atlas/host',
2929
'/flag/preview_webhook_enable',
3030
'/flag/hide_locale',
31-
'/flag/use_chatbot',
3231
'/github/bot/username',
3332
'/npm/email',
3433
'/frontend/base_url',
@@ -73,7 +72,6 @@ const workerParamPathToEnvName: Record<WorkerParamString, string> = {
7372
'/atlas/collections/user/entitlements': 'USER_ENTITLEMENT_COL_NAME',
7473
'/npm/email': 'NPM_EMAIL',
7574
'/atlas/collections/repo': 'REPO_BRANCHES_COL_NAME',
76-
'/flag/use_chatbot': 'GATSBY_SHOW_CHATBOT',
7775
'/flag/hide_locale': 'GATSBY_HIDE_UNIFIED_FOOTER_LOCALE',
7876
'/atlas/collections/job/queue': 'JOB_QUEUE_COL_NAME',
7977
'/flag/preview_webhook_enable': 'GATSBY_CLOUD_PREVIEW_WEBHOOK_ENABLED',

src/job/jobHandler.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,6 @@ export abstract class JobHandler {
404404
GATSBY_BASE_URL: this._config.get<string>('gatsbyBaseUrl'),
405405
PREVIEW_BUILD_ENABLED: this._config.get<string>('previewBuildEnabled'),
406406
GATSBY_TEST_SEARCH_UI: this._config.get<string>('featureFlagSearchUI'),
407-
GATSBY_SHOW_CHATBOT: this._config.get<string>('gatsbyUseChatbot'),
408407
GATSBY_HIDE_UNIFIED_FOOTER_LOCALE: this._config.get<string>('gatsbyHideUnifiedFooterLocale'),
409408
GATSBY_MARIAN_URL: this._config.get<string>('gatsbyMarianURL'),
410409
};

tests/data/data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export class TestDataProvider {
176176
}
177177

178178
static getEnvVarsWithPathPrefixWithFlags(job: Job): string {
179-
return `GATSBY_PARSER_USER=TestUser\nGATSBY_PARSER_BRANCH=${job.payload.branchName}\nPATH_PREFIX=${job.payload.pathPrefix}\nGATSBY_BASE_URL=test\nPREVIEW_BUILD_ENABLED=false\nGATSBY_TEST_SEARCH_UI=false\nGATSBY_SHOW_CHATBOT=false\nGATSBY_HIDE_UNIFIED_FOOTER_LOCALE=true\nGATSBY_MARIAN_URL=test-url\n`;
179+
return `GATSBY_PARSER_USER=TestUser\nGATSBY_PARSER_BRANCH=${job.payload.branchName}\nPATH_PREFIX=${job.payload.pathPrefix}\nGATSBY_BASE_URL=test\nPREVIEW_BUILD_ENABLED=false\nGATSBY_TEST_SEARCH_UI=false\nGATSBY_HIDE_UNIFIED_FOOTER_LOCALE=true\nGATSBY_MARIAN_URL=test-url\n`;
180180
}
181181

182182
static getPathPrefixCases(): Array<any> {

tests/unit/job/productionJobHandler.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ describe('ProductionJobHandler Tests', () => {
247247

248248
expect(jobHandlerTestHelper.fileSystemServices.writeToFile).toBeCalledWith(
249249
`repos/${jobHandlerTestHelper.job.payload.repoName}/.env.production`,
250-
`GATSBY_PARSER_USER=TestUser\nGATSBY_PARSER_BRANCH=${jobHandlerTestHelper.job.payload.branchName}\nPATH_PREFIX=/\nGATSBY_BASE_URL=test\nPREVIEW_BUILD_ENABLED=false\nGATSBY_TEST_SEARCH_UI=false\nGATSBY_SHOW_CHATBOT=false\nGATSBY_HIDE_UNIFIED_FOOTER_LOCALE=true\nGATSBY_MARIAN_URL=test-url\n`,
250+
`GATSBY_PARSER_USER=TestUser\nGATSBY_PARSER_BRANCH=${jobHandlerTestHelper.job.payload.branchName}\nPATH_PREFIX=/\nGATSBY_BASE_URL=test\nPREVIEW_BUILD_ENABLED=false\nGATSBY_TEST_SEARCH_UI=false\nGATSBY_HIDE_UNIFIED_FOOTER_LOCALE=true\nGATSBY_MARIAN_URL=test-url\n`,
251251
{ encoding: 'utf8', flag: 'w' }
252252
);
253253
});

tests/utils/jobHandlerTestHelper.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ export class JobHandlerTestHelper {
153153
this.config.get.calledWith('gatsbyBaseUrl').mockReturnValue('test');
154154
this.config.get.calledWith('previewBuildEnabled').mockReturnValue('false');
155155
this.config.get.calledWith('featureFlagSearchUI').mockReturnValue('false');
156-
this.config.get.calledWith('gatsbyUseChatbot').mockReturnValue('false');
157156
this.config.get.calledWith('gatsbyHideUnifiedFooterLocale').mockReturnValue('true');
158157
this.config.get.calledWith('gatsbyMarianURL').mockReturnValue('test-url');
159158
this.repoConnector.checkCommits

0 commit comments

Comments
 (0)