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

fix(mrf): form duplication with MRF #6985

Merged
merged 1 commit into from
Jan 2, 2024
Merged

Conversation

justynoh
Copy link
Contributor

Problem

We broke form duplication and use-template flows by introducing multi-respondent forms into production. This PR aims to fix the issue with duplication.

Closes FRM-1581

Solution

Requests never made it to the backend because of a response mode check responseMode === FormResponseMode.Encrypt in the relevant providers (duplicate form provider, template form provider). This PR thus updates the relevant mutations to handle storage mode and MRF form duplications, and adds FormResponseMode.Multirespondent to the response mode check.

Breaking Changes

  • No - this PR is backwards compatible

Screenshots

Screen.Recording.2023-12-28.at.2.28.34.PM.mov

Tests

Regression tests

  • Email mode form duplicatable to email mode
  • Storage mode form duplicatable to email mode
  • Email mode form duplicatable to storage mode
  • Storage mode form duplicatable to storage mode

New tests

  • Email mode form duplicatable to MRF
  • Storage mode form duplicatable to MRF
  • MRF duplicatable to email mode
  • MRF duplicatable to storage mode
  • MRF duplicatable to MRF

Copy link

linear bot commented Dec 28, 2023

@justynoh justynoh changed the title fix: form duplication with MRF fix(mrf): form duplication with MRF Dec 28, 2023
Copy link
Contributor

@KenLSM KenLSM left a comment

Choose a reason for hiding this comment

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

LGTM!

@justynoh justynoh merged commit 2e23236 into develop Jan 2, 2024
31 of 32 checks passed
@justynoh justynoh deleted the fix/mrf-form-duplication branch January 2, 2024 06:36
@justynoh justynoh mentioned this pull request Jan 2, 2024
9 tasks
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.

None yet

2 participants