Track experimental feature toggles with analytics#22720
Open
Track experimental feature toggles with analytics#22720
Conversation
Add EXPERIMENTAL_FEATURE_TOGGLED event fired from setFeatureSwitchState() with "feature" (prefKey) and "enabled" (boolean) properties. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Collaborator
Generated by 🚫 Danger |
|
Contributor
|
|
Contributor
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## trunk #22720 +/- ##
=======================================
Coverage 37.50% 37.50%
=======================================
Files 2287 2287
Lines 120724 120731 +7
Branches 16537 16537
=======================================
+ Hits 45275 45282 +7
Misses 71774 71774
Partials 3675 3675 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.





Description
Closes CMM-1971
Adds analytics tracking when a user enables or disables an experimental feature. A single
EXPERIMENTAL_FEATURE_TOGGLEDevent is fired from thesetFeatureSwitchState()choke point with two properties:feature— the feature'sprefKey(e.g.,"new_stats","rs_post_list")enabled— boolean indicating the new stateAlso adds a debug log line for the toggle action.
Testing instructions
Verify analytics event fires on toggle:
EXPERIMENTAL_FEATURE_TOGGLEDevent is tracked withenabled=trueand the correct feature keyEXPERIMENTAL_FEATURE_TOGGLEDevent is tracked withenabled=falseand the correct feature key