-
Notifications
You must be signed in to change notification settings - Fork 83
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.71.0 #6635
build: release v6.71.0 #6635
Conversation
Bumps [zod](https://github.com/colinhacks/zod) from 3.21.4 to 3.22.1. - [Release notes](https://github.com/colinhacks/zod/releases) - [Changelog](https://github.com/colinhacks/zod/blob/master/CHANGELOG.md) - [Commits](colinhacks/zod@v3.21.4...v3.22.1) --- updated-dependencies: - dependency-name: zod dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…rray to an object (#6628) feat: add datafix script
build: merge v6.70.0 into develop
* fix: skip qty validation when multiqty is disabled * test: add cases to test for disabled multi qty field * fix: updatepaymentsproduct should treat qty as 1 when multiqty is false * chore: update copy for min max ammount * fix: incorrect test cases * fix: multi_qty not having defaults, maxqty validation should skip if display_amount_keys is undefined * fix: max quantity error swallowed by empty amount
* feat: add isPlatform property to user model * feat: add new endpoint for platform api routes * feat: add routes to get and patch webhook settings * feat: add rate limit config for platform API * doc: update status codes * fix: refine validator * feat: create api user types * fix: remove logging of api token * feat: add logging to admin-form.controller * fix: change isPlatform to boolean type * fix: use POST instead of GET and add validator * fix: allow non-platform users to exit isPlatformApiUser middleware * fix: move routes from /platform/v1 to /public/v1 * fix: remove all references to /platform/v1 * fix: catch error from missing user
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests are done! :)
2 comments on #6608:
|
On pt1 I think it's because we have to include the user email right? And its unsafe to use a param or to put it as part of the url path. I think previously @timotheeg and I had a discussion about this when checking for duplicate payments based on email |
Oo cool, TIL. Thanks @foochifa! |
@LinHuiqing thanks for adding the test!! and great question! yes to what @foochifa said |
New
#6608
#6634
#6629
#6633
#6624
#6631
#6630
#6625
#6627
#6628
#6623
Dependencies
#6626
Dev-Dependencies
Tests
feat: platform api v1 - get and update webhook settings
#6608
@LinHuiqing
POST /api/public/v1/admin/forms/:formId/webhooksettings
to retrieve webhook settingsPATCH /api/public/v1/admin/forms/:formId/webhooksettings
to update webhook settingshttps://random.site.ugh
). An error should be thrown and the webhook settings should not be updated.fix: remove space from receipt link email
#6634
@wanlingt
feat: display payment products on individual response page and csv download
#6629
@foochifa
-
for older fixed payments on both of the individual response page and CSV download.fix: default payment type to products
#6633
@wanlingt
fix: skip qty validation when multiqty is disabled
#6624
@wanlingt
Quantity below max payment amount (200k)
9
$20000.00
Quantity at max payment amount (200k)
10
$20000.00
Quantity above max payment amount (200k)
11
$20000.00
Regression
Please enter a valid payment amount
Please enter a valid payment amount
feat: add logging to capture DNS resolution error
#6631
@foochifa
fields @timestamp, @message, @logStream, @log
| filter message like 'Webhook URL failed validation' and meta.action like 'validateWebhookUrl'
chore: reduce toast duration to 4s
#6630
@justynoh
fix: product item button check for payment is not enabled
#6625
@justynoh
Buttons are disabled and non-interactable
PaymentInputPanel
are now faded out (disabled variant)feat: add datafix script to convert payment_fields_snapshot from an array to an object
#6628
Before running the DB script:
payment_fields_snapshot
is an array. The product/service name should be missing.After running the DB script:
Deploy Notes
New scripts:
convert-payment-fields-snapshot-to-object.js
: This script adds thepayment_fields_snapshot
field to the payments collection and sets the field as the form document'spayment_field
for all existing documents.New environment variables:
PLATFORM_API_RATE_LIMIT
: Per-minute, per-IP, per-instance request limit for platform APIs