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

Create a new ElasticPress.io page with client messages #3162

Merged
merged 11 commits into from
Feb 28, 2023

Conversation

felipeelia
Copy link
Member

@felipeelia felipeelia commented Nov 28, 2022

Description of the Change

This PR introduces a message system between the EP.io infrastructure and EP.io customers, making it possible to warn users about maintenance windows, for example.

How to test the Change

Changelog Entry

Added - ElasticPress.io messages system.

Credits

Props @felipeelia @JakePT

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@felipeelia felipeelia added this to the Future Release milestone Nov 28, 2022
@felipeelia felipeelia self-assigned this Nov 28, 2022
@felipeelia felipeelia assigned JakePT and unassigned felipeelia Dec 8, 2022
@felipeelia felipeelia modified the milestones: Future Release, 4.5.0 Dec 8, 2022
@JakePT
Copy link
Contributor

JakePT commented Dec 15, 2022

@felipeelia I have pushed a change to add a badge counter to the ElasticPress admin menu item, and added a transient to support this without having to query for messages on every page load. Still to be discussed is whether these need to be displayed on their own admin screen or if they can go in Index Health or similar.

@JakePT
Copy link
Contributor

JakePT commented Dec 21, 2022

I’ve updated the PR. I have:

  • Added an ElasticPressIo class for interacting with ElasticPress.io (a todo may be to move some of the Autosuggest and Instant Results template stuff into here).
  • Move the method for retrieving endpoint messages to that class. I added code to cache the results in a transient with a 24 hour expiry. This was necessary for the count badge.
  • Added a counter to the ElasticPress admin menu item, and Status Report submenu item, indicating the number of messages found with the above method.
  • Added support for 'messages' to Status Report reports. The ElasticPress.io report gets messages using the above method.
  • Updated the Status Report UI to print messages as notices under each report heading.
  • Moved the ElasticPress.io report, and the Failed Queries report, to the top of the Status Report.

Screenshot 2022-12-21 at 9 46 27 pm

@JakePT JakePT assigned felipeelia and unassigned JakePT Dec 22, 2022
@anjulahettige
Copy link
Collaborator

Ping ElasticPress every 1 hour.

@felipeelia felipeelia changed the title [WIP] Create a new ElasticPress.io page with client messages Create a new ElasticPress.io page with client messages Feb 28, 2023
@felipeelia felipeelia merged commit 316bece into develop Feb 28, 2023
@felipeelia felipeelia deleted the feature/new-epio-page branch February 28, 2023 19:45
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.

3 participants