Premium Analytics: add Stats app dashboard modules endpoint#49889
Premium Analytics: add Stats app dashboard modules endpoint#49889kangzj wants to merge 4 commits into
Conversation
Code Coverage SummaryThis 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. 🤷 |
|
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! |
|
@claude please review this PR. |
|
Claude finished @kangzj's task in 2m 0s —— View job PR Review: Stats app dashboard modules endpointI reviewed the wiring against the foundation in ✅ What looks good
🟡 Minor suggestions (non-blocking)
❓ QuestionThe PR description mentions keeping "endpoint-owned processing, sanitizer, fixtures, and tests … where this endpoint introduces them." This endpoint is pure pass-through wiring with no processing/sanitizer and only the export-name test — that reads as intentional (raw Note: I couldn't run |
421139f to
8115b4f
Compare
|
Claude finished @kangzj's task in 1m 5s —— View job Re-review: Stats app dashboard modules endpoint (post-rebase)
The rebase onto the clean foundation (#49886) is clean — the diff against ✅ Confirmed against the rebased foundation
🟡 Prior minor suggestions still stand (all non-blocking)
🟢 VerdictLGTM. The rebase preserved correctness and the endpoint matches the established pattern. The three notes above are all optional polish. Note: I read the code statically and cross-checked the PHP proxy contract, but couldn't run |
|
Addressing claude[bot]'s re-review (comment #4787361603): shared the dashboard modules query name/version/endpoint constants between the read query and mutation, and switched mutation invalidation to |
|
@claude please re-review.\n\n |
|
Claude finished @kangzj's task in 52s —— View job Re-review: Stats app dashboard modules endpoint (post-fixes)
Thanks @kangzj — the two follow-ups from the prior re-review are both in and correct. ✅ Confirmed fixes
✅ Re-verified still-correct after the refactor
🟡 Remaining (optional, non-blocking)
🟢 VerdictLGTM. The query-identity sharing and Note: verified by static reading + cross-checking the PHP proxy contract; I couldn't run |
baf626c to
dfd685f
Compare
dfd685f to
b4fb591
Compare
|
Hi @kangzj Are the Stats endpoint PRs ready for review? They all appear to have conflicts with trunk. Just to confirm before starting the review process. 🙂 |
|
@claude this is already supported on trunk, isn't it? |
|
Claude finished @kangzj's task in 1m 59s —— View job Is the dashboard modules endpoint already on trunk?Short answer: No — not the one this PR adds. What's on trunk is the sibling endpoint, and they're easy to mix up because the names differ by one word. I checked
On trunk, The only place
Neither registers a typed query/hook for it — they just exercise the proxy plumbing. So the actual client wiring for
|
|
@chihsuan thanks for taking a look - not really. I failed miserably shepherding the many PRs at the same time, and now I'm working on them one by one - a lot of conflicts because they share the same exports and lower level code 😢 |
Fixes #
Proposed changes
Related product discussion/links
Does this pull request change what data or activity we track or use?
No. This only adds typed client data/query integration for an existing Stats API endpoint.
Testing instructions