WordPress.org

Make WordPress Core

Opened 7 months ago

Last modified 6 months ago

#47336 new enhancement

Consider adding a JS/Client based Site Health Check for the REST API

Reported by: youknowriad Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.2
Component: Site Health Keywords: site-health
Focuses: rest-api Cc:
PR Number:

Description

Related discussion https://wordpress.slack.com/archives/C02RQC26G/p1558429627205600

At the moment, the Site Health Page includes a REST API check that is based on a wp_remote_get call to the posts endpoint.

The problem with this approach is that it only catches issues if they're on the PHP side of things. In the Gutenberg repo, we noticed that there are a lot of issues related to Firewalls... breaking the REST API calls.

The idea here is to consider adding a check to the site health page performing a REST API endpoint call triggered from the client (JS). That way it will go through the regular flow of REST API endpoint calls gutenberg and other clients will use.

Change History (4)

#1 @swissspidy
7 months ago

  • Keywords site-health added

#2 @earnjam
7 months ago

  • Type changed from defect (bug) to enhancement

#3 @mnelson4
6 months ago

+1 this, although the code to be changed may send a request to the REST API, the REST API itself shouldn't require any changes, right? Maybe this would fit better into another component?

#4 @desrosj
6 months ago

  • Component changed from REST API to Site Health

Moving Site Health tickets into their lovely new home, the Site Health component.

Note: See TracTickets for help on using tickets.