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 92, 93] Move getCommandOptions and getOptions to parsers commons #36413

Closed

Conversation

tarunrajput
Copy link
Contributor

@tarunrajput tarunrajput commented Mar 9, 2023

Summary

[Codegen 92] The getCommandOptions function in parsers/typescript/components/options.js and parsers/flow/components/options.js is the same. move it in parser-commons and use it in the original files. If the file two options.js files are empty, delete them.

[Codegen 93] The getOptions function in parsers/typescript/components/options.js and parsers/flow/components/options.js is the same. move it in parser-commons and use it in the original files. If the file two options.js files are empty, delete them.

Part of Issue #34872

Changelog

[Internal][Changed] - Move getCommandOptions and getOptions to parsers commons from parsers components options

Test Plan

yarn jest react-native-codegen

@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 9, 2023
@analysis-bot
Copy link

analysis-bot commented Mar 9, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,519,193 +0
android hermes armeabi-v7a 7,834,776 +0
android hermes x86 8,999,081 +0
android hermes x86_64 8,854,121 +0
android jsc arm64-v8a 9,141,838 +0
android jsc armeabi-v7a 8,333,472 +0
android jsc x86 9,196,418 +0
android jsc x86_64 9,454,245 +0

Base commit: b9c64f3
Branch: main

@github-actions github-actions bot force-pushed the refactor/extract-getOptions branch from 7aa2ad4 to e8a358f Compare March 9, 2023 17:37
@facebook-github-bot
Copy link
Contributor

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

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.

Amazing work here!

@cipolleschi
Copy link
Contributor

/rebase

@github-actions github-actions bot force-pushed the refactor/extract-getOptions branch from 10645c7 to ca8b850 Compare March 13, 2023 14:17
@tarunrajput tarunrajput changed the title [Codegen 93] Move getOptions to parsers commons [Codegen 92, 93] Move getCommandOptions and getOptions to parsers commons Mar 15, 2023
@tarunrajput tarunrajput force-pushed the refactor/extract-getOptions branch 2 times, most recently from 1fc02ff to a7e6a26 Compare March 16, 2023 17:25
@cipolleschi
Copy link
Contributor

/rebase

@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.

@github-actions github-actions bot force-pushed the refactor/extract-getOptions branch from a7e6a26 to f7b0081 Compare March 20, 2023 10:13
@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.

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

@cipolleschi merged this pull request in 221aacd.

jeongshin pushed a commit to jeongshin/react-native that referenced this pull request May 7, 2023
)

Summary:
> [Codegen 92] The getCommandOptions function in parsers/typescript/components/options.js and parsers/flow/components/options.js is the same. move it in parser-commons and use it in the original files. If the file two options.js files are empty, delete them.

> [Codegen 93] The getOptions function in parsers/typescript/components/options.js and parsers/flow/components/options.js is the same. move it in parser-commons and use it in the original files. If the file two options.js files are empty, delete them.

Part of Issue facebook#34872

## 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] - Move getCommandOptions and getOptions to parsers commons from parsers components options

Pull Request resolved: facebook#36413

Test Plan: `yarn jest react-native-codegen`

Reviewed By: rshest

Differential Revision: D43957023

Pulled By: cipolleschi

fbshipit-source-id: 4f8bf6f8fe69b20d0fb976afee7da244ef634e12
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
)

Summary:
> [Codegen 92] The getCommandOptions function in parsers/typescript/components/options.js and parsers/flow/components/options.js is the same. move it in parser-commons and use it in the original files. If the file two options.js files are empty, delete them.

> [Codegen 93] The getOptions function in parsers/typescript/components/options.js and parsers/flow/components/options.js is the same. move it in parser-commons and use it in the original files. If the file two options.js files are empty, delete them.

Part of Issue facebook#34872

## 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] - Move getCommandOptions and getOptions to parsers commons from parsers components options

Pull Request resolved: facebook#36413

Test Plan: `yarn jest react-native-codegen`

Reviewed By: rshest

Differential Revision: D43957023

Pulled By: cipolleschi

fbshipit-source-id: 4f8bf6f8fe69b20d0fb976afee7da244ef634e12
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