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

Browser: Disable the network support by default and add a UI control to enable it #812

Merged
merged 6 commits into from
Nov 27, 2023

Conversation

adamziel
Copy link
Collaborator

What is this PR doing?

This PR disables the network support by default and adds a UI control to enable it.

Why?

#724 introduced support for wp_safe_remote_get() request and enabled it by default on playground.wordpress.net. The problem is, all the requests block rendering of WordPress pages and noticeably slow down the site. Let's disable it by default for a lightweight user experience, and then add an easy way to enable it, for example in the configuration modal.

Closes #755

Testing Instructions

CleanShot 2023-11-27 at 17 10 45@2x

@adamziel adamziel self-assigned this Nov 27, 2023
@adamziel adamziel requested a review from seanmorris November 27, 2023 16:54
@@ -35,7 +35,7 @@ jobs:
- uses: actions/checkout@v3
- uses: ./.github/actions/prepare-playground
- run: ./node_modules/.bin/cypress install --force
- run: npx nx affected --target=e2e --configuration=ci
- run: npx nx affected --target=e2e --configuration=ci --verbose
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is intentional, I noticed some flaky failures on this branch that I'm yet to reproduce. Let's keep the output verbose to ease debugging of any subsequent PRs.

@adamziel adamziel merged commit 0bdb332 into trunk Nov 27, 2023
@adamziel adamziel deleted the disable-networking-by-default branch November 27, 2023 18:08
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.

Disable networking by default
1 participant