Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Process Follower Inboxes in Batches (Automattic#1262)
* First pass at batching * Make it "work" * Updated approach * Make it work * Account for in-progress batches when reprocessing * Fix tests * Update phpdocs * Add/sent to inboxes actions (Automattic#1278) * add some actions * fix phpdoc * Use "Unreleased" instead of version number * Add readme * Switch actions props @obenland * renamed action names * fix phpdoc * fix phpdoc * fix phpdoc * fix namings * fix phpcs issues * Update function to account for new audience Also re-uses the `activitypub_sent_to_inbox` action * Always notify interactees Props @pfefferle * Use customizable constant for batch size * Publish post after processing interactees if they don't get sent to followers * use outbox processing instead * change filter name * Don't change function signature * Revert unnecessary docs change * use `apply_filters_deprecated` instead * fix apply_filters_deprecated * only log errors * store object id as meta * better php doc * Add test for deprecated filter * Keep track of where we are in each batch Allows the reprocess job to skip already processed batches * Revert object id meta We'll do that in a separate PR * Add tests for new Followers methods * Register meta * With meta now registered, it shouldn't need a fallback * Stream: Only surface errors in Outbox processing (Automattic#1240) * Stream: Only surface errors in Outbox processing Also adds support for comment and user types. * Add changelog * fix readme * update to new batch processing * fix phpcs * fix phpcs * re-use wordings from the rest controllers * fix phpcs * restructure the output to match the errors * revert latest changes * Fixed changelog --------- Co-authored-by: Matthias Pfefferle <[email protected]> * Move publish_post to calling function Makes it a bit easier to see what's happening when reading the code. * Help future devs * No longer needed * Restore fallback for tests * Outbox Batch: Only pass outbox id to jobs (Automattic#1285) * Outbox Batch: Only pass outbox id to jobs * Remove unnecessary imports --------- Co-authored-by: Matthias Pfefferle <[email protected]>
- Loading branch information