Skip to content
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

Emit warning when props parsing encounters inconsistent duplicate keys #39149

Closed
wants to merge 1 commit into from

Conversation

javache
Copy link
Member

@javache javache commented Aug 24, 2023

Summary:
Props structs are allowed to references RawValue keys multiple times, however this didn't work correctly if the key was formed out of a different combination of prefix/name/suffix, as the duplicate key entry would've been removed from the RawPropsKeyMap. Log an error in such scenarios to help identify these types of problems.

Changelog: [Internal]

Reviewed By: fabriziocucci

Differential Revision: D48641819

@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 Aug 24, 2023
@facebook-github-bot
Copy link
Contributor

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

@analysis-bot
Copy link

analysis-bot commented Aug 24, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,960,206 +130
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 9,554,210 +120
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: a0a544f
Branch: main

@facebook-github-bot
Copy link
Contributor

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

javache added a commit to javache/react-native that referenced this pull request Aug 24, 2023
facebook#39149)

Summary:
Pull Request resolved: facebook#39149

Props structs are allowed to references RawValue keys multiple times, however this didn't work correctly if the key was formed out of a different combination of prefix/name/suffix, as the duplicate key entry would've been removed from the `RawPropsKeyMap`. Log an error in such scenarios to help identify these types of problems.

Changelog: [Internal]

Reviewed By: fabriziocucci

Differential Revision: D48641819

fbshipit-source-id: f616bbf0c719d75ea5d1c0958355d1c3aa12dce0
@facebook-github-bot
Copy link
Contributor

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

javache added a commit to javache/react-native that referenced this pull request Aug 25, 2023
facebook#39149)

Summary:
Pull Request resolved: facebook#39149

Props structs are allowed to references RawValue keys multiple times, however this didn't work correctly if the key was formed out of a different combination of prefix/name/suffix, as the duplicate key entry would've been removed from the `RawPropsKeyMap`. Log an error in such scenarios to help identify these types of problems.

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D48641819

fbshipit-source-id: 8470233ce47203ff18bd3a229e2b644289662bfb
@facebook-github-bot
Copy link
Contributor

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

javache added a commit to javache/react-native that referenced this pull request Aug 25, 2023
facebook#39149)

Summary:
Pull Request resolved: facebook#39149

Props structs are allowed to references RawValue keys multiple times, however this didn't work correctly if the key was formed out of a different combination of prefix/name/suffix, as the duplicate key entry would've been removed from the `RawPropsKeyMap`. Log an error in such scenarios to help identify these types of problems.

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D48641819

fbshipit-source-id: 6b68480b0646a5598de2413de30aa817f354f2fc
@facebook-github-bot
Copy link
Contributor

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

javache added a commit to javache/react-native that referenced this pull request Aug 25, 2023
facebook#39149)

Summary:
Pull Request resolved: facebook#39149

Props structs are allowed to references RawValue keys multiple times, however this didn't work correctly if the key was formed out of a different combination of prefix/name/suffix, as the duplicate key entry would've been removed from the `RawPropsKeyMap`. Log an error in such scenarios to help identify these types of problems.

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D48641819

fbshipit-source-id: 6ece6c54384e55c4688ccebac0f99932873dc8a7
facebook#39149)

Summary:
Pull Request resolved: facebook#39149

Props structs are allowed to references RawValue keys multiple times, however this didn't work correctly if the key was formed out of a different combination of prefix/name/suffix, as the duplicate key entry would've been removed from the `RawPropsKeyMap`. Log an error in such scenarios to help identify these types of problems.

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D48641819

fbshipit-source-id: 33581fbbd6bd7cb3ed9fe76abd92c40795ff4853
@facebook-github-bot
Copy link
Contributor

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

@github-actions
Copy link

This pull request was successfully merged by @javache in 3c87455.

When will my fix make it into a release? | Upcoming Releases

@github-actions github-actions bot added the Merged This PR has been merged. label Aug 25, 2023
@javache javache deleted the export-D48641819 branch August 29, 2023 10:03
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