-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Core Profiler - Add obw/core-profiler to the extensions endpoint #38418
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
Core Profiler - Add obw/core-profiler to the extensions endpoint #38418
Conversation
* Added name fields to all plugins * Added icons for jetpack and woocommercer-services
|
Hi @chihsuan, @adrianduffell, @woocommerce/ghidorah Apart from reviewing the code changes, please make sure to review the testing instructions as well. You can follow this guide to find out what good testing instructions should look like: |
Test Results SummaryCommit SHA: 382d253
To view the full API test report, click here. To view the full E2E test report, click here. To view all test reports, visit the WooCommerce Test Reports Dashboard. |
| return $plugin; | ||
| } | ||
|
|
||
| public static function withCoreProfilerFields( $plugins ) { |
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.
Some linting error here. 🥲
FOUND 3 ERRORS AND 0 WARNINGS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------
814 | ERROR | Method name "withCoreProfilerFields" in class DefaultFreeExtensions is not in snake case format, try "with_core_profiler_fields" (WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid)
814 | ERROR | Missing doc comment for function withCoreProfilerFields() (Squiz.Commenting.FunctionComment.Missing)
869 | ERROR | Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
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.
Fixed in 382d253
chihsuan
left a comment
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.
Nice, LGTM and tested well. 🚢
Changes proposed in this Pull Request:
Closes #38408 .
This PR adds
obw/core-profilerentry to the free-extensions endpoint. In addition to the newobw/core-profiler, it also includes the following changes.namefield to all plugins.jetpackandwoocommerce-servicesI'll work on WCCOM changes as well.
How to test the changes in this Pull Request:
woocommerce_show_marketplace_suggestionsis set tonotrue/wp-json/wc-admin/onboarding/free-extensionsobw/core-profilerobw/core-profilerobw/core-profiler