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

Rename Last Sync in Status Report #3228

Merged
merged 4 commits into from
Jan 4, 2023
Merged

Conversation

MARQAS
Copy link
Contributor

@MARQAS MARQAS commented Dec 21, 2022

Description of the Change

This PR will rename the Last Sync text in the sub-section of Last Sync present in the Status Report page

Closes #3208

How to test the Change

  • Go to ElasticPress->Status Report and observe that the Last Sync section will show the date in the sub-section title
  • Reset the settings by running wp elasticpress settings-reset --yes
  • Go to ElasticPress->Status Report and see that the Last Sync section is not visible.

Changelog Entry

Changed - Last Sync subsection title

Credits

Props @MARQAS @tomioflagos

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 4.4.1 milestone Dec 22, 2022
Copy link
Member

@felipeelia felipeelia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to my comment here, any reason why you did not remove the start date from the collapsible as we've agreed during the sync, @MARQAS?

$title = $sync_info['start_date_time'];
if ( false !== \ElasticPress\Utils\get_indexing_status() ) {
/* translators: last sync title */
$title = sprintf( __( '%s ( In Progress )', 'elasticpress' ), $title );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$title = sprintf( __( '%s ( In Progress )', 'elasticpress' ), $title );
$title = sprintf( __( '%s (In Progress)', 'elasticpress' ), $title );

@felipeelia felipeelia merged commit dcfcb09 into develop Jan 4, 2023
@felipeelia felipeelia deleted the fix/3208-update-last-sync branch January 4, 2023 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Renaming "Last Sync"
2 participants