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

feat: add getAll function to formdata #32444

Closed
wants to merge 1 commit into from

Conversation

matinzd
Copy link
Contributor

@matinzd matinzd commented Oct 20, 2021

Summary

The getAll() method of the FormData interface returns all the values associated with a given key from within a FormData object.

Changelog

[General] [Added] - Add getAll function to FormData class for getting all parts containing that key. This is also available in web API.

Test Plan

New test added in FormData-test.js

@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 Oct 20, 2021
@matinzd matinzd marked this pull request as ready for review October 20, 2021 12:06
@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Oct 20, 2021
@react-native-bot react-native-bot added the Type: Enhancement A new feature or enhancement of an existing feature. label Oct 20, 2021
@analysis-bot
Copy link

analysis-bot commented Oct 20, 2021

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: 28064ee
Branch: main

@facebook-github-bot
Copy link
Contributor

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

@matinzd
Copy link
Contributor Author

matinzd commented Oct 22, 2021

@sshic any updates?

@luluwu2032
Copy link
Contributor

Also can you fix the failed checks @matinzd?

@matinzd
Copy link
Contributor Author

matinzd commented Mar 24, 2022

Also can you fix the failed checks @matinzd?

@sshic

Hey Lulu,
It seems that the first two tests have some problems on circle ci because they cannot build or install dependencies. I cannot fix them. It's also broken in main branch.

#33492

@matinzd matinzd changed the title feat: add getAll function to formdata polyfill feat: add getAll function to formdata Mar 24, 2022
@analysis-bot
Copy link

analysis-bot commented Mar 24, 2022

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,985,652 +108
android hermes armeabi-v7a 7,359,958 +104
android hermes x86 8,321,711 +103
android hermes x86_64 8,290,661 +99
android jsc arm64-v8a 9,631,968 +53
android jsc armeabi-v7a 8,406,603 +44
android jsc x86 9,581,068 +52
android jsc x86_64 10,178,071 +57

Base commit: 28064ee
Branch: main

@cortinico
Copy link
Contributor

It seems that the first two tests have some problems on circle ci because they cannot build or install dependencies. I cannot fix them.

The two builds failures are unrelated and are currently broken on main. We're looking into them and can be disregarded here.

@matinzd
Copy link
Contributor Author

matinzd commented Mar 28, 2022

@cortinico Any update?

@cortinico
Copy link
Contributor

@matinzd those 2 failures were related to an Android issue that is now fixed on master. Don't you mind rebasing?

@matinzd matinzd force-pushed the feat/add_getall_formdata branch 5 times, most recently from e923254 to 766b627 Compare March 30, 2022 16:54
The getAll() method of the FormData interface returns all the values associated with a given key from within a FormData object.

Reference: https://developer.mozilla.org/en-US/docs/Web/API/FormData
@facebook-github-bot
Copy link
Contributor

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

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @matinzd in d05a5d1.

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

@react-native-bot react-native-bot added the Merged This PR has been merged. label Mar 31, 2022
@matinzd matinzd deleted the feat/add_getall_formdata branch April 2, 2022 16:21
typescript-bot pushed a commit to DefinitelyTyped/DefinitelyTyped that referenced this pull request Jun 26, 2022
…rmData by @matinzd

* feat: add getAll function type to formData

Reference: facebook/react-native#32444

* tests: add getAll to tests

* tests: fix
Saadnajmi pushed a commit to Saadnajmi/react-native-macos that referenced this pull request Jan 15, 2023
Summary:
The getAll() method of the [FormData](https://developer.mozilla.org/en-US/docs/Web/API/FormData) interface returns all the values associated with a given key from within a FormData object.

## Changelog

[General] [Added] - Add getAll function to FormData class for getting all parts containing that key. This is also available in web API.

Pull Request resolved: facebook#32444

Test Plan: New test added in FormData-test.js

Reviewed By: lunaleaps

Differential Revision: D31798633

Pulled By: cortinico

fbshipit-source-id: ef29bb54e930532a671adbe707be8d1a64ff0d82
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. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. Type: Enhancement A new feature or enhancement of an existing feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants