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 4.36.0 #348

Merged
merged 31 commits into from
Sep 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
db20cce
Merge pull request #323 from opengovsg/release-4.35.0
mantariksh Sep 15, 2020
aa057f9
fix(deps): fix npm audit issues (#322)
mantariksh Sep 16, 2020
acd825e
fix(dev): fix hot reloading and Localstack port (#324)
mantariksh Sep 16, 2020
789897b
refactor: remove unused key (#325)
mantariksh Sep 16, 2020
0ec85ac
fix(deps): bump helmet from 3.23.1 to 4.1.0 (#233)
tshuli Sep 16, 2020
e1be172
chore(deps-dev): bump concurrently from 3.6.1 to 5.3.0 (#308)
dependabot[bot] Sep 17, 2020
b5e90e9
fix(deps): bump whatwg-fetch from 3.0.0 to 3.4.1 (#300)
dependabot[bot] Sep 17, 2020
d2ad27d
fix(deps): bump winston from 3.2.1 to 3.3.3 (#278)
dependabot[bot] Sep 17, 2020
523909b
fix(deps): uninstall async (#309)
dependabot[bot] Sep 17, 2020
ddba47d
test: remove storage mode attachment tests (#336)
mantariksh Sep 18, 2020
d9b7d5d
fix: set nodeEnv to assigned variable if in dev environment (#335)
karrui Sep 18, 2020
dd381ae
Merge pull request #334 from opengovsg/release-4.35.1-hotfix
mantariksh Sep 21, 2020
f134a41
chore: update travis.yml and pin localstack in docker-compose (#337)
karrui Sep 21, 2020
f089d4f
chore(deps-dev): bump lint-staged from 10.2.11 to 10.4.0 (#328)
dependabot[bot] Sep 21, 2020
41acbf2
chore(deps-dev): bump ts-node from 8.10.2 to 9.0.0 (#329)
dependabot[bot] Sep 21, 2020
2c7b7be
chore(deps-dev): bump eslint-plugin-import from 2.21.2 to 2.22.0 (#330)
dependabot[bot] Sep 21, 2020
bb3172c
chore(deps-dev): bump eslint from 7.8.1 to 7.9.0 (#331)
dependabot[bot] Sep 21, 2020
8bf7fa2
fix(deps): bump celebrate from 12.2.0 to 13.0.3 (#338)
dependabot[bot] Sep 21, 2020
2b515df
fix(deps): uninstall node-jose (#339)
snyk-bot Sep 21, 2020
40be73c
chore(deps-dev): bump eslint-plugin-jest from 24.0.0 to 24.0.2 (#341)
dependabot[bot] Sep 21, 2020
bcd2c61
feat: Filter Storage Mode Responses by Submission Id (#174)
frankchn Sep 21, 2020
99f4266
fix(deps): bump csv-parse from 4.10.1 to 4.12.0 (#340)
dependabot[bot] Sep 21, 2020
ce4a82d
fix(deps): bump csv-string from 3.2.0 to 4.0.1 (#344)
dependabot[bot] Sep 21, 2020
c64927e
feat: Using `neverthrow` to explicitly handle errors in AuthControlle…
karrui Sep 22, 2020
0973938
feat: form ownership transfer feature (#111)
awhdesmond Sep 22, 2020
cbecaa5
feat: automate critical bounce handling (#318)
mantariksh Sep 22, 2020
467d221
chore: update spcp-auth-client library (#346)
arshadali172 Sep 22, 2020
f5c0e1d
chore: bump version to 4.36.0
tshuli Sep 22, 2020
51832a9
chore: add awscli back to toolchain (#349)
karrui Sep 22, 2020
1cf57d9
fix: specify betaFlags key correctly (#352)
mantariksh Sep 22, 2020
8ba586e
fix: revert feat: filter storage mode responses by submission id (#17…
tshuli Sep 22, 2020
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 .template-env
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ FORMSG_SDK_MODE=
## App Config
# APP_NAME=FormSG
# OTP_LIFE_SPAN=900000
# BOUNCE_LIFE_SPAN=1800000
# BOUNCE_LIFE_SPAN=86400000
# AGGREGATE_COLLECTION=

# If provided, a banner with the provided message will show up in every form.
Expand Down
13 changes: 3 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ cache:
- npm
- pip

# Setup browsers needed for end-to-end tests
before_install:
- sudo apt-get clean && sudo apt-get update
- sudo apt-get install -y dpkg google-chrome-stable fluxbox chromium-browser
addons:
chrome: stable

notifications:
email:
Expand All @@ -25,17 +23,12 @@ notifications:
on_success: always
on_failure: always

before_script:
- fluxbox >/dev/null 2>&1 &
- pyenv global 3.7.1
- pip3 install --user localstack[full]

script:
- set -e
- npm run lint-ci
- npm run build
- npm run test-ci
# - npm run test-e2e-ci
- npm run test-e2e-ci

before_deploy:
# Workaround to run before_deploy only once
Expand Down
388 changes: 211 additions & 177 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Dockerfile.development
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ EXPOSE 5000
# e.g. chromium when launched to create a new PDF
ENTRYPOINT [ "tini", "--" ]
# Create local S3 buckets before building the app
CMD sh init-localstack.sh && npm run docker-dev
CMD npm run docker-dev
16 changes: 11 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
- /opt/formsg/node_modules
ports:
- '5000:5000'
- '4572:4572' # localstack ports
- '4566:4566' # localstack ports
- '5156:5156' # mockpass ports
- '9229:9229' # Node debugger port
environment:
Expand All @@ -25,10 +25,11 @@ services:
- IMAGE_S3_BUCKET=local-image-bucket
- LOGO_S3_BUCKET=local-logo-bucket
- FORMSG_SDK_MODE=development
- BOUNCE_LIFE_SPAN=1800000
- BOUNCE_LIFE_SPAN=86400000
- AWS_ACCESS_KEY_ID=fakeKey
- AWS_SECRET_ACCESS_KEY=fakeSecret
- SESSION_SECRET=thisisasecret
- AWS_ENDPOINT=http://localhost:4566
- GA_TRACKING_ID
- SENTRY_CONFIG_URL
- TWILIO_ACCOUNT_SID
Expand Down Expand Up @@ -64,7 +65,6 @@ services:
- IS_SP_MAINTENANCE
- IS_CP_MAINTENANCE
- AGGREGATE_COLLECTION
- AWS_ENDPOINT=http://localhost:4572

mockpass:
build: https://github.com/opengovsg/mockpass.git
Expand Down Expand Up @@ -92,17 +92,23 @@ services:
- '27017:27017'

localstack:
image: localstack/localstack:latest
image: localstack/localstack:0.11.5
container_name: formsg-localstack
depends_on:
- formsg
environment:
- SERVICES=s3
- DATA_DIR=/tmp/localstack/data
- ATTACHMENT_S3_BUCKET=local-attachment-bucket
- IMAGE_S3_BUCKET=local-image-bucket
- LOGO_S3_BUCKET=local-logo-bucket
volumes:
- './.localstack:/tmp/localstack'
- '/var/run/docker.sock:/var/run/docker.sock'
network_mode: 'service:formsg' # reuse formsg service's network stack so that it can resolve localhost:4572 to localstack:4572
# This is where we add scripts to initialise AWS resources.
# Docs: https://github.com/localstack/localstack#initializing-a-fresh-instance
- './docker-entrypoint-initaws.d:/docker-entrypoint-initaws.d'
network_mode: 'service:formsg' # reuse formsg service's network stack so that it can resolve localhost:4566 to localstack:4566

volumes:
mongodata:
6 changes: 6 additions & 0 deletions docker-entrypoint-initaws.d/init-localstack.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -x
awslocal s3 mb s3://$IMAGE_S3_BUCKET
awslocal s3 mb s3://$LOGO_S3_BUCKET
awslocal s3 mb s3://$ATTACHMENT_S3_BUCKET
set +x
80 changes: 40 additions & 40 deletions docs/DEPLOYMENT_SETUP.md

Large diffs are not rendered by default.

10 changes: 0 additions & 10 deletions init-localstack.sh

This file was deleted.

Loading