Releases: opengovsg/FormSG
v4.30.2
Problem
-
In the current release, logs from our
/emailnotifications
endpoint are going to the main log group instead of the custom log groupformsg-email-notifications-production
. This means that our bounce alarms are on the wrong log group, and email logs are being stored for a year instead of a week as intended. -
An extra trailing
/
was introduced to the AWS endpoint during the TypeScript migration, breaking all image, logo and attachment uploads and downloads.
Solution
-
The problem was that during the TypeScript migration for
src/config/logger
, the AWS and CloudWatch environment variables were modified to be imported fromconfig
instead of taken directly fromprocess.env
. This caused them to be undefined becauseconfig
depends onlogger
, resulting in a circular dependency. The solution is to get the env vars directly fromprocess.env
instead of importing them fromconfig
. -
Removing the trailing
/
.
v4.30.1
While migrating src/shared/constants.js
to TypeScript, one of the enum fields was accidentally changed from uppercase to sentence case. This caused a problem where old clients were not able to create form fields. This release fixes the issue.