Skip to content

Releases: opengovsg/FormSG

v4.30.2

09 Sep 08:25
Compare
Choose a tag to compare

Problem

  1. In the current release, logs from our /emailnotifications endpoint are going to the main log group instead of the custom log group formsg-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.

  2. An extra trailing / was introduced to the AWS endpoint during the TypeScript migration, breaking all image, logo and attachment uploads and downloads.

Solution

  1. The problem was that during the TypeScript migration for src/config/logger, the AWS and CloudWatch environment variables were modified to be imported from config instead of taken directly from process.env. This caused them to be undefined because config depends on logger, resulting in a circular dependency. The solution is to get the env vars directly from process.env instead of importing them from config.

  2. Removing the trailing /.

v4.30.1

09 Sep 08:25
Compare
Choose a tag to compare

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.