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

Website: WP Cloud: Relay secrets for error logger #1337

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

brandonpayton
Copy link
Member

@brandonpayton brandonpayton commented Apr 26, 2024

What is this PR doing?

This PR updates our WP Cloud hosting setup to provide secrets necessary for error logging to WP.org Slack.

Testing Instructions

I tested manually playground-dot-wordpress-dot-net.atomicsites.blog via dev tools console, since the Playground error dialog is hardcoded to log to playground.wordpress.net.

fd = new FormData;
fd.append('description', 'PLEASE IGNORE: This is a test.');
fd.append('logs', 'test-logs');
fd.append('url', 'https://playground-dot-wordpress-dot-net.atomicsites.blog/');
fd.append('context', 'test-context');
fd.append('blueprint', 'test-blueprint');

fetch( '/logger.php', { method: 'POST', body: fd } ).then(r => (console.log('logging response', r), r.text())).then( t => console.log('text', t) )

// Results:
Promise {<pending>}
logging response Response {type: 'basic', url: 'https://playground-dot-wordpress-dot-net.atomicsites.blog/logger.php', redirected: false, status: 200, ok: true, …}
text {"ok":true}

And a message was logged to WP.org Slack here:
https://wordpress.slack.com/archives/C06Q5DCKZ3L/p1714150218128469

@brandonpayton brandonpayton self-assigned this Apr 26, 2024
@brandonpayton brandonpayton changed the title Relay secrets for error logger Website: WP Cloud: Relay secrets for error logger Apr 26, 2024
@brandonpayton brandonpayton merged commit 776e8bb into trunk Apr 26, 2024
5 checks passed
@brandonpayton brandonpayton deleted the config-logger-on-wp-cloud branch April 26, 2024 17:21
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

1 participant