docs(experiment-center): add usage examples and tests for variant override - #1253
Conversation
…izationParameters
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: auth0/auth0-react/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe README and examples document how to pass Experiment Center variant parameters on login calls. Tests verify parameter forwarding through ChangesExperiment Center variant overrides
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: Merge Risk: ⚪ Minimal · up to No specific issue is established that should prevent merging; complete the planned tests and documentation checks. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Adds support for forcing an Experiment Center variant via
experiment_id,variation_id, and optionalsegment_id.AuthorizationParameters.Fields come from
@auth0/auth0-spa-jsand are re-exported unchanged onAuthorizationParams./authorizethrough the existingauthorizationParamspass-through - no runtime logic changes needed.README.md/EXAMPLES.mddocs.Test plan
npm test— passes, 100% coverage heldloginWithRedirect(with and withoutsegment_id)README.md/EXAMPLES.mdrender correctlySummary by CodeRabbit
experiment_id,variation_id, and an optionalsegment_id.