Premium Analytics: add Stats app commercial classification endpoint - #49887
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 17s —— View job Claude's PR Review
I reviewed the diff against 1. POST sends params as query string, with an empty body (worth confirming) 🔶
mutationFn: ( params?: StatsQueryParams ) =>
fetchStatsProxy( {
version: '2',
endpoint: 'commercial-classification',
method: 'POST',
params,
} ),
2.
|
ff9dc33 to
d8ca54f
Compare
|
Claude finished @kangzj's task in 1m 31s —— View job Claude's PR Re-review
Re-reviewed against Carrying forward the prior items, with one now better-substantiated by the foundation: 1. POST sends args as query string with an empty body — confirm intent 🔶
mutationFn: ( params?: StatsQueryParams ) =>
fetchStatsProxy( { version: '2', endpoint: 'commercial-classification', method: 'POST', params } ),
2.
|
|
Addressing claude[bot]'s re-review (comment #4787360143): confirmed the commercial-classification POST intentionally sends inputs as query params, matching the existing Stats Admin controller behavior, and documented that plus the cross-PR plan-usage invalidation dependency in code.\n\n |
|
Follow-up for the mutation-hook pattern: switched the commercial-classification mutation to |
|
@claude please re-review.\n\n |
|
Claude finished @kangzj's task in 1m 1s —— View job Claude's PR Re-review
Re-reviewed against Resolved since last review ✅1. POST args via query string — now documented & confirmed intentional. 2. Follow-up: Remaining (non-blocking)3. Response type defaults to 4. Import-grouping consistency (nit). Sibling hooks use the Looks good
Overall: no blocking issues. The prior substantive concerns are resolved; only the two minor/nit items (#3, #4) remain, neither of which needs to block merge. |
d2ec97d to
7f4f82b
Compare
Fixes #
Proposed changes
Related product discussion/links
Does this pull request change what data or activity we track or use?
No. This adds client-side wrappers and normalization for existing Stats API responses.
Testing instructions