-
Notifications
You must be signed in to change notification settings - Fork 810
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Jetpack Sync: New endpoint to retrieve an ID range. (#12671)
* Jetpack Sync: Adds An endpoint to retrieve the minimum and maximum ID from the database table corresponding to the given object type. * Let's get a range of min / max ids based on batch size * improve data typing * removing permission check for now * Basing it off sync modules * Sync: The replica store already had some min/max logic. So I pulled that into it's own method that can be used by individual modules * We can infer from the table name. Thanks @tyxla * Update packages/sync/src/Replicastore.php Co-Authored-By: Marin Atanasov <8436925+tyxla@users.noreply.github.com> * Fixing documentation * Extra whitespace * improve comments * This endpoint should be a sync endpoint * Adjust poopy syntax * fix some wonky syntax * White space fixes * Update json-endpoints/jetpack/class.jetpack-json-api-sync-endpoint.php Co-Authored-By: Marin Atanasov <8436925+tyxla@users.noreply.github.com> * Update packages/sync/src/Replicastore.php Co-Authored-By: Marin Atanasov <8436925+tyxla@users.noreply.github.com>
- Loading branch information
1 parent
237b51b
commit d422e33
Showing
9 changed files
with
294 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.