Skip to content

Add runtime check to ensure feature flags are only overridden once#42825

Closed
rubennorte wants to merge 5 commits into
react:mainfrom
rubennorte:export-D53360609
Closed

Add runtime check to ensure feature flags are only overridden once#42825
rubennorte wants to merge 5 commits into
react:mainfrom
rubennorte:export-D53360609

Conversation

@rubennorte

Copy link
Copy Markdown
Contributor

Summary:
This makes overrides for feature flags more predictable by only allowing a single point of overrides per app.

The previous behavior was:

  • Common flags: the last override would win.
  • JS flags: overrides would be combined and the last definition for each flag would win.

The new behavior, both for common flags and for JS flags, is to only have a single override.

Changelog: [internal]

Reviewed By: mdvacca

Differential Revision: D53360609

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Feb 2, 2024
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D53360609

@analysis-bot

analysis-bot commented Feb 2, 2024

Copy link
Copy Markdown
Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 17,233,419 +4,142
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 20,600,230 +4,129
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: e350859
Branch: main

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D53360609

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D53360609

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D53360609

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D53360609

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D53360609

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D53360609

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D53360609

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D53360609

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D53360609

rubennorte and others added 5 commits February 5, 2024 10:24
Differential Revision: D53416934

fbshipit-source-id: 0ebfa8cdcbf989aefc9dc679a381d85e53b59a3e
Differential Revision: D53351484

fbshipit-source-id: 0e647c6b67d6c5b2ed5802683d6b43691ec96fb4
Differential Revision: D53351483

fbshipit-source-id: eaa22ba078723ec21dcf30465fb23c91c8139420
Differential Revision: D53352391

fbshipit-source-id: 21ffc65c4a91854a05f2af70b2c2b33eed899880
…eact#42825)

Summary:
Pull Request resolved: react#42825

This makes overrides for feature flags more predictable by only allowing a single point of overrides per app.

The previous behavior was:
* Common flags: the last override would win.
* JS flags: overrides would be combined and the last definition for each flag would win.

The new behavior, both for common flags and for JS flags, is to only have a single override.

Changelog: [internal]

bypass-github-export-checks
(CI is broken on main)

Reviewed By: mdvacca

Differential Revision: D53360609

fbshipit-source-id: ff987cd323800a3786101a31b4dd3dc27294ce77
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D53360609

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Feb 5, 2024
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in fd6a6fe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants