GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Replace deprecated `stringByReplacingPercentEscapesUsingEncoding:` with `stringByAddingPercentEncodingWithAllowedCharacters:` by pvinis · Pull Request #19792 · react/react-native

Conversation

@pvinis

@pvinis pvinis commented Jun 18, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Replace some NSString deprecated methods.
motivation for these prs is less warnings reported on xcode everytime we compile a rn app.

Test Plan

N/A

Release Notes

[INTERNAL] [DEPRECATIONS] [NSString] - Replace NSString deprecation methods.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@pvinis
pvinis requested a review from shergin as a code owner June 18, 2018 20:35
@pull-bot

pull-bot commented Jun 18, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Warnings
⚠️

📋 Changelog - This PR appears to be missing Changelog. Please add a section called "changelog" and format it as explained in the contributing guidelines.

Generated by 🚫 dangerJS

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@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 Jun 18, 2018
@react-native-bot react-native-bot added ✅Test Plan Missing Changelog This PR appears to be missing a changelog, or they are incorrectly formatted. labels Jun 18, 2018
@janicduplessis

janicduplessis commented Jun 19, 2018

Copy link
Copy Markdown
Contributor

Looks good! Thanks for the fixes :)

@facebook-github-bot shipit

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Jun 19, 2018
facebook-github-bot
facebook-github-bot approved these changes Jun 19, 2018
View reviewed changes

@facebook-github-bot facebook-github-bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

@janicduplessis is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@facebook-github-bot

facebook-github-bot commented Jun 20, 2018

Copy link
Copy Markdown
Contributor

I tried to merge this pull request into the Facebook internal repo but some checks failed. To unblock yourself please check the following: Does this pull request pass all open source tests on GitHub? If not please fix those. Does the code still apply cleanly on top of GitHub master? If not can please rebase. In all other cases this means some internal test failed, for example a part of a fb app won't work with this pull request. I've added the Import Failed label to this pull request so it is easy for someone at fb to find the pull request and check what failed. If you don't see anyone comment in a few days feel free to comment mentioning one of the core contributors to the project so they get a notification.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@facebook-github-bot facebook-github-bot added Import Failed and removed Import Started This pull request has been imported. This does not imply the PR has been approved. labels Jun 20, 2018
@pvinis

pvinis commented Jun 20, 2018

Copy link
Copy Markdown
Contributor Author

hmm.. tests here pass. would be nice to see what the problematic internal test is. if it's not sensitive, maybe we could open source it? any ideas what could it be @janicduplessis ?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@janicduplessis

janicduplessis commented Jul 15, 2018

Copy link
Copy Markdown
Contributor

Sorry about the delay, it failed to import into the internal fb repo, I'll try landing again and if it doesn't work I'll ping someone at fb.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@janicduplessis

janicduplessis commented Jul 15, 2018

Copy link
Copy Markdown
Contributor

@facebook-github-bot shipit

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Jul 15, 2018
facebook-github-bot
facebook-github-bot approved these changes Jul 15, 2018
View reviewed changes

@facebook-github-bot facebook-github-bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

@janicduplessis is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@hramos hramos added ✅Changelog and removed Missing Changelog This PR appears to be missing a changelog, or they are incorrectly formatted. labels Jan 15, 2019
@cpojer

cpojer commented Jan 24, 2019

Copy link
Copy Markdown
Contributor

Let's try this again!

pvinis reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cpojer
cpojer approved these changes Jan 24, 2019
View reviewed changes
facebook-github-bot
facebook-github-bot approved these changes Jan 24, 2019
View reviewed changes

@facebook-github-bot facebook-github-bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@cpojer

cpojer commented Jan 25, 2019

Copy link
Copy Markdown
Contributor

Just getting back to this. Thanks for submitting this PR. Unfortunately it seems that unit tests are failing:

Failure: ((result.absoluteString) equal to (@"http://example.com/blah%20blah/foo")) failed: ("http%3A%2F%2Fexample.com%2Fblah%20blah%2Ffoo") is not equal to ("http://example.com/blah%20blah/foo")
Path: react-native/RNTester/RNTesterUnitTests/RCTConvert_NSURLTests.m
Line Number: 54

This is the file specifically: https://github.com/facebook/react-native/blob/master/RNTester/RNTesterUnitTests/RCTConvert_NSURLTests.m

Would you mind doing another pass and fixing those issues, then we can finally land it? Again, sorry for the long wait on this :(

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pvinis

pvinis commented Jan 25, 2019

Copy link
Copy Markdown
Contributor Author

I'll try it now and get back to you.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Pavlos Vinieratos and others added 4 commits January 25, 2019 11:34
Pavlos Vinieratos @pvinis
replace deprecated stringByReplacingPercentEscapesUsingEncoding: wi…
61119c1
…th `stringByAddingPercentEncodingWithAllowedCharacters:`
@pvinis
this is a query string, so use query
e4736b2
@pvinis
these are used as queries so use query
1183e32
@pvinis
this is encoding the whole url, so use all allowed url parts
5cab758
@pvinis
pvinis force-pushed the fix/replace-deprecated-string-method branch from 761f762 to 5cab758 Compare January 25, 2019 11:27
@pvinis

pvinis commented Jan 25, 2019

Copy link
Copy Markdown
Contributor Author

This was a good catch actually. I changed the allowed characters to be the ones they should be for each case, ran all the tests and now all is well here.

I was thinking of putting the character set into a category of NSCharacterSet but I don't know if you want that or if there is a place for categories etc. Let me know what you think, but I'm happy another one of my PRs is soon in the core code :D

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

facebook-github-bot
facebook-github-bot approved these changes Jan 25, 2019
View reviewed changes

@facebook-github-bot facebook-github-bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@facebook-github-bot facebook-github-bot closed this in 61ca119 Jan 25, 2019
@react-native-bot

react-native-bot commented Jan 25, 2019

Copy link
Copy Markdown
Collaborator

@pvinis merged commit 61ca119 into facebook:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@react react locked as resolved and limited conversation to collaborators Jan 25, 2019
@react-native-bot react-native-bot added the Merged This PR has been merged. label Jan 25, 2019
@hramos hramos removed Import Started This pull request has been imported. This does not imply the PR has been approved. Import Failed labels Feb 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@shergin shergin Awaiting requested review from shergin
2 more reviewers
@cpojer cpojer cpojer approved these changes
@facebook-github-bot facebook-github-bot facebook-github-bot approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

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

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

7 participants

@pvinis @pull-bot @janicduplessis @facebook-github-bot @cpojer @react-native-bot @hramos
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.