-
Notifications
You must be signed in to change notification settings - Fork 313
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
Status Report Page #3130
Status Report Page #3130
Conversation
includes/classes/Elasticsearch.php
Outdated
*/ | ||
public function get_cluster_indices() { | ||
$path = '_cat/indices?format=json'; | ||
|
||
$response = $this->remote_request( $path ); | ||
|
||
return $response; | ||
return json_decode( wp_remote_retrieve_body( $response ), true ); |
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.
I think this might need some more error handling and casting to ensure it is not causing any errors in case of unexpected results.
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.
This link contains a preview of the page: https://imgur.com/4F1UQMZ |
Description of the Change
This PR improves debugging and also adds a new "Status Report" page in the dashboard
Closes #3077
How to test the Change
To-Do
Changelog Entry
Credits
Props @felipeelia, @brandwaffle
Checklist: