Skip to content

[codex] Add metaMetricsId feature flag overrides#8910

Draft
pedronfigueiredo wants to merge 1 commit into
mainfrom
pnf/ff-device-override
Draft

[codex] Add metaMetricsId feature flag overrides#8910
pedronfigueiredo wants to merge 1 commit into
mainfrom
pnf/ff-device-override

Conversation

@pedronfigueiredo
Copy link
Copy Markdown
Contributor

What changed

  • Added metaMetricsId scoped feature flag entries to @metamask/remote-feature-flag-controller.
  • Exact metaMetricsId matches now select their associated value before threshold rollout selection.
  • Added scope-specific types, exported scope types, and tests for exact matches, threshold fallback, precedence, and version-gated composition.
  • Updated the package changelog.

Why

Remote feature flags already support version gates and percentage rollout thresholds. This adds a targeted override path for a specific MetaMetrics user while preserving the existing threshold behavior for everyone else.

Validation

  • corepack yarn workspace @metamask/remote-feature-flag-controller run jest --watchman=false --no-coverage
  • corepack yarn workspace @metamask/remote-feature-flag-controller run build
  • corepack yarn workspace @metamask/remote-feature-flag-controller run changelog:validate
  • corepack yarn exec eslint --pass-on-unpruned-suppressions packages/remote-feature-flag-controller/src/remote-feature-flag-controller.ts packages/remote-feature-flag-controller/src/remote-feature-flag-controller-types.ts packages/remote-feature-flag-controller/src/utils/user-segmentation-utils.ts packages/remote-feature-flag-controller/src/index.ts packages/remote-feature-flag-controller/src/remote-feature-flag-controller.test.ts packages/remote-feature-flag-controller/src/utils/user-segmentation-utils.test.ts
  • corepack yarn exec oxfmt --check packages/remote-feature-flag-controller/src/remote-feature-flag-controller.ts packages/remote-feature-flag-controller/src/remote-feature-flag-controller-types.ts packages/remote-feature-flag-controller/src/utils/user-segmentation-utils.ts packages/remote-feature-flag-controller/src/index.ts packages/remote-feature-flag-controller/src/remote-feature-flag-controller.test.ts packages/remote-feature-flag-controller/src/utils/user-segmentation-utils.test.ts packages/remote-feature-flag-controller/CHANGELOG.md

@pedronfigueiredo pedronfigueiredo force-pushed the pnf/ff-device-override branch from f7bacc1 to 9ce14c0 Compare May 27, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant