Skip to content

fix: Skip AB test is overriding user id#1585

Merged
trebitowski merged 1 commit intomasterfrom
fix/ab-test
Mar 24, 2026
Merged

fix: Skip AB test is overriding user id#1585
trebitowski merged 1 commit intomasterfrom
fix/ab-test

Conversation

@trebitowski
Copy link
Copy Markdown
Collaborator

@trebitowski trebitowski commented Mar 23, 2026

Changes

Fixes a bug when opening submissions on AB test forms. AB tests choose which form to load based on the user id and the form title. If the user_A opens form_A and the AB test checks user_A and form_A. If it chooses to display the variant, then form_B is loaded and the submission will exist on form_B.

Later, if someone opens the submission, the AB test will check user_A and form_B. If this check also chooses to display the variant, then form_A loads and the submission doesn't map to form_A's fields.

Solution

Skip the variant logic if we are overriding the user id. This means that when loading a submission, it will always display the form the submission was on, regardless of AB test status.

@trebitowski trebitowski marked this pull request as ready for review March 23, 2026 07:51
@trebitowski trebitowski requested a review from joondotcode March 23, 2026 16:49
@trebitowski trebitowski merged commit 6d09194 into master Mar 24, 2026
7 checks passed
@trebitowski trebitowski deleted the fix/ab-test branch March 24, 2026 03:43
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.

2 participants