Spike editorial ab test register - #16501
Open
abeddow91 wants to merge 8 commits into
Open
Conversation
|
Hello 👋! When you're ready to run Chromatic, please apply the You will need to reapply the label each time you want to run Chromatic. |
Fweddi
reviewed
Aug 3, 2026
…in fronts and dispatch to ophan in a seperate register
# Conflicts: # dotcom-rendering/src/types/front.ts
abeddow91
force-pushed
the
ab/spike-editorial-ab-test-register
branch
from
August 3, 2026 09:12
8d98395 to
cd94d8c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this change?
This POC demonstrates how we could introduce a dedicated Editorial A/B Test Register alongside the existing A/B Test Register.
Why?
The existing A/B test register communicates to Ophan what tests the user is participating in and which variants they are being shown.
The Editorial A/B testing framework has two distinct layers:
abTests.ts. It will have its own life cycle dictated bystatus("ON"/"OFF") and/orexpirydatePressedPage. Each editorial test is identified by a unique stringTestUuidand has its own lifecycle, determined byexpiryDateand / orhasManuallyEndedOnThisTrail.These lifecycles are independent. A user may still belong to the parent A/B test while a particular headline test has stopped running. Currently, there is no mechanism for communicating this distinction to Ophan, so we cannot stop reporting participation in an individual editorial test without also affecting the parent test.
Proposed approach
This POC introduces a separate register for editoiral A/B Test.
The benefits of this are
abTests.ts.