Skip to content

Commit

Permalink
remove mongo (#863)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fbasham authored Sep 8, 2023
1 parent 4d9a32f commit 92e1e9f
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 265 deletions.
2 changes: 0 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ USER_UNSUBSCRIBE_ENGLISH_TEMPLATE_ID=
USER_UNSUBSCRIBE_FRENCH_TEMPLATE_ID=
USER_FEEDBACK_TEMPLATE_ID=
NEXT_PUBLIC_API_MOCKING= # an undefined value means it is not enabled
MONGO_URL=
MONGO_DB=
ADOBE_ANALYTICS_URL=
THANK_YOU_EMAIL=
USER_CSV_TEMPLATE_ID=
Expand Down
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ terraform/variables.json
.terraformrc
terraform.rc


# jest mongodb cache file
globalConfig.json

# IDE related files
.vscode
.idea
Expand Down
1 change: 0 additions & 1 deletion AzurePipelines/dev-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ stages:
--pull
--build-arg NEXT_PUBLIC_BUILD_ID=$(ADO_BUILD)
--build-arg NEXT_PUBLIC_BUILD_DATE=$(BUILD_DATE)
--build-arg MONGO_DB=$(MONGO_DB)
--build-arg ADOBE_ANALYTICS_URL=$(ADOBE_ANALYTICS_URL)
--build-arg NEXT_PUBLIC_NOTIFY_REPORT_A_PROBLEM_EMAIL=$(NEXT_PUBLIC_NOTIFY_REPORT_A_PROBLEM_EMAIL)
--build-arg ISR_ENABLED=$(ISR_ENABLED)
Expand Down
1 change: 0 additions & 1 deletion AzurePipelines/pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ steps:
--cache-from alphasitecrdev.azurecr.io/$(azureContainerRegistry.repository):latest
--build-arg NEXT_PUBLIC_BUILD_ID=$(ADO_BUILD)
--build-arg NEXT_PUBLIC_BUILD_DATE=$(BUILD_DATE)
--build-arg MONGO_DB=$(MONGO_DB)
--build-arg ADOBE_ANALYTICS_URL=$(ADOBE_ANALYTICS_URL)
--build-arg NEXT_PUBLIC_NOTIFY_REPORT_A_PROBLEM_EMAIL=$(NEXT_PUBLIC_NOTIFY_REPORT_A_PROBLEM_EMAIL)
--build-arg THANK_YOU_EMAIL=$(THANK_YOU_EMAIL)
Expand Down
1 change: 0 additions & 1 deletion AzurePipelines/prod-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ stages:
--pull
--build-arg NEXT_PUBLIC_BUILD_ID=$(ADO_BUILD)
--build-arg NEXT_PUBLIC_BUILD_DATE=$(BUILD_DATE)
--build-arg MONGO_DB=$(MONGO_DB)
--build-arg ADOBE_ANALYTICS_URL=$(ADOBE_ANALYTICS_URL)
--build-arg NEXT_PUBLIC_NOTIFY_REPORT_A_PROBLEM_EMAIL=$(NEXT_PUBLIC_NOTIFY_REPORT_A_PROBLEM_EMAIL)
--build-arg THANK_YOU_EMAIL=$(THANK_YOU_EMAIL)
Expand Down
4 changes: 0 additions & 4 deletions __tests__/pages/error.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ describe("Error page", () => {
});
});
expect(router).toMatchObject({
asPath:
"/error?errorTitle=custom%20title&errorTitleFr=custom%20title%20fr",
pathname: "/error",
query: { errorTitle: "custom title", errorTitleFr: "custom title fr" },
});
Expand All @@ -70,8 +68,6 @@ describe("Error page", () => {
});

expect(router).toMatchObject({
asPath:
"/error?errorMessage=custom%20error%20message&errorMessageFr=custom%20error%20message%20fr",
pathname: "/error",
query: {
errorMessage: "custom error message",
Expand Down
10 changes: 0 additions & 10 deletions jest-mongodb-config.js

This file was deleted.

1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ module.exports = {
"!**/node_modules/**",
"!**/vendor/**",
],
preset: "@shelf/jest-mongodb",
};
70 changes: 0 additions & 70 deletions lib/mongodb/connect.js

This file was deleted.

8 changes: 0 additions & 8 deletions lib/mongodb/connect.test.js

This file was deleted.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"joi": "^17.9.1",
"js-cookie": "^3.0.5",
"json2csv": "^5.0.6",
"mongodb": "^3.7.4",
"next": "^13.2.3",
"next-i18next": "^14.0.0",
"prop-types": "^15.8.1",
Expand Down Expand Up @@ -59,7 +58,6 @@
},
"devDependencies": {
"@babel/core": "^7.14.6",
"@shelf/jest-mongodb": "^2.0.1",
"@storybook/addon-a11y": "^7.0.0-beta.55",
"@storybook/addon-actions": "^7.0.0-beta.55",
"@storybook/addon-docs": "^7.0.0-beta.55",
Expand Down
Loading

0 comments on commit 92e1e9f

Please sign in to comment.