-
Notifications
You must be signed in to change notification settings - Fork 817
Site: Add hosting_features to the WPCOM_JSON_API_GET_Site_Endpoint endpoint #43565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Conversation
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
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! Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
Code Coverage SummaryCoverage changed in 2 files.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's try to come up with actual wpcom PR to verify that the combination is working.
* @return bool | ||
*/ | ||
public function get_hosting_features() { | ||
return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this return null
/ empty array instead? The type is array
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I followed the returned value of the get_plan function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not convinced to do this right now (also see: p1747900761252039/1747818829.817529-slack-C08JZTRS6NA).
At the very least, I think we need to come up with the actual list of features, the shape of the response, how it will be consumed... etc before actually implementing it
0a05869
to
ee97813
Compare
Part of DOTCOM-13234, 183534-ghe-Automattic/wpcom
Proposed changes:
hosting_features
to theWPCOM_JSON_API_GET_Site_Endpoint
endpoint. We'll continue to implement the details on wpcom. With this change, we can reduce duplication and improve maintainability on CalypsoOther information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
/sites/:site
endpointhosting_features
on the response