-
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
Feature activation: Alert when a new reindex needs to happen #1936
Conversation
|
||
if ( ! $this->is_active() && $this->requires_install_reindex && $can_save ) { | ||
$requirements_status->message = (array) $requirements_status->message; | ||
$requirements_status->message[] = __( 'A new reindex will start when you activate this feature.', 'elasticpress' ); |
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.
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.
That is a good point @Rahmon. I think all messages have the same importance, so IDK if we want to come up with a prioritization thing but we can bring that up during our internal sync.
Also, we need to change that __()
call to use esc_html__()
Closing this in favor of #2491 |
Description of the Change
Currently, users don't have much info that a new reindex will start when a certain feature is activated. This PR adds a notice based on the Feature
requires_install_reindex
attribute.Alternate Designs
Perhaps we could place the message somewhere else.
Benefits
Users won't start a reindex without notice.
Possible Drawbacks
n/a
Verification Process
Created the code and checked in the Features Screen.
Checklist:
Applicable Issues
Closes #1932
Changelog Entry
Adds a new notice to features that need a resync after activation.