-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Enable feature Flag Values with Scope Based on "threshold" #12627
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Updated dependencies detected. Learn more about Socket for GitHub ↗︎
|
0a4fd9f
to
7ffa266
Compare
@NicolasMassart The motivation to pass the metametrics id Promise rather than the actual value is to avoid adding another argument into the We can't |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Waiting on RemoteFeatureFlagController update npm publish |
e8ea298
to
d755986
Compare
ae8dacc
to
4d7c9b7
Compare
Quality Gate passedIssues Measures |
Bitrise❌❌❌ Commit hash: 8afed80 Note
Tip
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Description
Remote Feature Flag Controller v1.3.0 requires
metaMetricsId
string value for its initialization.metaMetricsId
is used to generate a threshold value for Scope based feature flags.On Mobile,
metaMetricsId
is managed by the MetaMetrics class, using its methodgetMetaMetricsId
.Because this method returns a promise, we need to handle it outside Engine constructor.
The route we opted is to await for the Promise to resolve on
EngineService.start
function, then send it toEngine.init
as a parameter, which will pass it the into Engine constructor.Related issues
Fixes: https://github.com/MetaMask/mobile-planning/issues/2065
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist