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: merge release v6.89.1 into develop #6905

Merged
merged 8 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,39 @@ 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).

#### [v6.89.1](https://github.com/opengovsg/FormSG/compare/v6.89.0...v6.89.1)

- build: release v6.89.0 [`#6898`](https://github.com/opengovsg/FormSG/pull/6898)
- fix: remove myinfo child from storage mode [`#6901`](https://github.com/opengovsg/FormSG/pull/6901)
- fix: add error handling [`d6c4985`](https://github.com/opengovsg/FormSG/commit/d6c4985aa8e35dd2278af9b70d00d4e86a48bde1)
- fix: remove email mode from myinfo limit message [`5a45c98`](https://github.com/opengovsg/FormSG/commit/5a45c980dbe3fc8c15eacb3ff1827f3003fcbfc4)

#### [v6.89.0](https://github.com/opengovsg/FormSG/compare/v6.88.0...v6.89.0)

> 15 November 2023

- fix: add learn more link [`#6897`](https://github.com/opengovsg/FormSG/pull/6897)
- chore: security upgrade axios to 1.6.2 [`#6893`](https://github.com/opengovsg/FormSG/pull/6893)
- feat: myinfo for storage-mode [`#6870`](https://github.com/opengovsg/FormSG/pull/6870)
- feat: announcement modal and what's new for myinfo storage-mode [`#6892`](https://github.com/opengovsg/FormSG/pull/6892)
- chore: remove eb shift frontend feature flags [`#6869`](https://github.com/opengovsg/FormSG/pull/6869)
- chore(deps-dev): bump @types/lodash from 4.14.200 to 4.14.201 in /shared [`#6888`](https://github.com/opengovsg/FormSG/pull/6888)
- chore(deps): bump axios from 1.2.1 to 1.6.0 in /frontend [`#6887`](https://github.com/opengovsg/FormSG/pull/6887)
- fix(deps): bump axios from 1.2.1 to 1.6.0 [`#6886`](https://github.com/opengovsg/FormSG/pull/6886)
- fix(deps): bump type-fest from 4.5.0 to 4.7.1 in /shared [`#6883`](https://github.com/opengovsg/FormSG/pull/6883)
- build: merge release 6.88.0 into develop [`#6882`](https://github.com/opengovsg/FormSG/pull/6882)
- build: release v6.88.0 [`#6881`](https://github.com/opengovsg/FormSG/pull/6881)
- chore: bump version to v6.89.0 [`1665a48`](https://github.com/opengovsg/FormSG/commit/1665a48b0ff133378c7126d3fedf8f1145f67111)

#### [v6.88.0](https://github.com/opengovsg/FormSG/compare/v6.87.0...v6.88.0)

> 9 November 2023

- chore: add note to update guide to sync with file exts [`#6876`](https://github.com/opengovsg/FormSG/pull/6876)
- fix(datepicker): webkit-related stylings [`#6875`](https://github.com/opengovsg/FormSG/pull/6875)
- build: merge release 6.87.0 into develop [`#6879`](https://github.com/opengovsg/FormSG/pull/6879)
- build: release v6.87.0 [`#6878`](https://github.com/opengovsg/FormSG/pull/6878)
- chore: bump version to v6.88.0 [`352ae5c`](https://github.com/opengovsg/FormSG/commit/352ae5c49ed30d73450364f8b4d6048e21f72ee2)

#### [v6.87.0](https://github.com/opengovsg/FormSG/compare/v6.86.0...v6.87.0)

Expand Down
4 changes: 2 additions & 2 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "form-frontend",
"version": "6.88.0",
"version": "6.89.0",
"homepage": ".",
"private": true,
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ Warning.args = {
export const Error = InlineMessageTemplate.bind({})
Error.args = {
variant: 'error',
children: `Only 30 MyInfo fields are allowed in Email mode (30/30). [Learn more](http://localhost:6006)`,
children: `Only 30 MyInfo fields are allowed (30/30). [Learn more](http://localhost:6006)`,
useMarkdown: true,
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ import { Box, Text } from '@chakra-ui/react'
import { useFeatureIsOn, useGrowthBook } from '@growthbook/growthbook-react'

import { featureFlags } from '~shared/constants'
import { AdminFormDto, FormAuthType, MyInfoAttribute } from '~shared/types'
import {
AdminFormDto,
FormAuthType,
FormResponseMode,
MyInfoAttribute,
} from '~shared/types'

import { GUIDE_EMAIL_MODE } from '~constants/links'
import { ADMINFORM_SETTINGS_SINGPASS_SUBROUTE } from '~constants/routes'
Expand Down Expand Up @@ -200,7 +205,8 @@ export const MyInfoFieldPanel = () => {
</Box>
)}
</Droppable>
{user?.betaFlags?.children ? (
{user?.betaFlags?.children &&
form?.responseMode === FormResponseMode.Email ? (
<Droppable isDropDisabled droppableId={CREATE_MYINFO_CHILDREN_DROP_ID}>
{(provided) => (
<Box ref={provided.innerRef} {...provided.droppableProps}>
Expand Down Expand Up @@ -252,7 +258,7 @@ const MyInfoText = ({

return (
<Text>
{`Only 30 MyInfo fields are allowed in Email mode (${numMyInfoFields}/30). `}
{`Only 30 MyInfo fields are allowed (${numMyInfoFields}/30). `}
<Link isExternal href={GUIDE_EMAIL_MODE}>
Learn more
</Link>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "FormSG",
"description": "Form Manager for Government",
"version": "6.88.0",
"version": "6.89.1",
"homepage": "https://form.gov.sg",
"authors": [
"FormSG <[email protected]>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,32 +430,6 @@ export const validateStorageSubmission = async (
req.formsg.filteredResponses = responses
return { parsedResponses, form: formDef }
})
.mapErr((error) => {
// TODO(FRM-1318): Set DB flag to true to harden submission validation after validation has similar error rates as email mode forms.
if (
req.formsg.featureFlags.includes(
featureFlags.encryptionBoundaryShiftHardValidation,
)
) {
logger.error({
message: 'Error processing responses',
meta: logMeta,
error,
})
const { statusCode, errorMessage } = mapRouteError(error)
return res.status(statusCode).json({
message: errorMessage,
})
}
logger.warn({
message:
'Error processing responses, but proceeding with submission as submission have been validated client-side',
meta: logMeta,
error,
})
req.formsg.filteredResponses = req.body.responses
return error
})
.andThen(({ parsedResponses, form }) => {
// Validate MyInfo responses
const { authType } = form
Expand Down Expand Up @@ -511,8 +485,9 @@ export const validateStorageSubmission = async (
meta: logMeta,
error,
})
return res.status(StatusCodes.INTERNAL_SERVER_ERROR).json({
message: 'Error saving responses in req.body',
const { statusCode, errorMessage } = mapRouteError(error)
return res.status(statusCode).json({
message: errorMessage,
spcpSubmissionFailure,
})
})
Expand Down
Loading