Skip to content

Commit

Permalink
DOP-4414 remove unecessary vars from the configs
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed Mar 25, 2024
1 parent 70c67bd commit 73ce79e
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 14 deletions.
2 changes: 0 additions & 2 deletions api/config/custom-environment-variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"dbPassword": "MONGO_ATLAS_PASSWORD",
"dbName": "DB_NAME",
"snootyDbName": "SNOOTY_DB_NAME",
"metadataDbName": "METADATA_DB_NAME",
"dbUrl": "MONGO_ATLAS_URL",
"fastlyDochubMap": "FASTLY_DOCHUB_MAP",
"githubSecret": "GITHUB_SECRET",
Expand All @@ -18,7 +17,6 @@
"slackViewOpenUrl": "https://slack.com/api/views.open",
"snootySecret": "SNOOTY_SECRET",
"jobQueueCollection": "JOB_QUEUE_COL_NAME",
"projectsCollection": "PROJECTS_COL_NAME",
"entitlementCollection": "USER_ENTITLEMENT_COL_NAME",
"dashboardUrl": "DASHBOARD_URL",
"repoBranchesCollection": "REPO_BRANCHES_COL_NAME",
Expand Down
4 changes: 0 additions & 4 deletions api/config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"dbPassword": "password",
"dbName": "db_name",
"snootyDbName": "snooty_db_name",
"metadataDbName": "METADATA_DB_NAME",
"dbUrl": "url",
"fastlyDochubMap": "FASTLY_DOCHUB_MAP",
"githubSecret": "GITHUB_SECRET",
Expand All @@ -18,7 +17,6 @@
"slackViewOpenUrl": "https://slack.com/api/views.open",
"snootySecret": "SNOOTY_SECRET",
"jobQueueCollection": "JOB_QUEUE_COL_NAME",
"projectsCollection": "PROJECTS_COL_NAME",
"entitlementCollection": "USER_ENTITLEMENT_COL_NAME",
"repoBranchesCollection": "REPO_BRANCHES_COL_NAME",
"docsetsCollection": "DOCSETS_COL_NAME",
Expand All @@ -39,15 +37,13 @@
"stg": {
"dbName": "pool_test",
"jobQueueCollection": "dotcom_queue",
"projectsCollection": "PROJECTS_COL_NAME",
"jobsQueueUrl": "https://sqs.us-east-2.amazonaws.com/216656347858/autobuilder-jobs-queue-dotcomstg",
"jobUpdatesQueueUrl": "https://sqs.us-east-2.amazonaws.com/216656347858/autobuilder-job-updates-queue-dotcomstg",
"parallelStgName": "dotcomstg"
},
"prd": {
"dbName": "pool",
"jobQueueCollection": "dotcom_queue",
"projectsCollection": "PROJECTS_COL_NAME",
"jobsQueueUrl": "https://sqs.us-east-2.amazonaws.com/216656347858/autobuilder-jobs-queue-dotcomprd",
"jobUpdatesQueueUrl": "https://sqs.us-east-2.amazonaws.com/216656347858/autobuilder-job-updates-queue-dotcomprd",
"parallelStgName": "dotcomprd"
Expand Down
2 changes: 1 addition & 1 deletion api/controllers/v2/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const triggerSmokeTestAutomatedBuild = async (event: APIGatewayEvent): Pr
const db = client.db(c.get('dbName'));
const consoleLogger = new ConsoleLogger();
const jobRepository = new JobRepository(db, c, consoleLogger);
const projectsRepository = new ProjectsRepository(client.db('docs_metadata'), c, consoleLogger);
const projectsRepository = new ProjectsRepository(client.db(process.env.METADATA_DB_NAME), c, consoleLogger);
const repoBranchesRepository = new RepoBranchesRepository(db, c, consoleLogger);
const docsetsRepository = new DocsetsRepository(db, c, consoleLogger);

Expand Down
2 changes: 0 additions & 2 deletions cdk-infra/static/api/config/custom-environment-variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"githubBotPW": "GITHUB_BOT_PASSWORD",
"dbName": "DB_NAME",
"snootyDbName": "SNOOTY_DB_NAME",
"metadataDbName": "METADATA_DB_NAME",
"dbUrl": "MONGO_ATLAS_URL",
"fastlyDochubMap": "FASTLY_DOCHUB_MAP",
"githubSecret": "GITHUB_SECRET",
Expand All @@ -18,7 +17,6 @@
"slackViewOpenUrl": "https://slack.com/api/views.open",
"snootySecret": "SNOOTY_SECRET",
"jobQueueCollection": "JOB_QUEUE_COL_NAME",
"projectsCollection": "PROJECTS_COL_NAME",
"entitlementCollection": "USER_ENTITLEMENT_COL_NAME",
"dashboardUrl": "DASHBOARD_URL",
"repoBranchesCollection": "REPO_BRANCHES_COL_NAME",
Expand Down
2 changes: 0 additions & 2 deletions cdk-infra/static/api/config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"dbPassword": "password",
"dbName": "db_name",
"snootyDbName": "snooty_db_name",
"metadataDbName": "METADATA_DB_NAME",
"dbUrl": "url",
"githubBotPW": "GITHUB_BOT_PASSWORD",
"fastlyDochubMap": "FASTLY_DOCHUB_MAP",
Expand All @@ -18,7 +17,6 @@
"slackViewOpenUrl": "https://slack.com/api/views.open",
"snootySecret": "SNOOTY_SECRET",
"jobQueueCollection": "JOB_QUEUE_COL_NAME",
"projectsCollection": "PROJECTS_COL_NAME",
"entitlementCollection": "USER_ENTITLEMENT_COL_NAME",
"repoBranchesCollection": "REPO_BRANCHES_COL_NAME",
"docsetsCollection": "DOCSETS_COL_NAME",
Expand Down
2 changes: 0 additions & 2 deletions config/custom-environment-variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
"dbHost": "MONGO_ATLAS_HOST",
"dbName": "DB_NAME",
"snootyDbName": "SNOOTY_DB_NAME",
"metadataDbName": "METADATA_DB_NAME",
"dbUrl": "MONGO_ATLAS_URL",
"jobQueueCollection": "JOB_QUEUE_COL_NAME",
"projectsCollection": "PROJECTS_COL_NAME",
"awsKey": "AWS_ACCESS_KEY_ID",
"awsSecret": "AWS_SECRET_ACCESS_KEY",
"githubBotUserName": "GITHUB_BOT_USERNAME",
Expand Down
1 change: 0 additions & 1 deletion config/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"githubBotPW": "q1w",
"fastlyDochubMap": "devfslydochubmap",
"entitlementCollection": "entitlements",
"projectsCollection": "projects",
"docsetsCollection": "docsets",
"MONGO_TIMEOUT_S": 1,
"JOB_TIMEOUT_S": 10,
Expand Down

0 comments on commit 73ce79e

Please sign in to comment.