-
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 5.7.0 #1680
build: release 5.7.0 #1680
Conversation
…pi/v3 router (#1574) * refactor(frontend-api): duplicate frontend client endpoints to new /api/v3 router - duplicate frontend client endpoints functionality and update them to use the new api v3 routes - update v3 router to use new endpoints - update frontend api calls to use new endpoints * refactor(frontend-api): use updated frontend handlers * refactor(frontend-api): clean up routes and update comments * fix(frontend-api): fix /features route and clean up routes
…api/v3 (#1589) * refactor(settings-api): shard admin routes into separate files * refactor(feedback-api): duplicate adminform feedback endpoints to new /api/v3 router - duplicate adminform feedback endpoint functionalities and update them to use the new api v3 routes - update v3 router to use new endpoints - update frontend api calls to use new endpoints * fix(feedback-api): add auth middleware back to main admin router * test(feedback-api): update test router to use real root route * refactor(forms-routes): fix tests and clean up endpoints - remove duplicated auth middleware from feedback endpoints - import index level router for form-route tests to account for shifted auth middleware - shard index into admin-forms.routes and index to follow convention * ref(feedback-api): rename handle-get-form-feedbacks to feedback
chore: merge release v5.6.0 back to develop
Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.884.0 to 2.885.0. - [Release notes](https://github.com/aws/aws-sdk-js/releases) - [Changelog](https://github.com/aws/aws-sdk-js/blob/master/CHANGELOG.md) - [Commits](aws/aws-sdk-js@v2.884.0...v2.885.0) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [date-fns](https://github.com/date-fns/date-fns) from 2.20.2 to 2.20.3. - [Release notes](https://github.com/date-fns/date-fns/releases) - [Changelog](https://github.com/date-fns/date-fns/blob/master/CHANGELOG.md) - [Commits](date-fns/date-fns@v2.20.2...v2.20.3) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 8.1.0 to 8.2.0. - [Release notes](https://github.com/prettier/eslint-config-prettier/releases) - [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md) - [Commits](prettier/eslint-config-prettier@v8.1.0...v8.2.0) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [concurrently](https://github.com/kimmobrunfeldt/concurrently) from 6.0.1 to 6.0.2. - [Release notes](https://github.com/kimmobrunfeldt/concurrently/releases) - [Commits](kimmobrunfeldt/concurrently@v6.0.1...v6.0.2) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* style(admin-forms/feedback): fixed misspelling of admin * refactor(admin-form/controller): combined validator into handleCountFormSubmission * refactor(admin-forms/submissions): duplicates over submissions over to new routes * refactor(submissions/client/factory): removed FE callsite * fix(admin-forms/submission): adds joi/date to base joi * test(admin-forms/submissions): adds test from old route * fix(submissions/client/factory): fixed endpoints for adminform * refactor(encrypt-submission): combines validation together with handler * test(encrypt-submission): fixes controller tests due to atomic export for validator + handler * test(admin-forms/submissoins): ports over tests for submissions/download * refactor(submissions/client/factory): changed frontend to call new backend api * chore(admin-forms/submissions): renamed file from submission to submissions * style(submissions/client/factory): combined api and admin form prefix into one * fix(admin-form/encrypt-submission): fixed date validation to be min instead of greater * test(admin-forms): added tests for date validation to submissions/count and submissions/download as start date can be equal to end date, the hotfix in #1634 was ported over. additionally, an extra unit test for /submissions/download was added to ensure that the same issue does not plague it * style(admin-forms/submissions): changed submission to be submissionS * docs(admin-forms/submissions): fixed comment
Bumps [date-fns](https://github.com/date-fns/date-fns) from 2.20.3 to 2.21.0. - [Release notes](https://github.com/date-fns/date-fns/releases) - [Changelog](https://github.com/date-fns/date-fns/blob/master/CHANGELOG.md) - [Commits](date-fns/date-fns@v2.20.3...v2.21.0) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.885.0 to 2.886.0. - [Release notes](https://github.com/aws/aws-sdk-js/releases) - [Changelog](https://github.com/aws/aws-sdk-js/blob/master/CHANGELOG.md) - [Commits](aws/aws-sdk-js@v2.885.0...v2.886.0) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [fp-ts](https://github.com/gcanti/fp-ts) from 2.9.5 to 2.10.0. - [Release notes](https://github.com/gcanti/fp-ts/releases) - [Changelog](https://github.com/gcanti/fp-ts/blob/master/CHANGELOG.md) - [Commits](gcanti/fp-ts@2.9.5...2.10.0) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* refactor(encrypt-submission): combines validator and controller together as a single export * test(encrypt-submission/test): fixes tests for getting a submission from query params * feat(encrypt-submissions/controller): adds new controller method for GET /submissions/submissionId * test(encrypt-submission/controller): adds tests for getEncryptedResponse * fix(encrypt-submission/controller): fixes rebase errors * refactor(encrypt-submission): removed validation from controller as express can validate it * test(encrypt-submission): renamed getEncryptedResponse to handleGetEncryptedResponse * feat(admin-forms/submission/routes): adds GET /submissions/:submissionId to new api rooted endpoint * test(admin-forms/submissions/routes/test): ported over tests from old endpoint; changed to use url * refactor(submission/client/factory): changed FE callsites * style(submissions/routes/tests): changed '/admin/forms' to a constant * docs(encrypt-submission/controller): added jsdoc for deprecation * docs(encrypt-submissino): adds deprecate marker on routes also
#1588) * refactor(public-forms/api): updated endpoints to new /api/v3 endpoitns * test(public-forms/routes): added integration tests for POST :formId/feedback * refactor(public-forms/routes): shifts email submission to new v3 Router * refactor(public-forms/routes): separated routing from middlewares in email form submission * test(public-forms/routes): copied over email submission tests * chore(public-forms.routes): fixes imports * refactor(public-forms): fe now calls new be endpoint; feedback changed to plural * test(public-forms/routes): changed feedback to feedbacks * refactor(form-feedback/submissions): changed endpoint which fe queries * refactor(public-forms/routes): shifted submit encrypted form ot v3/api * test(public-forms/routes): shifted tests for encrypt submissions to new api/v3 * refactor(public-form/routes): shifted over getpublicform to new v3 api * style(public-forms/routes): renamed feedbacks to feedback * refactor(public-form/controller): changed typing to use dto * test(public-forms/routes): fixes tests * refactor(form-api): changed to new BE api * docs(public-forms): fixed comment pointing out plural(?) form of feedback * fix(form-api): fixed url in new backend call * style(public-forms/form-api): removed unused variable/removed extra '/' for consistencyt * refactor(public-forms): collapses validation middleware into handleSubmitFeedback * test(public-form/controller): fixes test related to collapsing validation \ * refactor(email-submission): exports submissoin handler together with validation * refactor(encrypt-submission): exports handler together with validator * refactor(public-forms/routes): changed endpoints to reflect validation moving into controller * docs(public-forms/routes): add deprecation warning in jsdoc
chore: merge release v5.6.1 back to develop
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 26.5.4 to 26.5.5. - [Release notes](https://github.com/kulshekhar/ts-jest/releases) - [Changelog](https://github.com/kulshekhar/ts-jest/blob/master/CHANGELOG.md) - [Commits](kulshekhar/ts-jest@v26.5.4...v26.5.5) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [fp-ts](https://github.com/gcanti/fp-ts) from 2.10.0 to 2.10.2. - [Release notes](https://github.com/gcanti/fp-ts/releases) - [Changelog](https://github.com/gcanti/fp-ts/blob/master/CHANGELOG.md) - [Commits](gcanti/fp-ts@2.10.0...2.10.2) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [csv-parse](https://github.com/wdavidw/node-csv-parse) from 4.15.3 to 4.15.4. - [Release notes](https://github.com/wdavidw/node-csv-parse/releases) - [Changelog](https://github.com/adaltas/node-csv-parse/blob/master/CHANGELOG.md) - [Commits](adaltas/node-csv-parse@v4.15.3...v4.15.4) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 3.3.1 to 3.4.0. - [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases) - [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md) - [Commits](https://github.com/prettier/eslint-plugin-prettier/commits) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix: stop mongo memory server on test database close this fixes a memory leak where the server continues running after every test * test(VfnSvc): fix mem leak by closing test db after suite finishes
Bumps [opossum](https://github.com/nodeshift/opossum) from 6.0.0 to 6.0.1. - [Release notes](https://github.com/nodeshift/opossum/releases) - [Changelog](https://github.com/nodeshift/opossum/blob/main/CHANGELOG.md) - [Commits](nodeshift/opossum@v6.0.0...v6.0.1) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.886.0 to 2.888.0. - [Release notes](https://github.com/aws/aws-sdk-js/releases) - [Changelog](https://github.com/aws/aws-sdk-js/blob/master/CHANGELOG.md) - [Commits](aws/aws-sdk-js@v2.886.0...v2.888.0) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…1594) * refactor(email-submission/controller): refactored email submission to be chained * refactor(email-submission/controller): refactored controller to use new methods * refactor(spcp.util): removed unused methods * fix(email-submission): fixed bug caused by rebasing off develop * refactor(email-submission): add new type and refactored email submission controller to use type * refactor(email-submission): removed logging utility method * refactor(email-submission): add explicit type annotation for clarity * refactor(email-submission/util): adds default argument to email submission object * docs(email-submission): added docs for not clearing of cookies in error case for submission * docs(email-submission/controller): fixed typo
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.37 to 14.14.41. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [date-fns](https://github.com/date-fns/date-fns) from 2.21.0 to 2.21.1. - [Release notes](https://github.com/date-fns/date-fns/releases) - [Changelog](https://github.com/date-fns/date-fns/blob/master/CHANGELOG.md) - [Commits](date-fns/date-fns@v2.21.0...v2.21.1) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [jest-mock-axios](https://github.com/knee-cola/jest-mock-axios) from 4.3.0 to 4.4.0. - [Release notes](https://github.com/knee-cola/jest-mock-axios/releases) - [Changelog](https://github.com/knee-cola/jest-mock-axios/blob/master/CHANGELOG.md) - [Commits](knee-cola/jest-mock-axios@v4.3.0...v4.4.0) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [helmet](https://github.com/helmetjs/helmet) from 4.4.1 to 4.5.0. - [Release notes](https://github.com/helmetjs/helmet/releases) - [Changelog](https://github.com/helmetjs/helmet/blob/main/CHANGELOG.md) - [Commits](helmetjs/helmet@v4.4.1...v4.5.0) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…/v3i (#1635) * refactor(admin-form-api): duplicate adminform form endpoints for /api/v3i - duplicate and update adminform form related endpoints - duplicate integration tests for new endpoint - update v3 router to use new endpoints - update frontend api calls to use new endpoints * refactor(admin-form-api): remove unneeded joi-date extension * ref(admin-form-api): remove duplicate user auth middleware from routes * ref(admin-form-api): remove trailing / for consistency * ref(admin-form-api): consolidate validators into controller - shift validators into admin-form controller - update handler methods to include validators as request handler array - update controller integration tests - update old routes to use new handler - update new routes to use new handler
* test: fix possibly flakey test by assigning constant to date flakey on travis but not on local, this is just an attempt to hopefully fix the flake * test: remove unnecessary comments
Bumps [fp-ts](https://github.com/gcanti/fp-ts) from 2.10.2 to 2.10.3. - [Release notes](https://github.com/gcanti/fp-ts/releases) - [Changelog](https://github.com/gcanti/fp-ts/blob/master/CHANGELOG.md) - [Commits](gcanti/fp-ts@2.10.2...2.10.3) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [core-js](https://github.com/zloirock/core-js/tree/HEAD/packages/core-js) from 3.10.1 to 3.10.2. - [Release notes](https://github.com/zloirock/core-js/releases) - [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md) - [Commits](https://github.com/zloirock/core-js/commits/v3.10.2/packages/core-js) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix: loose home number validation for sg numbers * chore: add test case * docs: add docs on singapore national numbering plan * refactor: reuse startsWithSgPrefix
TestsIntranet IE11 runthrough
|
@tshuli
|
@karrui
duplicate adminform form endpoints for /api/v3i
|
@karrui
|
@tshuli
|
@tshuli
|
@karrui NOTE: Attempt the below tests in all auth types
|
@seaerchin
|
Release cannot be rolled back due to API endpoint changes
Improvements
#1641
#1645
#1635
#1594
#1589
#1574
#1588
#1668
Fixes
#1659
#1663
9f0930e
Dependency Updates
#1636
#1648
#1656
#1653
#1677
#1646
#1665
#1658
#1657
#1638
#1678
#1660
#1637
#1649
#1662
#1639
#1661
#1667
#1654