Repository navigation
Conversation
Contributor
|
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! |
layoutd
force-pushed
the
add/pa-stats-wpcron-export
branch
from
July 9, 2026 12:51
136e503 to
19403d2
Compare
Code Coverage SummaryCoverage changed in 3 files.
6 files are newly checked for coverage. Only the first 5 are listed here.
|
layoutd
force-pushed
the
add/pa-stats-wpcron-export
branch
from
July 9, 2026 13:17
19403d2 to
1f325fb
Compare
layoutd
force-pushed
the
add/pa-stats-wpcron-export
branch
from
July 9, 2026 13:32
1f325fb to
7c8bfe0
Compare
layoutd
force-pushed
the
add/pa-stats-wpcron-export
branch
from
July 9, 2026 13:37
7c8bfe0 to
ca8d1cd
Compare
layoutd
force-pushed
the
add/pa-stats-wpcron-export
branch
from
July 9, 2026 13:43
ca8d1cd to
01567fd
Compare
layoutd
force-pushed
the
add/pa-stats-wpcron-export
branch
from
July 9, 2026 13:49
01567fd to
04097ce
Compare
3 tasks
Contributor
Author
|
Closing as a POC in favor of client-side + direct retrieval combo: #50456 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes WOOA7S-1672
Proposed changes
POST /wp-json/jetpack-premium-analytics/v1/reports/stats-csv-exportfor direct downloads and WP-Cron scheduled email delivery.stats-top-postsas the first Jetpack Stats export report, backed by the Statstop-postsproxy endpoint.wp_mail()attachment delivery.wp_mail()delivery.Related product discussion/links
Does this pull request change what data or activity we track or use?
No new tracking or data collection. This exports existing Jetpack Stats data for authorized users. Download delivery streams the CSV response, and email delivery schedules a WP-Cron job that sends the CSV as an attachment to the requesting user's account email.
Testing instructions
POSTto/wp-json/jetpack-premium-analytics/v1/reports/stats-csv-exportwithreport_type=stats-top-posts, a validfrom/toISO date range, anddelivery_method=download.Title,Views,Type, andURLcolumns.delivery_method=email.202and the CSV arrives as an email attachment after WP-Cron runs.