Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Release 5.44.0 #3554

Merged
merged 81 commits into from
Mar 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
24a8c6f
fix(deps): bump winston from 3.3.3 to 3.6.0 (#3442)
dependabot[bot] Feb 15, 2022
6f46811
chore(deps-dev): bump @babel/plugin-transform-runtime (#3444)
dependabot[bot] Feb 15, 2022
a7b3d34
chore(deps-dev): bump jest-localstorage-mock from 2.4.18 to 2.4.19 (#…
dependabot[bot] Feb 16, 2022
1b286cc
feat: add script to archive multiple forms (#3446)
mantariksh Feb 16, 2022
ada9c49
chore(deps-dev): bump ts-node from 10.4.0 to 10.5.0 (#3448)
dependabot[bot] Feb 16, 2022
b67135d
fix(deps): bump busboy from 1.3.0 to 1.4.0 (#3447)
dependabot[bot] Feb 16, 2022
22bcaf4
fix(deps): bump @sentry/integrations from 6.16.1 to 6.17.9 (#3450)
dependabot[bot] Feb 16, 2022
fe552c1
fix(deps): bump celebrate from 15.0.0 to 15.0.1 (#3449)
dependabot[bot] Feb 16, 2022
312644f
fix(deps): bump opossum from 6.2.1 to 6.3.0 (#3453)
dependabot[bot] Feb 17, 2022
8aa7130
chore(deps-dev): bump core-js from 3.20.2 to 3.21.1 (#3452)
dependabot[bot] Feb 17, 2022
eab9f0a
chore(deps-dev): bump @types/node from 17.0.16 to 17.0.18 (#3454)
dependabot[bot] Feb 17, 2022
30757c6
fix(deps): bump url-parse from 1.5.3 to 1.5.7 (#3455)
dependabot[bot] Feb 17, 2022
784a09f
feat: add script to compute stats for multi-language forms (#3458)
timotheeg Feb 18, 2022
7ef0371
fix(deps): bump express from 4.17.2 to 4.17.3 (#3456)
dependabot[bot] Feb 20, 2022
0fc3060
fix(deps): bump aws-sdk from 2.1053.0 to 2.1077.0 (#3464)
dependabot[bot] Feb 20, 2022
ebd37c6
fix(deps): bump twilio from 3.72.0 to 3.74.0 (#3465)
dependabot[bot] Feb 20, 2022
229c35b
fix(deps): bump body-parser from 1.19.1 to 1.19.2 (#3466)
dependabot[bot] Feb 20, 2022
9454bc2
fix(deps): bump type-fest from 2.11.2 to 2.12.0 in /shared (#3470)
dependabot[bot] Feb 20, 2022
8bdfbde
chore(deps-dev): bump eslint-config-prettier in /shared (#3469)
dependabot[bot] Feb 20, 2022
aadb724
fix(deps): bump axios from 0.25.0 to 0.26.0 (#3468)
dependabot[bot] Feb 20, 2022
bd6376f
fix(deps): bump libphonenumber-js from 1.9.44 to 1.9.49 (#3473)
dependabot[bot] Feb 21, 2022
e63e727
chore(deps-dev): bump @babel/core from 7.17.2 to 7.17.5 (#3474)
dependabot[bot] Feb 21, 2022
365b70f
fix(deps): bump @babel/runtime from 7.17.0 to 7.17.2 (#3475)
dependabot[bot] Feb 21, 2022
b23d4ac
chore(deps-dev): bump @opengovsg/mockpass from 2.7.9 to 2.8.0 (#3476)
dependabot[bot] Feb 21, 2022
0441a3c
fix(deps): bump csv-string from 4.0.1 to 4.1.0 (#3477)
dependabot[bot] Feb 21, 2022
bd61ef5
chore(deps-dev): bump auto-changelog from 2.3.0 to 2.4.0 (#3479)
dependabot[bot] Feb 21, 2022
094d086
fix(deps): bump fp-ts from 2.11.7 to 2.11.8 (#3483)
dependabot[bot] Feb 22, 2022
b68a6c2
chore(deps-dev): bump eslint-plugin-jest from 26.1.0 to 26.1.1 (#3484)
dependabot[bot] Feb 22, 2022
a3a8f44
Update TOU to exclude HIPAA clauses (#3482)
r00dgirl Feb 23, 2022
85c74d7
chore(deps-dev): bump typescript from 4.5.4 to 4.5.5 (#3487)
dependabot[bot] Feb 23, 2022
42b886a
chore(deps-dev): bump @types/node from 17.0.18 to 17.0.21 (#3489)
dependabot[bot] Feb 23, 2022
57d4e37
chore(deps-dev): bump @types/jest from 27.0.3 to 27.4.1 (#3490)
dependabot[bot] Feb 23, 2022
f715a0b
fix(deps): bump aws-sdk from 2.1077.0 to 2.1079.0 (#3491)
dependabot[bot] Feb 23, 2022
a32686b
chore(deps-dev): bump eslint-config-prettier from 8.3.0 to 8.4.0 (#3493)
dependabot[bot] Feb 23, 2022
b948d4f
chore(deps-dev): bump type-fest from 2.9.0 to 2.12.0 (#3495)
dependabot[bot] Feb 23, 2022
4770e54
fix(deps): bump zod from 3.11.6 to 3.12.0 (#3496)
dependabot[bot] Feb 23, 2022
c615e55
fix(deps): bump zod from 3.11.6 to 3.12.0 in /shared (#3497)
dependabot[bot] Feb 23, 2022
7fdba5b
fix(deps): bump aws-sdk from 2.1079.0 to 2.1080.0 (#3498)
dependabot[bot] Feb 23, 2022
9c97694
chore(deps-dev): bump lint-staged from 12.1.7 to 12.3.4 (#3499)
dependabot[bot] Feb 23, 2022
e7963ea
fix(deps): bump @sentry/browser from 6.17.7 to 6.17.9 (#3488)
dependabot[bot] Feb 24, 2022
ee79027
fix(deps): bump twilio from 3.74.0 to 3.75.0 (#3506)
dependabot[bot] Feb 24, 2022
ab2c832
chore(deps-dev): bump @babel/preset-env from 7.16.7 to 7.16.11 (#3508)
dependabot[bot] Feb 25, 2022
6ef5f39
chore(deps-dev): bump @types/uid-generator from 2.0.2 to 2.0.3 (#3507)
dependabot[bot] Feb 25, 2022
3f9b4ec
fix(deps): bump aws-sdk from 2.1080.0 to 2.1081.0 (#3510)
dependabot[bot] Feb 25, 2022
6371fc0
Merge remote-tracking branch 'origin/release' into merge_conflict_fixes
timotheeg Feb 25, 2022
2759f23
fix(deps): bump @sentry/browser from 6.17.9 to 6.18.0 (#3509)
dependabot[bot] Feb 25, 2022
a5738f0
Merge pull request #3512 from opengovsg/merge_conflict_fixes
karrui Feb 25, 2022
2c607a2
fix(deps): bump @sentry/integrations from 6.17.9 to 6.18.0 (#3511)
dependabot[bot] Feb 25, 2022
783dfae
chore(deps-dev): bump @types/lodash from 4.14.178 to 4.14.179 (#3522)
dependabot[bot] Feb 27, 2022
a0e2d6d
fix(deps): bump aws-sdk from 2.1081.0 to 2.1082.0 (#3523)
dependabot[bot] Feb 27, 2022
fcac2f1
fix(ci/deploy): truncate deploy description correctly (#3524)
mantariksh Feb 28, 2022
dbede8f
feat: add positional argument to create form field API (#3486)
karrui Feb 28, 2022
4d36461
feat: add `/client/env` API route for sending client env vars as JSON…
karrui Feb 28, 2022
598cf5f
fix(deps): bump dotenv from 10.0.0 to 16.0.0 (#3377)
dependabot[bot] Feb 28, 2022
d2e3dca
chore(deps-dev): bump ngrok from 4.2.2 to 4.3.0 (#3526)
dependabot[bot] Mar 1, 2022
b9484ee
fix(deps): bump @sentry/browser from 6.18.0 to 6.18.1 (#3527)
dependabot[bot] Mar 1, 2022
5c6b990
chore(deps-dev): bump typescript from 4.5.5 to 4.6.2 (#3530)
dependabot[bot] Mar 1, 2022
f9f2f8a
fix(deps): bump @sentry/integrations from 6.18.0 to 6.18.1 (#3531)
dependabot[bot] Mar 1, 2022
23f3367
Merge pull request #3529 from opengovsg/release-al2
karrui Mar 1, 2022
3b93abb
Revert "feat(BounceController): log SNS topic confirmation notificati…
karrui Mar 1, 2022
7fcb1f3
fix(deps): bump aws-sdk from 2.1082.0 to 2.1083.0 (#3534)
dependabot[bot] Mar 1, 2022
64bec1c
chore(deps-dev): bump ts-node from 10.5.0 to 10.6.0 (#3536)
dependabot[bot] Mar 1, 2022
8aa9076
fix(deps): bump zod from 3.12.0 to 3.12.1 in /shared (#3537)
dependabot[bot] Mar 1, 2022
a04c39b
fix(deps): bump multiparty from 4.2.2 to 4.2.3 (#3535)
dependabot[bot] Mar 2, 2022
efa6028
feat: export shared types for use in client/backend, update user rout…
karrui Mar 2, 2022
2456295
fix(deps): bump aws-sdk from 2.1083.0 to 2.1084.0 (#3538)
dependabot[bot] Mar 2, 2022
aa64246
fix(deps): bump zod from 3.12.0 to 3.13.2 (#3539)
dependabot[bot] Mar 2, 2022
8fb18fc
fix(deps): bump zod from 3.12.1 to 3.13.3 in /shared (#3540)
dependabot[bot] Mar 3, 2022
bf0c979
fix: revert how we initiate mongo database in docker-compose local de…
karrui Mar 3, 2022
46e88ad
chore(deps-dev): bump eslint-config-prettier from 8.4.0 to 8.5.0 (#3542)
dependabot[bot] Mar 3, 2022
4305100
fix(deps): bump zod from 3.13.2 to 3.13.4 (#3543)
dependabot[bot] Mar 3, 2022
bdf4eb2
fix(deps): bump aws-sdk from 2.1084.0 to 2.1085.0 (#3544)
dependabot[bot] Mar 3, 2022
aabce79
chore(deps-dev): bump eslint-config-prettier in /shared (#3545)
dependabot[bot] Mar 3, 2022
5df999a
fix(deps): bump zod from 3.13.3 to 3.13.4 in /shared (#3546)
dependabot[bot] Mar 3, 2022
f64f2f6
chore(deps-dev): bump ngrok from 4.3.0 to 4.3.1 (#3548)
dependabot[bot] Mar 6, 2022
d3221ed
chore(deps-dev): bump lint-staged from 12.3.4 to 12.3.5 (#3549)
dependabot[bot] Mar 6, 2022
91e9735
chore(deps-dev): bump @opengovsg/mockpass from 2.8.0 to 2.8.1 (#3550)
dependabot[bot] Mar 7, 2022
8505399
fix(deps): bump aws-sdk from 2.1085.0 to 2.1087.0 (#3551)
dependabot[bot] Mar 7, 2022
41fc736
chore(deps-dev): bump ts-node from 10.6.0 to 10.7.0 (#3552)
dependabot[bot] Mar 7, 2022
e37946a
fix(deps): bump @opengovsg/spcp-auth-client from 1.4.15 to 1.4.16 (#3…
dependabot[bot] Mar 7, 2022
0f4baf8
chore: bump version to 5.44.0
tshuli Mar 8, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy-eb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
BUCKET_NAME: ${{ secrets.BUCKET_NAME }}
APP_NAME: ${{ secrets.APP_NAME }}
run: |
TRUNCATED_DESC=$(echo "${{github.event.head_commit.message}}" | cut -b1-180)
TRUNCATED_DESC=$(echo "${{github.event.head_commit.message}}" | head -c 180)
aws elasticbeanstalk create-application-version --application-name $APP_NAME \
--version-label $IMAGE_TAG \
--source-bundle S3Bucket=$BUCKET_NAME,S3Key=$IMAGE_TAG.zip \
Expand Down
94 changes: 94 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,102 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [v5.44.0](https://github.com/opengovsg/FormSG/compare/v5.43.1...v5.44.0)

- fix(deps): bump @opengovsg/spcp-auth-client from 1.4.15 to 1.4.16 [`#3553`](https://github.com/opengovsg/FormSG/pull/3553)
- chore(deps-dev): bump ts-node from 10.6.0 to 10.7.0 [`#3552`](https://github.com/opengovsg/FormSG/pull/3552)
- fix(deps): bump aws-sdk from 2.1085.0 to 2.1087.0 [`#3551`](https://github.com/opengovsg/FormSG/pull/3551)
- chore(deps-dev): bump @opengovsg/mockpass from 2.8.0 to 2.8.1 [`#3550`](https://github.com/opengovsg/FormSG/pull/3550)
- chore(deps-dev): bump lint-staged from 12.3.4 to 12.3.5 [`#3549`](https://github.com/opengovsg/FormSG/pull/3549)
- chore(deps-dev): bump ngrok from 4.3.0 to 4.3.1 [`#3548`](https://github.com/opengovsg/FormSG/pull/3548)
- fix(deps): bump zod from 3.13.3 to 3.13.4 in /shared [`#3546`](https://github.com/opengovsg/FormSG/pull/3546)
- chore(deps-dev): bump eslint-config-prettier in /shared [`#3545`](https://github.com/opengovsg/FormSG/pull/3545)
- fix(deps): bump aws-sdk from 2.1084.0 to 2.1085.0 [`#3544`](https://github.com/opengovsg/FormSG/pull/3544)
- fix(deps): bump zod from 3.13.2 to 3.13.4 [`#3543`](https://github.com/opengovsg/FormSG/pull/3543)
- chore(deps-dev): bump eslint-config-prettier from 8.4.0 to 8.5.0 [`#3542`](https://github.com/opengovsg/FormSG/pull/3542)
- fix: revert how we initiate mongo database in docker-compose local dev [`#3541`](https://github.com/opengovsg/FormSG/pull/3541)
- fix(deps): bump zod from 3.12.1 to 3.13.3 in /shared [`#3540`](https://github.com/opengovsg/FormSG/pull/3540)
- fix(deps): bump zod from 3.12.0 to 3.13.2 [`#3539`](https://github.com/opengovsg/FormSG/pull/3539)
- fix(deps): bump aws-sdk from 2.1083.0 to 2.1084.0 [`#3538`](https://github.com/opengovsg/FormSG/pull/3538)
- feat: export shared types for use in client/backend, update user route error to return new status code, update SettingsDto return [`#3504`](https://github.com/opengovsg/FormSG/pull/3504)
- fix(deps): bump multiparty from 4.2.2 to 4.2.3 [`#3535`](https://github.com/opengovsg/FormSG/pull/3535)
- fix(deps): bump zod from 3.12.0 to 3.12.1 in /shared [`#3537`](https://github.com/opengovsg/FormSG/pull/3537)
- chore(deps-dev): bump ts-node from 10.5.0 to 10.6.0 [`#3536`](https://github.com/opengovsg/FormSG/pull/3536)
- fix(deps): bump aws-sdk from 2.1082.0 to 2.1083.0 [`#3534`](https://github.com/opengovsg/FormSG/pull/3534)
- Revert "feat(BounceController): log SNS topic confirmation notification emails" [`#3533`](https://github.com/opengovsg/FormSG/pull/3533)
- build: merge release-al2 branch back into develop [`#3529`](https://github.com/opengovsg/FormSG/pull/3529)
- fix(deps): bump @sentry/integrations from 6.18.0 to 6.18.1 [`#3531`](https://github.com/opengovsg/FormSG/pull/3531)
- chore(deps-dev): bump typescript from 4.5.5 to 4.6.2 [`#3530`](https://github.com/opengovsg/FormSG/pull/3530)
- fix(deps): bump @sentry/browser from 6.18.0 to 6.18.1 [`#3527`](https://github.com/opengovsg/FormSG/pull/3527)
- chore(deps-dev): bump ngrok from 4.2.2 to 4.3.0 [`#3526`](https://github.com/opengovsg/FormSG/pull/3526)
- feat(BounceController): log SNS topic confirmation notification emails [`#3525`](https://github.com/opengovsg/FormSG/pull/3525)
- fix(deps): bump dotenv from 10.0.0 to 16.0.0 [`#3377`](https://github.com/opengovsg/FormSG/pull/3377)
- feat: add `/client/env` API route for sending client env vars as JSON [`#3505`](https://github.com/opengovsg/FormSG/pull/3505)
- feat: add positional argument to create form field API [`#3486`](https://github.com/opengovsg/FormSG/pull/3486)
- fix(ci/deploy): truncate deploy description correctly [`#3524`](https://github.com/opengovsg/FormSG/pull/3524)
- fix(deps): bump aws-sdk from 2.1081.0 to 2.1082.0 [`#3523`](https://github.com/opengovsg/FormSG/pull/3523)
- chore(deps-dev): bump @types/lodash from 4.14.178 to 4.14.179 [`#3522`](https://github.com/opengovsg/FormSG/pull/3522)
- fix(deps): bump @sentry/integrations from 6.17.9 to 6.18.0 [`#3511`](https://github.com/opengovsg/FormSG/pull/3511)
- fix: merge release 5.43.1 to develop (with merge conflict fixes) [`#3512`](https://github.com/opengovsg/FormSG/pull/3512)
- fix(deps): bump @sentry/browser from 6.17.9 to 6.18.0 [`#3509`](https://github.com/opengovsg/FormSG/pull/3509)
- fix(deps): bump aws-sdk from 2.1080.0 to 2.1081.0 [`#3510`](https://github.com/opengovsg/FormSG/pull/3510)
- chore(deps-dev): bump @types/uid-generator from 2.0.2 to 2.0.3 [`#3507`](https://github.com/opengovsg/FormSG/pull/3507)
- chore(deps-dev): bump @babel/preset-env from 7.16.7 to 7.16.11 [`#3508`](https://github.com/opengovsg/FormSG/pull/3508)
- build: necessary adjustments to allow building in AWS ELB AL2 platform [`#3501`](https://github.com/opengovsg/FormSG/pull/3501)
- fix(deps): bump twilio from 3.74.0 to 3.75.0 [`#3506`](https://github.com/opengovsg/FormSG/pull/3506)
- fix(deps): bump @sentry/browser from 6.17.7 to 6.17.9 [`#3488`](https://github.com/opengovsg/FormSG/pull/3488)
- chore(deps-dev): bump lint-staged from 12.1.7 to 12.3.4 [`#3499`](https://github.com/opengovsg/FormSG/pull/3499)
- fix(deps): bump aws-sdk from 2.1079.0 to 2.1080.0 [`#3498`](https://github.com/opengovsg/FormSG/pull/3498)
- fix(deps): bump zod from 3.11.6 to 3.12.0 in /shared [`#3497`](https://github.com/opengovsg/FormSG/pull/3497)
- fix(deps): bump zod from 3.11.6 to 3.12.0 [`#3496`](https://github.com/opengovsg/FormSG/pull/3496)
- chore(deps-dev): bump type-fest from 2.9.0 to 2.12.0 [`#3495`](https://github.com/opengovsg/FormSG/pull/3495)
- chore(deps-dev): bump eslint-config-prettier from 8.3.0 to 8.4.0 [`#3493`](https://github.com/opengovsg/FormSG/pull/3493)
- fix(deps): bump aws-sdk from 2.1077.0 to 2.1079.0 [`#3491`](https://github.com/opengovsg/FormSG/pull/3491)
- chore(deps-dev): bump @types/jest from 27.0.3 to 27.4.1 [`#3490`](https://github.com/opengovsg/FormSG/pull/3490)
- chore(deps-dev): bump @types/node from 17.0.18 to 17.0.21 [`#3489`](https://github.com/opengovsg/FormSG/pull/3489)
- chore(deps-dev): bump typescript from 4.5.4 to 4.5.5 [`#3487`](https://github.com/opengovsg/FormSG/pull/3487)
- Update TOU to exclude HIPAA clauses [`#3482`](https://github.com/opengovsg/FormSG/pull/3482)
- chore(deps-dev): bump eslint-plugin-jest from 26.1.0 to 26.1.1 [`#3484`](https://github.com/opengovsg/FormSG/pull/3484)
- fix(deps): bump fp-ts from 2.11.7 to 2.11.8 [`#3483`](https://github.com/opengovsg/FormSG/pull/3483)
- chore(deps-dev): bump auto-changelog from 2.3.0 to 2.4.0 [`#3479`](https://github.com/opengovsg/FormSG/pull/3479)
- fix(deps): bump csv-string from 4.0.1 to 4.1.0 [`#3477`](https://github.com/opengovsg/FormSG/pull/3477)
- chore(deps-dev): bump @opengovsg/mockpass from 2.7.9 to 2.8.0 [`#3476`](https://github.com/opengovsg/FormSG/pull/3476)
- fix(deps): bump @babel/runtime from 7.17.0 to 7.17.2 [`#3475`](https://github.com/opengovsg/FormSG/pull/3475)
- chore(deps-dev): bump @babel/core from 7.17.2 to 7.17.5 [`#3474`](https://github.com/opengovsg/FormSG/pull/3474)
- fix(deps): bump libphonenumber-js from 1.9.44 to 1.9.49 [`#3473`](https://github.com/opengovsg/FormSG/pull/3473)
- fix(deps): bump axios from 0.25.0 to 0.26.0 [`#3468`](https://github.com/opengovsg/FormSG/pull/3468)
- chore(deps-dev): bump eslint-config-prettier in /shared [`#3469`](https://github.com/opengovsg/FormSG/pull/3469)
- fix(deps): bump type-fest from 2.11.2 to 2.12.0 in /shared [`#3470`](https://github.com/opengovsg/FormSG/pull/3470)
- fix(deps): bump body-parser from 1.19.1 to 1.19.2 [`#3466`](https://github.com/opengovsg/FormSG/pull/3466)
- fix(deps): bump twilio from 3.72.0 to 3.74.0 [`#3465`](https://github.com/opengovsg/FormSG/pull/3465)
- fix(deps): bump aws-sdk from 2.1053.0 to 2.1077.0 [`#3464`](https://github.com/opengovsg/FormSG/pull/3464)
- fix(deps): bump express from 4.17.2 to 4.17.3 [`#3456`](https://github.com/opengovsg/FormSG/pull/3456)
- feat: add script to compute stats for multi-language forms [`#3458`](https://github.com/opengovsg/FormSG/pull/3458)
- fix(deps): bump url-parse from 1.5.3 to 1.5.7 [`#3455`](https://github.com/opengovsg/FormSG/pull/3455)
- chore(deps-dev): bump @types/node from 17.0.16 to 17.0.18 [`#3454`](https://github.com/opengovsg/FormSG/pull/3454)
- chore(deps-dev): bump core-js from 3.20.2 to 3.21.1 [`#3452`](https://github.com/opengovsg/FormSG/pull/3452)
- fix(deps): bump opossum from 6.2.1 to 6.3.0 [`#3453`](https://github.com/opengovsg/FormSG/pull/3453)
- fix(deps): bump celebrate from 15.0.0 to 15.0.1 [`#3449`](https://github.com/opengovsg/FormSG/pull/3449)
- fix(deps): bump @sentry/integrations from 6.16.1 to 6.17.9 [`#3450`](https://github.com/opengovsg/FormSG/pull/3450)
- fix(deps): bump busboy from 1.3.0 to 1.4.0 [`#3447`](https://github.com/opengovsg/FormSG/pull/3447)
- chore(deps-dev): bump ts-node from 10.4.0 to 10.5.0 [`#3448`](https://github.com/opengovsg/FormSG/pull/3448)
- feat: add script to archive multiple forms [`#3446`](https://github.com/opengovsg/FormSG/pull/3446)
- chore(deps-dev): bump jest-localstorage-mock from 2.4.18 to 2.4.19 [`#3443`](https://github.com/opengovsg/FormSG/pull/3443)
- build: Release v5.43.1 hotfix [`#3438`](https://github.com/opengovsg/FormSG/pull/3438)
- chore(deps-dev): bump @babel/plugin-transform-runtime [`#3444`](https://github.com/opengovsg/FormSG/pull/3444)
- fix(deps): bump winston from 3.3.3 to 3.6.0 [`#3442`](https://github.com/opengovsg/FormSG/pull/3442)
- build: release v5.43.0 [`#3432`](https://github.com/opengovsg/FormSG/pull/3432)
- build: Release 5.42.0 [`#3415`](https://github.com/opengovsg/FormSG/pull/3415)
- build: Release 5.41.1 hotfix [`#3335`](https://github.com/opengovsg/FormSG/pull/3335)
- fix: replace datadog ebextension with linux-2 config [`a05f95f`](https://github.com/opengovsg/FormSG/commit/a05f95f33804deee99ac6ff9c4c86448f00e5806)
- feat: add staging-al2 deployment action [`c98c126`](https://github.com/opengovsg/FormSG/commit/c98c126c86bcde6efc47eadbb7c2d57f4b5ecc14)
- chore(deploy-eb): add release-al2 to deployable branches [`f9dae9a`](https://github.com/opengovsg/FormSG/commit/f9dae9ada3628853c49868e5aa810a58e962530a)

#### [v5.43.1](https://github.com/opengovsg/FormSG/compare/v5.43.0...v5.43.1)

> 15 February 2022

- chore: bump version to 5.43.1 [`1ac31da`](https://github.com/opengovsg/FormSG/commit/1ac31da17fe7c6a94af815469d22eaa09640da8a)
- fix: revert helmet from 5.0.2 to 4.6.0 [`7813015`](https://github.com/opengovsg/FormSG/commit/7813015b351001df24b56fcbd2c3098ccd32e332)

#### [v5.43.0](https://github.com/opengovsg/FormSG/compare/v5.42.0...v5.43.0)
Expand Down
11 changes: 2 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,25 +107,18 @@ services:
network_mode: 'service:formsg' # reuse formsg service's network stack so that it can resolve localhost:5156 to mockpass:5156

database:
image: 'mongo:4.0'
image: 'mongo:4.2'
container_name: 'formsg-db'
environment:
- MONGO_INITDB_DATABASE=formsg
volumes:
- mongodata:/data/db
command: --bind_ip_all --replSet rs0
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
ports:
- '27017:27017'
logging:
driver: none

mongo-seed:
build: ./mongo-seed
depends_on:
- database
links:
- database

localstack:
image: localstack/localstack:0.11.5
container_name: formsg-localstack
Expand Down
29 changes: 29 additions & 0 deletions docs/MONGODB.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,35 @@ function unlistFormArrayFromExamples(ids) {
// const ids = ['https://some.url/5f8817b7bde9d4002a800d78', 'some.url/#!/5f9a587b119c07002b56124f']
// unlistFormArrayFromExamples(ids)
```
- **Manually archive forms**

```javascript
/**
* Set an array of forms to status ARCHIVED
* @param {String[]} ids of the forms. These can be any string
* where the first sequence of 24 consecutive alphanumerics is the
* form ID, e.g. the form link.
*/
function archiveFormArray(ids) {
const formIdRegex = /[0-9a-fA-F]{24}/
// Wrap all ids in ObjectId
const objectIds = []
for (let id of ids) {
const parsed = formIdRegex.exec(id)
if (parsed) {
objectIds.push(ObjectId(parsed[0]))
} else {
throw new Error(`${id} does not contain a valid form ID.`)
}
}
const result = db
.getCollection('forms')
.updateMany({ _id: { $in: objectIds } }, { $set: { status: 'ARCHIVED' } })
return `${ids.length} forms given, ${result.matchedCount} matched, ${result.modifiedCount} modified`
}
// const ids = ['https://some.url/5ea8de1c73e4c00014059071', 'some.url/#!/5e868570a2c4d3001124dfff']
// archiveFormArray(ids)
```

- **Create new agency**

Expand Down
8 changes: 5 additions & 3 deletions mongo-seed/init.json → init-mongo.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[{
/* eslint-disable */
db.createCollection("agencies")
db.agencies.insert([{
"shortName" : "govtech",
"fullName" : "Government Technology Agency",
"logo" : "https://s3-ap-southeast-1.amazonaws.com/agency-logo.form.sg/govtech.jpg",
Expand All @@ -7,5 +9,5 @@
"data.gov.sg",
"form.sg",
"open.gov.sg"
]
}]
],
}])
8 changes: 0 additions & 8 deletions mongo-seed/Dockerfile

This file was deleted.

8 changes: 0 additions & 8 deletions mongo-seed/init-mongo.sh

This file was deleted.

182 changes: 0 additions & 182 deletions mongo-seed/wait-for-it.sh

This file was deleted.

Loading