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

Response headers to image - iOS #33880

Closed
wants to merge 2 commits into from
Closed

Conversation

frags51
Copy link

@frags51 frags51 commented May 20, 2022

Summary

Please see this issue #33034 for details on the problem solved by this PR.

Changelog

[CATEGORY] [TYPE] - Message
[ios] [changed] - HTTP Response headers added to the error object passed to JS code.

Test Plan

Tested:
(All tests done on images in rn-tester app, which is a part of this repo)

  1. onError method in case image has an HTTP Error
  2. onError method in case of non http error (DNS error)
  3. Successful image load

@facebook-github-bot
Copy link
Contributor

Hi @frags51!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@analysis-bot
Copy link

analysis-bot commented May 20, 2022

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,782,640 +0
android hermes armeabi-v7a 7,172,350 +0
android hermes x86 8,093,283 +0
android hermes x86_64 8,069,317 +0
android jsc arm64-v8a 9,649,489 +0
android jsc armeabi-v7a 8,408,181 +0
android jsc x86 9,600,998 +0
android jsc x86_64 10,194,061 +0

Base commit: 68e4e91
Branch: main

@analysis-bot
Copy link

analysis-bot commented May 20, 2022

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

Base commit: 68e4e91
Branch: main

@react-native-bot react-native-bot added the No CLA Authors need to sign the CLA before a PR can be reviewed. label May 21, 2022
@frags51
Copy link
Author

frags51 commented May 24, 2022

Can someone help me with why the tests on Windows/npm-package build are failing?

@frags51 frags51 closed this May 24, 2022
@frags51 frags51 reopened this May 24, 2022
@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@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. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels May 24, 2022
@react-native-bot react-native-bot removed the No CLA Authors need to sign the CLA before a PR can be reviewed. label May 24, 2022
@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

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.

Hi @frags51, thank you for the PR.

For what concerns the CI tests failing, could you rebase this PR against main? That trunk is stable and your diff should not influence those tests.

I also left a few comment to improve readability and to make sure it will work internally in Meta as well.

Libraries/Image/RCTImageLoader.mm Outdated Show resolved Hide resolved
packages/rn-tester/Podfile.lock Outdated Show resolved Hide resolved
@frags51 frags51 force-pushed the frags51/image branch 3 times, most recently from 75991f0 to 835674c Compare May 30, 2022 06:22
@frags51 frags51 requested a review from cipolleschi May 30, 2022 06:23
@frags51
Copy link
Author

frags51 commented May 30, 2022

Some tests seem to be failing again :3

@frags51
Copy link
Author

frags51 commented Jun 7, 2022

Hi @cipolleschi Could you please review this PR?

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.

Thanks for this PR, it looks good to me.

As for the test, could you rebase and see if it fixes? Becuase I see the CI green on main! :D

(Sorry for the delay, I was on vacation last week!)

@frags51
Copy link
Author

frags51 commented Jun 9, 2022

Hi @cipolleschi Thanks for the review! Kindle merge the PR. I have rebased to latest main branch

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

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by Supreet Singh in 9eb2826.

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 Jun 10, 2022
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants