Skip to content

Premium Analytics: wire existing Stats sanitizers#49882

Draft
kangzj wants to merge 1 commit into
trunkfrom
update/stats-processing-existing-code
Draft

Premium Analytics: wire existing Stats sanitizers#49882
kangzj wants to merge 1 commit into
trunkfrom
update/stats-processing-existing-code

Conversation

@kangzj

@kangzj kangzj commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Fixes #

Proposed changes

  • Wire the existing Stats time-series, visits, email summary, and email breakdown sanitizers into the shared stats query sanitizer map.
  • Export the existing email stats item types from the Premium Analytics data package root.
  • Add query coverage so every current stats sanitizer key is accepted by statsProxyQuery.

Related product discussion/links

Does this pull request change what data or activity we track or use?

No.

Testing instructions

  • Run CI=true jp pnpm --dir projects/packages/premium-analytics test -- packages/data/src/queries/__tests__/stats-queries.test.ts packages/data/src/processing/stats
  • Run CI=true jp pnpm --dir projects/packages/premium-analytics typecheck

@kangzj kangzj requested review from a team as code owners June 24, 2026 06:44
@kangzj kangzj added Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Status] Needs Review This PR is ready for review. labels Jun 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ Add a "[Status]" label (In Progress, Needs Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

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:

  1. Ensure all required checks appearing at the bottom of this PR are passing.
  2. Make sure to test your changes on all platforms that it applies to. You're responsible for the quality of the code you ship.
  3. You can use GitHub's Reviewers functionality to request a review.
  4. When it's reviewed and merged, you will be pinged in Slack to deploy the changes to WordPress.com simple once the build is done.

If you have questions about anything, reach out in #jetpack-developers for guidance!

@kangzj kangzj self-assigned this Jun 24, 2026
@jp-launch-control

Copy link
Copy Markdown

Code Coverage Summary

This PR did not change code coverage!

That could be good or bad, depending on the situation. Everything covered before, and still is? Great! Nothing was covered before? Not so great. 🤷

Full summary · PHP report

@kangzj kangzj marked this pull request as draft June 24, 2026 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Package] Premium Analytics [Status] Needs Review This PR is ready for review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant