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

[Codegen 96-97] Extract throwIfConfigNotfound and throwIfMoreThanOneConfig from findComponentConfig function #36719

Conversation

AntoineDoubovetzky
Copy link

Summary:

This PR contains tasks 96 and 97 from #34872:

[Codegen 96 - assigned to @AntoineDoubovetzky] Create a throwIfConfigNotfound in the error-utils.js file and extract the error code from Flow and TS
[Codegen 97 - assigned to @AntoineDoubovetzky] Create a throwIfMoreThanOneConfig in the error-utils.js file and extract the error code from Flow and TS

Changelog:

[Internal] [Changed] - Extract throwIfConfigNotfound and throwIfMoreThanOneConfig from findComponentConfig function

Test Plan:

I tested using Jest and Flow commands.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 30, 2023
@AntoineDoubovetzky AntoineDoubovetzky force-pushed the refactor/extract-errors-from-findComponentConfig branch from 3ad8427 to f383b6e Compare March 30, 2023 12:21
Copy link
Contributor

@cipolleschi cipolleschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! Thanks for these changes!

Copy link
Contributor

@cipolleschi cipolleschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, just see right now that the CI is red. In tests, we have to use require, we can't use import

@facebook-github-bot
Copy link
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@AntoineDoubovetzky AntoineDoubovetzky force-pushed the refactor/extract-errors-from-findComponentConfig branch 2 times, most recently from 736a2f7 to 810b213 Compare March 31, 2023 05:51
@analysis-bot
Copy link

analysis-bot commented Mar 31, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,575,813 +0
android hermes armeabi-v7a 7,890,201 +0
android hermes x86 9,058,579 +0
android hermes x86_64 8,913,169 +0
android jsc arm64-v8a 9,174,189 +0
android jsc armeabi-v7a 8,364,606 +0
android jsc x86 9,231,718 +0
android jsc x86_64 9,489,117 +0

Base commit: 28dac61
Branch: main

@AntoineDoubovetzky
Copy link
Author

@cipolleschi It should be good now

@cipolleschi
Copy link
Contributor

/rebase

@github-actions github-actions bot force-pushed the refactor/extract-errors-from-findComponentConfig branch from 810b213 to 6ea17c8 Compare April 4, 2023 09:50
@facebook-github-bot
Copy link
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@cipolleschi
Copy link
Contributor

/rebase

@github-actions github-actions bot force-pushed the refactor/extract-errors-from-findComponentConfig branch from 6ea17c8 to 33568f4 Compare April 4, 2023 13:54
@facebook-github-bot
Copy link
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@cipolleschi
Copy link
Contributor

/rebase

@cipolleschi
Copy link
Contributor

I don't know why automatic rebase stopped working. While we work on this, could you pleas rebase manually? 🙏

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Apr 5, 2023
@facebook-github-bot
Copy link
Contributor

@cipolleschi merged this pull request in 8fbcfce.

jeongshin pushed a commit to jeongshin/react-native that referenced this pull request May 7, 2023
…omponentConfig function (facebook#36719)

Summary:
This PR contains tasks 96 and 97 from facebook#34872:

>[Codegen 96 - assigned to AntoineDoubovetzky] Create a throwIfConfigNotfound in the error-utils.js file and extract the error code from [Flow](https://github.com/facebook/react-native/blob/main/packages/react-native-codegen/src/parsers/flow/components/index.js#L61-L63) and [TS](https://github.com/facebook/react-native/blob/main/packages/react-native-codegen/src/parsers/typescript/components/index.js#L62-L64)
 [Codegen 97 - assigned to AntoineDoubovetzky] Create a throwIfMoreThanOneConfig in the error-utils.js file and extract the error code from [Flow](https://github.com/facebook/react-native/blob/main/packages/react-native-codegen/src/parsers/flow/components/index.js#L64-L66) and [TS](https://github.com/facebook/react-native/blob/main/packages/react-native-codegen/src/parsers/typescript/components/index.js#L65-L67)

## Changelog:

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->

[Internal] [Changed] - Extract throwIfConfigNotfound and throwIfMoreThanOneConfig from findComponentConfig function

bypass-github-export-checks

Pull Request resolved: facebook#36719

Test Plan: I tested using Jest and Flow commands.

Reviewed By: rshest

Differential Revision: D44539681

Pulled By: cipolleschi

fbshipit-source-id: c778ad1620d1c3f60b10c25c51efcb11173b3037
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
…omponentConfig function (facebook#36719)

Summary:
This PR contains tasks 96 and 97 from facebook#34872:

>[Codegen 96 - assigned to AntoineDoubovetzky] Create a throwIfConfigNotfound in the error-utils.js file and extract the error code from [Flow](https://github.com/facebook/react-native/blob/main/packages/react-native-codegen/src/parsers/flow/components/index.js#L61-L63) and [TS](https://github.com/facebook/react-native/blob/main/packages/react-native-codegen/src/parsers/typescript/components/index.js#L62-L64)
 [Codegen 97 - assigned to AntoineDoubovetzky] Create a throwIfMoreThanOneConfig in the error-utils.js file and extract the error code from [Flow](https://github.com/facebook/react-native/blob/main/packages/react-native-codegen/src/parsers/flow/components/index.js#L64-L66) and [TS](https://github.com/facebook/react-native/blob/main/packages/react-native-codegen/src/parsers/typescript/components/index.js#L65-L67)

## Changelog:

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->

[Internal] [Changed] - Extract throwIfConfigNotfound and throwIfMoreThanOneConfig from findComponentConfig function

bypass-github-export-checks

Pull Request resolved: facebook#36719

Test Plan: I tested using Jest and Flow commands.

Reviewed By: rshest

Differential Revision: D44539681

Pulled By: cipolleschi

fbshipit-source-id: c778ad1620d1c3f60b10c25c51efcb11173b3037
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. Merged This PR has been merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants