Skip to content

Stats Review: Add StatsService (P8)#24720

Closed
kean wants to merge 1 commit intoreview/contry-map-viewfrom
review/stats-service
Closed

Stats Review: Add StatsService (P8)#24720
kean wants to merge 1 commit intoreview/contry-map-viewfrom
review/stats-service

Conversation

@kean
Copy link
Contributor

@kean kean commented Aug 5, 2025

Add StatsService as an adapter for WordPressKit. It is a little bit messy because of the API design.

Notes:

  • Has a simple in-memory cache (similar to the store in the production version of stats)
  • Has to map dates incorrectly created by WordPressKit in the local device time zone to the site time zone
  • getTopListData doesn't actually support loading separate metrics (SiteMetric) yet, but the mock store does – hope to add it in the future

@kean kean added this to the Pending milestone Aug 5, 2025
@kean kean added the Stats label Aug 5, 2025
@kean kean mentioned this pull request Aug 5, 2025
14 tasks
@dangermattic
Copy link
Collaborator

1 Warning
⚠️ This PR is larger than 500 lines of changes. Please consider splitting it into smaller PRs for easier and faster reviews.

Generated by 🚫 Danger

@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 5, 2025

@kean kean closed this Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants