-
Notifications
You must be signed in to change notification settings - Fork 84
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 v6.72.0 #6649
Merged
Merged
build: release v6.72.0 #6649
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build: merge release v6.71.0 into develop
* feat: upgrade to sgID v2 SDK * chore: update docker setup * chore: update package.json * fix: update bson version for tests * chore: update package-lock.json * chore: commit package.json files with no-verify * chore: remove console logs * chore: update package-lock * chore: update package-lock * chore: change node version * chore: change npm version * chore: pin bson version * chore: actually pin bson versoin * fix: fix helmet type import * chore: update deps * chore: update mockpass dev dependency version * chore: revert out-of-scope changes * chore: refactors * chore: remove unneeded packages * test: update sgid service tests with generatePkcePair mocks * test: fix tests again --------- Co-authored-by: Justyn Oh <justynoh@gmail.com>
Bumps [zod](https://github.com/colinhacks/zod) from 3.22.1 to 3.22.2. - [Release notes](https://github.com/colinhacks/zod/releases) - [Changelog](https://github.com/colinhacks/zod/blob/master/CHANGELOG.md) - [Commits](colinhacks/zod@v3.22.1...v3.22.2) --- updated-dependencies: - dependency-name: zod dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- fix: rm storage isPreview deprecatedCheck - fix: rm unused EncryptSubmissionBodyAfterProcess
…6595) * refactor: mv encryptSubmission in submitEncryptModeForm * fix: separate submit for encrypt and storage * feat: storage submission validation * fix: getResponseModeFilter tests * fix: remove guardrail for submitEncryptModeForm * fix: Gone error message if public form is deleted * refactor: extract checks into ensure pipelines * fix: next() to be awaited * refactor: steps for encrypted submissions * refactor: extract steps into middleware file * refactor: pass context with req.body * fix: send error responses * fix: filter nomenclature * refactor: move flag str to constants file * docs: add TODOs to remove filters * refactor: use isEncryptedMode bool const * fix: restore retrieveForm step * fix: storage mode submission * refactor: controller handler types * refactor: mv code used by new endpoint out from email-submission - validateAttachments + ParsedResponsesObject * fix: filter name in tests * fix: tests for refactored email submission code * test: filteredResponses in IncomingEncryptSubmission * fix: rm isVisible set for Encrypt in ParsedResponsesObject - only used for new storage endpoint * fix: newEncryptionBoundary prop and isVisible * fix: form model default newEncryptionBoundary val * fix: validateAttachments check limits based on type * refactor: rm newEncryptionBoundaryFlag constant * fix: type newEncryptionBoundary to never for email * fix: tests after newEncryptionBoundary rm from email * refactor: middleware for better compile type checks * docs: remove dangling comment * fix: newEncryptionBoundary typing * refactor: use FormResponseMode for fileSizeLimit * refactor: use encryptionBoundaryShift as flag * fix: Gone when submission is tried on deleted form * feat: catch-all res for ensures * refactor: use req.formsg to store context * refactor: use NextFunction typing * revert: "feat: catch-all res for ensures" This reverts commit 64ca3e8. * feat: ensures catch-all res return
) * feat: create TransferOwnershipModal story (note pending TODO/FIXME) * feat: make email address bold and danger.500 when confirming submission and add TODO/FIXME * feat: prevent self-transfer and add unit tests (todo: fix mutation) * feat: add route for getting owned forms * fix: partially fix frontend typing for mutation * feat: fix mutation * chore: add missing FIXME * fix: fix type, route and add fixmes for mocking endpoints * feat: mock endpoints relevant to transfer-ownership and remove unneeded FIXME * fix: fix endpoint mock bug (remove Default.parameters override) and add other FIXMEs * feat: add TransferOwnershipModal to AdminNavBar and fix wiring * test: add /owned unit tests and add DRY FIXMEs * fix: remove unwanted diff * fix: remove catch block so that the promise remains rejected * feat: return a rejected promise in UserService/transferOwnership if there are no owned forms * chore: remove irrelevant fixme * fix: fix types * fix: fix transferOwnership mock response from array to single form * test: wait for toast to appear in TransferOwnershipModal test * test: add tests for GET /admin/forms/owned * chore: remove non-applicable and low-priority FIXMEs/TODOs * fix: add missing filter and spy on the correct method * refactor: rename /owned to /mine and getFormsOwnedByUserId to retrieveFormsOwnedByUserId * refactor: add Please try again to error msg * feat: include archived forms in /mine * fix: revert wrongly edited test * feat: add new route to transfer all forms belonging to a single admin * fix: update endpoint used in transferOwnership * test: replace /mine tests with /all-transfer-owner * ref: remove redundant findUserByEmail query * test: add tests for transferAllFormsOwnership in admin-form.controller * feat: refetch forms when transfer is successful * feat: update permission list * feat: trim emails --------- Co-authored-by: wanlingt <wanling@open.gov.sg>
* chore: update copy for product modal errors * chore: update copy for variable payment preview * chore: update table width, ordering, and copy for response table * chore: update ui admin inidivual response page * chore: remove extra characters * fix: typo for minimum amount error message --------- Co-authored-by: Lin Huiqing <37061143+LinHuiqing@users.noreply.github.com>
* fix: disable save button when no there are no products * fix: add be validation on product count before saving
* feat: dashboard infobox for e2ee * docs: add todo for dashboard message env var --------- Co-authored-by: wanlingt <wanling@open.gov.sg>
Ohh so if i delete the payment field on a form that previous have payments, the payment headers will still disappear in the reconciliation dashboard, eventhough the responses have payment details in them I think it's non-blocking, but do you think we should display the headers based on whether there is a response with payment rather than if payment field is enabled? @KenLSM |
foochifa
approved these changes
Aug 23, 2023
This was referenced Aug 24, 2023
Closed
Closed
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New
#6647
#6646
#6637
#6087
#6595
#6641
#6584
#6636
#6635
Dependencies
#6643
Dev-Dependencies
Tests
feat: dashboard infobox message for e2ee
#6647
@wanlingt
fix: prevent saving empty product items
#6646
@foochifa
Regression
Feature Test
SaveButton
is not interactive if there are noProductItems
ProductItem
cannot be deleted (As discussed with @KenLSM this will be fixed in a future PR)feat: ui review changes
#6637
@foochifa
Admin individual response page
Admin response table
On payment forms
On non-payment forms
Variable payment preview
Create and build page
paymentMax
is not populatedfeat: enable ownership transfer of all forms with a single action [
#6087
] (#6087)@LinHuiqing
- Form A: Another admin (can use your email address with + as a suffix, for example wanling+@open.gov.sg) has been added as a collaborator with 'read' permissions
- Form B: That other admin (wanling+@open.gov.sg) is not a collaborator
- Forms A and B: you should be an 'Owner' of both forms
feat: storage submission validation with encryption shift endpoint
#6595
@wanlingt
To check that existing email submission validation works:
To check that new endpoint is still able to make valid submissions:
/submissions/storage
"version":1
to the response bodyTo check that submission validation for new endpoint works:
Regression tests:
feat: upgrade sgid sdk
#6584
@LinHuiqing
code_verifier
cookie is missing./ogp-login
route. This should work correctly.Deploy Notes
New environment variables:
SGID_HOSTNAME
indocker-compose.yml
: updated accordingly to Mockpass' changes. No changes required for staging/prod env vars.New dependencies:
@opengovsg/sgid-client
: Bumped from^1.0.4
tov2.0.0
.mockpass
: Bumped fromv3.1.3
tov4.0.4
.