Skip to content

Conversation

@pregnantboy
Copy link
Contributor

@pregnantboy pregnantboy commented Oct 15, 2025

feat: allow mrf check when connecting forms

Changes

  • Removed checks for MRF forms
  • Added MRF prefix to form names in the connection list

Refactors

  • Refactored fetching form schema to it's own function

To test

  • Should be able to connect an MRF form and test step

@pregnantboy pregnantboy force-pushed the mrf/allow-mrf-connection branch from 22e3fc7 to 00ee9e2 Compare October 15, 2025 07:41
@pregnantboy pregnantboy changed the title HOTFIX: tile dynamodb isEmpty filter not respecting NULL values (#1249) feat: allow mrf forms to be connected Oct 16, 2025
@pregnantboy pregnantboy force-pushed the mrf/allow-mrf-connection branch from 00ee9e2 to 04b2a11 Compare October 16, 2025 09:19
@pregnantboy pregnantboy changed the title feat: allow mrf forms to be connected [MRF-1] : allow mrf forms to be connected Oct 16, 2025
@pregnantboy pregnantboy changed the title [MRF-1] : allow mrf forms to be connected [MRF-1] PLU-520: allow mrf forms to be connected Oct 16, 2025
@linear
Copy link

linear bot commented Oct 16, 2025

PLU-520 MRF: Approvals

@datadog-opengovsg
Copy link

datadog-opengovsg bot commented Oct 16, 2025

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 33302ac | Docs | Was this helpful? Give us feedback!

@pregnantboy pregnantboy force-pushed the mrf/allow-mrf-connection branch from 63fe548 to 33302ac Compare December 3, 2025 10:55
@pregnantboy pregnantboy marked this pull request as ready for review December 3, 2025 16:23
@pregnantboy pregnantboy requested a review from a team as a code owner December 3, 2025 16:23
Copy link
Contributor

@kevinkim-ogp kevinkim-ogp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

faced this error when connecting both new and existing MRF forms:
Image

seems to be caused by formDetails.form.payments_field returning undefined

can be fixed by adding the optional chaining at lines 197-200 in packages/backend/src/apps/formsg/triggers/new-submission/get-mock-data.ts:

      ...(formDetails.form.payments_field?.enabled &&
        generateMockPaymentData(
          formDetails.form.payments_field?.products ?? [],
        )),

Copy link
Contributor

@kevinkim-ogp kevinkim-ogp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the error in the previous PR is actually fixed in the next PR. lgtm 👍
tested that:

  • can connect MRF
  • updated error message is shown for wrong form

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants