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

Add a separate sync page #1835

Merged
merged 63 commits into from
Nov 5, 2021
Merged
Changes from 1 commit
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
1a59e3c
Separate sync screen
helen Jul 14, 2020
b42cba5
Link sync icon in header and make the sync page button go
helen Jul 14, 2020
4e37e8d
Merge branch 'develop' into add/sync-page
felipeelia Apr 19, 2021
6cfec16
Merge branch 'develop' into add/sync-page
felipeelia May 27, 2021
03adf36
Move Sync code to its own class/JS file
felipeelia May 27, 2021
0d25c41
Beginning of a major rewrite of the index process
felipeelia Jun 1, 2021
36e1a91
Another iteration of the Index Helper class
felipeelia Jun 2, 2021
287706e
Small clean up
felipeelia Jun 2, 2021
ff1544c
Bring hooks back + clean up
felipeelia Jun 2, 2021
c6e49ff
Output errors (to be tested)
felipeelia Jun 2, 2021
225ca2c
Output index errors
felipeelia Jun 2, 2021
3b57126
Start to check if an indexable has a new mapping
felipeelia Jun 2, 2021
f9ccdaf
Sync Page - Separate each run output
felipeelia Jun 7, 2021
a818f05
Check if fully reindexing or not before adding an indexable
felipeelia Jun 7, 2021
5019ec2
Start a rewrite of sync.js to remove jQuery dependency
felipeelia Jun 7, 2021
5ae31d7
Remove unused code
felipeelia Jun 7, 2021
86a6144
Start the migration of WP-CLI to the IndexHelper
felipeelia Jun 10, 2021
d66f95b
Another iteration of the migration of WP-CLI to IndexHelper
felipeelia Jun 11, 2021
093e38f
Fixing code standards
felipeelia Jun 11, 2021
f4c9fc7
Merge branch 'develop' into add/sync-page
felipeelia Aug 2, 2021
6c1d4ea
Fix link in header
felipeelia Aug 3, 2021
1a85c82
Merge branch 'develop' into add/sync-page
felipeelia Aug 9, 2021
da336b3
sync.js|css using 10up-toolkit
felipeelia Aug 9, 2021
7d54e98
Restore Post::put_mapping() behavior
felipeelia Aug 9, 2021
e9674bc
Fix issue with labels in dashboard sync
felipeelia Aug 9, 2021
5f70bf0
Merge branch 'develop' into add/sync-page
felipeelia Aug 9, 2021
826beae
Default ep_indexing_advanced_pagination back to true
felipeelia Aug 13, 2021
61b4ca3
Tests: Update filter used to check if indexing
felipeelia Aug 13, 2021
3018eaf
Merge branch 'develop' into add/sync-page
felipeelia Aug 13, 2021
341baa7
WP-CLI: Fix --offset param
felipeelia Aug 13, 2021
bc95ec2
WP-CLI: If post-type was passed, only work on posts indexable
felipeelia Aug 13, 2021
e21b33e
IndexHelper: Adjust messages if multisite or not
felipeelia Aug 13, 2021
53d454b
IndexHelper: Fix post_type arg
felipeelia Aug 13, 2021
2e92c4a
WP Acceptance: point tests to the new Sync admin page
felipeelia Aug 13, 2021
3ddd407
Update sync page URL
felipeelia Aug 16, 2021
674d086
Redirect to sync page after feature activation
felipeelia Aug 16, 2021
6fd3331
Update WP Acceptance Tests
felipeelia Aug 16, 2021
c3981bb
Merge branch 'develop' into add/sync-page
felipeelia Aug 16, 2021
812286c
Sync.js cleanup + do_sync sending mapping
felipeelia Aug 16, 2021
443de47
dashboard.php: cleanup
felipeelia Aug 16, 2021
1025392
is_indexing* functions cleanup
felipeelia Aug 16, 2021
5ef3d5a
Fix wpcli index on the dashboard
felipeelia Aug 16, 2021
dc33116
Indexing status update and ep_wpcli_sync transient removal
felipeelia Aug 16, 2021
92c5e77
WP-CLI: Fix empty state for get-indexing-status
felipeelia Aug 16, 2021
8524056
Merge branch 'develop' into add/sync-page
felipeelia Aug 17, 2021
da29516
get_indexing_status() - 'dashboard' should be 'web'
felipeelia Aug 17, 2021
c67c542
Hooks update and docs
felipeelia Aug 17, 2021
8603ff4
Command.php cleanup
felipeelia Aug 17, 2021
e939ad0
Merge branch '3.7' into add/sync-page
Rahmon Oct 21, 2021
c25311e
Update to rely on message returned from the server on sync
Rahmon Oct 27, 2021
a252e4c
Build assets
Rahmon Oct 27, 2021
1176e7d
Fix interrupting dashboard sync from cli
Rahmon Oct 27, 2021
3197de7
Build assets
Rahmon Oct 29, 2021
f338d08
Update since references to 4.0.0
felipeelia Oct 29, 2021
b9cdfb6
Initial version of Indexing Docs
felipeelia Oct 29, 2021
9818337
Indexing process docs: first review
felipeelia Oct 29, 2021
377cdb3
Fix warnings
felipeelia Nov 5, 2021
86b915b
Increase time for ep_wpcli_sync_interrupted and ep_sync_interrupted t…
felipeelia Nov 5, 2021
179906c
Change order in EP Menu (Sync before Health Status)
felipeelia Nov 5, 2021
ebc3b76
Run some actions on version branches
felipeelia Nov 5, 2021
68c5925
Fix version branches pattern
felipeelia Nov 5, 2021
c56a9a9
Remove check for compatibility with PHP 5.6
felipeelia Nov 5, 2021
bbb0487
ESLint fixes
felipeelia Nov 5, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Small clean up
  • Loading branch information
felipeelia committed Jun 2, 2021
commit 287706edd4256c4d7a4824c88a9c431f26356ab6
8 changes: 2 additions & 6 deletions includes/classes/Screen/Sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,11 +376,7 @@ public function action_wp_ajax_ep_cancel_index() {
exit;
}

if ( defined( 'EP_IS_NETWORK' ) && EP_IS_NETWORK ) {
delete_site_option( 'ep_index_meta' );
} else {
delete_option( 'ep_index_meta' );
}
Utils\delete_option( 'ep_index_meta' );

wp_send_json_success();
}
Expand All @@ -398,7 +394,7 @@ public function admin_enqueue_scripts() {
wp_enqueue_script( 'ep_dashboard_scripts', EP_URL . 'dist/js/sync-script.min.js', [ 'jquery' ], EP_VERSION, true );

$data = array( 'nonce' => wp_create_nonce( 'ep_dashboard_nonce' ) );
$index_meta = \ElasticPress\Utils\get_indexing_status();
$index_meta = Utils\get_indexing_status();

if ( defined( 'EP_IS_NETWORK' ) && EP_IS_NETWORK ) {
$wpcli_sync = (bool) get_site_transient( 'ep_wpcli_sync' );
Expand Down