Repository navigation
VideoPress Channel: add the data layer for the channel blocks - #53503
Conversation
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! Jetpack plugin: No scheduled milestone found for this plugin. If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Videopress plugin: No scheduled milestone found for this plugin. If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
Code Coverage Summary1 file is newly checked for coverage.
|
47561ed to
fda930c
Compare
Channel_Data reads what channel blocks need, with nothing stored on the blog: the video list ( one page from SQL for newest / oldest / search, the full bounded list cached in the object cache per blog and posts last-changed ), play counts from the stats endpoint, subscriber counts ( WordPress.com, or the subscribers counts endpoint on Jetpack sites ), counts, handle, join date and labels. No caller yet, so no behaviour change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
d783cca to
9536956
Compare
Proposed changes
Channel_Data: the site's VideoPress videos ( paged in SQL for newest / oldest / search, a bounded full list cached in the object cache keyed by site and posts last-changed for popular sort and length filters ), play counts from the WordPress.com video plays stats ( soft dependency on the Stats package, 1-hour transient ), subscriber count ( WordPress.com, or the subscribers counts endpoint on Jetpack sites ), channel handle, joined date, compact numbers and relative ages.switch_to_blog()never reads another site's list.Part 3 of 10 of a stacked series
The VideoPress channel theme support is split so each change can be reviewed, tested and deployed on its own. Each PR is based on the previous one; merge them in order.
→ 3. VideoPress Channel: add the data layer for the channel blocks #53503 — VideoPress Channel: add the data layer for the channel blocks
Related product discussion/links
Does this pull request change what data or activity we track or use?
No.
Testing instructions
jp test php packages/videopress(Channel_Data_Test,Channel_Data_Scoping_Test).🤖 Generated with Claude Code