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.143.1 to develop #7622

Merged
merged 3 commits into from
Aug 23, 2024
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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,23 @@ 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.143.1](https://github.com/opengovsg/FormSG/compare/v6.143.0...v6.143.1)

- fix(mrf): ensure number of non-editable fields are still present [`#7617`](https://github.com/opengovsg/FormSG/pull/7617)
- build: release v6.143.0 [`#7610`](https://github.com/opengovsg/FormSG/pull/7610)

#### [v6.143.0](https://github.com/opengovsg/FormSG/compare/v6.142.0...v6.143.0)

> 20 August 2024

- feat: change nric mask toggle to nric collection toggle [`#7566`](https://github.com/opengovsg/FormSG/pull/7566)
- fix(deps): bump type-fest from 4.24.0 to 4.25.0 in /shared [`#7606`](https://github.com/opengovsg/FormSG/pull/7606)
- chore(deps-dev): bump elliptic from 6.5.4 to 6.5.7 in /frontend [`#7605`](https://github.com/opengovsg/FormSG/pull/7605)
- fix(deps): bump elliptic from 6.5.4 to 6.5.7 [`#7604`](https://github.com/opengovsg/FormSG/pull/7604)
- fix(deps): bump libphonenumber-js from 1.11.5 to 1.11.7 in /shared [`#7603`](https://github.com/opengovsg/FormSG/pull/7603)
- build: merge release v6.142.0 to develop [`#7602`](https://github.com/opengovsg/FormSG/pull/7602)
- build: release v6.142.0 [`#7601`](https://github.com/opengovsg/FormSG/pull/7601)
- chore: bump version to v6.143.0 [`377e808`](https://github.com/opengovsg/FormSG/commit/377e808ba4c62f687f798bcf1fe7831e45768512)

#### [v6.142.0](https://github.com/opengovsg/FormSG/compare/v6.141.0...v6.142.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.143.0",
"version": "6.143.1",
"homepage": ".",
"private": true,
"dependencies": {
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.143.0",
"version": "6.143.1",
"homepage": "https://form.gov.sg",
"authors": [
"FormSG <[email protected]>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ export const validateMultirespondentSubmission = async (
)
.andThen(() => {
// Step 3: Match non-editable response fields to previous version

const nonEditableFieldIdsWithResponses = Object.keys(
req.body.responses,
).filter((fieldId) => !editableFieldIds.includes(fieldId))
Expand Down Expand Up @@ -461,6 +462,17 @@ export const validateMultirespondentSubmission = async (
const previousResponses =
previousSubmissionDecryptedContent.responses as ParsedClearFormFieldResponsesV3

const previousNonEditableFieldIdsWithResponses = Object.keys(
previousResponses,
).filter((fieldId) => !editableFieldIds.includes(fieldId))

for (const fieldId of previousNonEditableFieldIdsWithResponses) {
// ensure that respondents cannot alter a non-editable field by omitting the field in the submission by re-inserting the previous fields that are non-editable
if (!req.body.responses[fieldId]) {
req.body.responses[fieldId] = previousResponses[fieldId]
}
}

return Result.combine(
nonEditableFieldIdsWithResponses.map((fieldId) => {
const incomingResField = req.body.responses[fieldId]
Expand Down
Loading