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

Jetpack Connect: Remove problematic "blacklist"/"whitelist" language #43395 #43647

Conversation

sarayourfriend
Copy link
Contributor

Changes proposed in this Pull Request

  • Rename SITE_BLACKLISTED to SITE_BLOCKED
  • Rename isSiteBlacklistedError to isSiteBlockedError
  • Rename MOBILE_APP_REDIRECT_URL_WHITELIST to ALLOWED_MOBILE_APP_REDIRECT_URL_LIST

Testing instructions

  • Ensure blocked sites still behave as expected (are not allowed to connect to Jetpack, etc).

Addresses part of #43395

@matticbot
Copy link
Contributor

@matticbot
Copy link
Contributor

matticbot commented Jun 24, 2020

Here is how your PR affects size of JS and CSS bundles shipped to the user's browser:

Sections (~3 bytes removed 📉 [gzipped])

name             parsed_size           gzip_size
jetpack-connect        -28 B  (-0.0%)       -3 B  (-0.0%)

Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to.

Legend

What is parsed and gzip size?

Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory.
Gzip Size: Compressed size of the JS and CSS files. This much data needs to be downloaded over network.

Generated by performance advisor bot at iscalypsofastyet.com.

@sarayourfriend sarayourfriend mentioned this pull request Jun 24, 2020
21 tasks
@sarayourfriend sarayourfriend added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Jun 25, 2020
@sarayourfriend sarayourfriend force-pushed the update/remove-problematic-language-whitelist-blacklist-jetpack-connect branch from 1f6f3e5 to 0e350c8 Compare June 29, 2020 17:24
@sarayourfriend
Copy link
Contributor Author

@sirreal Pinging you as I think the actual person who originally worked on this was Marin but he's still on parental leave. Any chance you could review this or suggest someone else if you're not able?

Copy link
Collaborator

@wp-desktop wp-desktop left a comment

Choose a reason for hiding this comment

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

WordPress Desktop CI Failure (ci/wp-desktop): @saramarcondes please re-try this workflow ("Rerun Workflow from Failed") and/or review this PR for breaking changes. Please also ensure this branch is rebased off latest Calypso master.

@nsakaimbo
Copy link
Contributor

nsakaimbo commented Jun 29, 2020

👋 Seeing this error in the source build for wp-desktop (link) - under "Build sources":

ERROR in ./jetpack-connect/jetpack-connection.jsx 167:17-33
 
"export 'SITE_BLACKLISTED' was not found in './connection-notice-types'

@sarayourfriend sarayourfriend force-pushed the update/remove-problematic-language-whitelist-blacklist-jetpack-connect branch from 0e350c8 to 744efc2 Compare June 29, 2020 18:02
@sarayourfriend
Copy link
Contributor Author

Thanks @nsakaimbo, changes are up 👍

@sarayourfriend sarayourfriend force-pushed the update/remove-problematic-language-whitelist-blacklist-jetpack-connect branch from 744efc2 to 945e919 Compare June 29, 2020 18:04
@wp-desktop wp-desktop dismissed their stale review June 29, 2020 18:20

ci/wp-desktop passing, closing review

Copy link
Member

@sirreal sirreal left a comment

Choose a reason for hiding this comment

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

I gave this a visual inspection and everything makes sense. I did a few searches and the renames seem to be good. Thanks!

@sarayourfriend sarayourfriend merged commit 5fdfb68 into master Jul 1, 2020
@sarayourfriend sarayourfriend deleted the update/remove-problematic-language-whitelist-blacklist-jetpack-connect branch July 1, 2020 17:23
@matticbot matticbot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Jul 1, 2020
@AnnaMag
Copy link
Contributor

AnnaMag commented Jul 1, 2020

@saramarcondes, thumbs up that I get an error message in the error message itself also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants