Open
Conversation
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.
Explanation
This PR updates Unified SwapBridge metrics migration support so legacy and new A/B test payloads can coexist without conflation.
Current state:
ab_tests.active_ab_testsneeded to be supported in parallel during migration.What changed:
active_ab_testssupport to bridge-controller metrics event context/payload types.activeAbTestscontext input/storage alongside legacyabTests.ab_testsandactive_ab_testsare handled independently.Why another package was updated:
active_ab_teststo keep typing aligned.References
Checklist
Note
Low Risk
Low risk: this is additive metrics/type plumbing that keeps legacy
ab_testsbehavior intact while emitting a new optionalactive_ab_testspayload when provided.Overview
Adds dual A/B test context support for SwapBridge metrics. Unified SwapBridge event context/payload types now include optional
active_ab_testsalongside legacyab_tests, with documentation noting the migration window.Bridge Status Controller now accepts/persists
activeAbTestsin history and resolves/emits bothab_testsandactive_ab_testsindependently when tracking post-submission events (including pre-confirmation payload builders). Tests and changelogs are updated accordingly.Written by Cursor Bugbot for commit fccc363. This will update automatically on new commits. Configure here.