Commit Graph

48737 Commits

Author SHA1 Message Date
Christopher Allford 3f5c3b2039 Added Changelog 2022-05-06 15:00:00 -07:00
Christopher Allford 0519045d20 Added Missing Dependencies
Some kind of branch switching related mishap it seems.
2022-05-06 14:58:33 -07:00
Christopher Allford fc56455e47 Fixed Monorepo Merge Build
By default, TypeScript looks for type roots in
parent node_modules directories. We can't
do this because there are React types
that cause errors. This commit explicitly
defines the type roots for the package to avoid
that behavior.
2022-05-06 13:06:22 -07:00
Josh Betz a1cb8fe8fc lint 2022-05-06 14:49:25 -05:00
Josh Betz 01fc3018d0 Clear the theme cache for any plugin update
The cached theme data has some properties that depend on WooCommerce.
This could also extend to extensions. Since we don't have a reliable way
to know if a given plugin is a WooCommerce extension, any plugin update
should flush the cache.
2022-05-06 14:49:25 -05:00
Josh Betz 43579aeac9 Expire theme cache in case a theme is updated outside WordPress
If someone updates their theme outside of the WordPress update process
(by manipulating files directly) the cache won't be invalidated. To deal
with that, we're setting the TTL here to 1hr.
2022-05-06 14:49:25 -05:00
Josh Betz 5dc5b467a8 Clear the theme cache if woocommerce is updated 2022-05-06 14:49:25 -05:00
Josh Betz 747278a85c changelog 2022-05-06 14:49:25 -05:00
Josh Betz b6b5b8f33b Extract top-level property
Using _fields, we can specify a sub-property like environment.version.
In that case, we need to extract the top-level property so we known
which function to run.
2022-05-06 14:49:25 -05:00
Josh Betz 30f41c96e8 phpcs 2022-05-06 14:49:25 -05:00
Josh Betz fe3b71c011 API: System Status: Cache theme info
Generating theme info involves reading the theme files from disk and
parsing them.

In testing, caching this data in a transient improves performance by
600ms. Since themes changes relatively infrequently, the cache hit rate
should be quite high.

We're registering the cache clean function in Server.php because
rest_api_init is too late.
2022-05-06 14:49:25 -05:00
Josh Betz 66c21a5e8b API: System Status: Only load necessary data
The system status endpoint supports the global `_fields` query parameter
for limiting which fields are returned. That is, if you send a request
with a query string of `?_fields=environment`, only the environment
property will be returned. However, we still calculate every property.

This change ensure that we only gather the data that is necessary for
the response. Since some of this data can be somewhat slow (like reading
from the disk in the case of get_theme_info), this could have a pretty
nice performance benefit in some cases.
2022-05-06 14:49:25 -05:00
Christopher Allford 74f44dd04c Removed Unnecessary Rebuilds
Nx already handles the building of dependencies.
This commit removes the unnecessary build
calls from WooCommerce's "build" script.
2022-05-06 12:26:27 -07:00
Christopher Allford 31d7249080 Removed "prebuild" Script
PNPM does not execute "pre" and "post"
scripts for user-defined scripts. This removes
the "prebuild" from the React Admin's build.
2022-05-06 12:16:57 -07:00
Christopher Allford dc6bd75984 Fixed Beta Tester Uglification
PNPM does not run "pre" and "post" scripts
for user-defined scripts. This commit
removed the "preuglify" script from the
beta tester plugin so that it builds correctly.
2022-05-06 12:11:51 -07:00
Corey McKrill 245dd98b45
Orders API: Add response fields for some order states (#32888)
Adds the following fields to the order response object for both v2 and v3 of the WC REST API:

* is_editable
* needs_payment
* needs_processing

Some order states (different than statuses) are determined by complex logic involving other order properties, and/or they are filterable by extensions. These states are difficult to calculate in a client app whose only data source is the REST API, and thus they are best calculated on the server and added as separate properties to the API response object.
2022-05-06 11:06:33 -07:00
Barry Hughes 8000a9b0ef
Merge pull request #32893 from woocommerce/fix/product_attributes_lookup_table_update
Fix: product attributes lookup table not being updated on WooCommerce update and on REST API batch requests
2022-05-06 09:58:10 -07:00
Nestor Soriano 37e9be5e87
Add changelog file 2022-05-06 11:06:39 +02:00
Nestor Soriano ff76f898f7
Fix: product attributes lookup table not updating on REST API batch requests
When the "products/batch" endpoint is used to create or update products,
the product attributes lookup table wasn't being updated as it's the
case of the single product endpoints.
2022-05-06 10:20:38 +02:00
Nestor Soriano 3d77547d77
Fix: product attributes lookup table not filled on WooCommerce update
When WooCommerce was updated from an version older than 6.2,
and before the user hit the "Update database" button, the product
attributes lookup table usage was activated but it was still empty.
This caused the search to not work, and the product filtering widget
to not appear.
2022-05-06 10:14:50 +02:00
Chi-Hsuan Huang 211e0f9a24
Merge pull request #32891 from woocommerce/fix/32863-get-option-deprecated-notices
Fix `get_options` function deprecation notice in WC 6.5 RC
2022-05-06 16:00:57 +08:00
Chi-Hsuan Huang 72cf343cda
Merge pull request #32866 from woocommerce/fix/32761-exp2-task-no-padding
Fix no padding between the task section and things to do next in experiment 2
2022-05-06 14:28:46 +08:00
Chi-Hsuan Huang 6d0b794fc7 Replace margin-bottom 16px with $gap for experiment 2 2022-05-06 12:44:43 +08:00
Chi-Hsuan Huang 1ea12c31b6 Add changelog 2022-05-06 11:26:14 +08:00
Chi-Hsuan Huang c76e97d527 Add woocommerce_task_list_reminder_bar_hidden to woocommerce permissions to fix deprecation notice 2022-05-06 11:19:01 +08:00
Eric Jinks d77f000e6e
Add subscriptio to plugin eligibility check 2022-05-06 13:08:54 +10:00
Eric Jinks 8beed46c33
Add sumosubscriptions to plugin eligibility check 2022-05-06 12:57:53 +10:00
Chi-Hsuan Huang ce253ca390
Merge pull request #32815 from woocommerce/add/32412-load-sample-products
Add load sample products for experimental product task
2022-05-06 09:23:26 +08:00
Chi-Hsuan Huang ac87972fc0
Merge pull request #32870 from woocommerce/update/center-view-more-button
Center view more/less button for add product task
2022-05-06 09:22:12 +08:00
Roy Ho 30846cb8b4
Update woocommerce sniffs to latest 0.1.3 (#32886) 2022-05-06 12:48:46 +12:00
Jorge A. Torres dda417ccd2 Add sanitization of color settings to OptionSanitizer 2022-05-05 13:05:32 -05:00
Jorge A. Torres d94b7af9dc Add OptionSanitizer class for sanitization of settings 2022-05-05 13:05:32 -05:00
Roy Ho 73a9f9a7b3
Merge pull request #32873 from woocommerce/tweak/workflow-cache
Add unique secrets cache key to enable clearing of cache
2022-05-05 05:36:39 -07:00
Vedanshu Jain 79c953c2f2
Merge pull request #32115 from mcliwanow/add/12397-tracking-params-wccom-from-subscriptions
Subscriptions - add tracking params to WCCOM URLs
2022-05-05 14:31:50 +05:30
Chris Aprea c92bc4b357 Merge branch 'add/experiment-subscriptions-admin-menu-1' into add/experiment-subscriptions-admin-new-design 2022-05-05 16:01:35 +10:00
Chris Aprea 77cc1f61de Merge branch 'add/experiment-subscriptions-admin-menu' into add/experiment-subscriptions-admin-menu-1 2022-05-05 16:00:50 +10:00
Chris Aprea 7add4dca88 Implement the new subscriptions page design 2022-05-05 15:04:27 +10:00
Paul Sealock 5537da6e9d
Packages: Add Changelogger scripts (#32813) 2022-05-05 15:26:36 +12:00
Paul Sealock 489ebf2cc6
Standardize linting: e2e js packages (#32794) 2022-05-05 15:02:50 +12:00
Eric Jinks 0eb8d95bfb
Reduce recent sales query scope to improve performance 2022-05-05 10:59:04 +10:00
Eric Jinks e36c5d3b8f
Change plugin eligibility to check for installed plugins 2022-05-05 10:37:48 +10:00
roykho ab58263e80
Add unique secrets cache key to enable clearing of cache 2022-05-04 15:20:31 -07:00
Alex López b62a935869 Merge remote-tracking branch 'origin/trunk' into performance/merchant-view-coupons 2022-05-04 16:55:15 +02:00
Jamel Noel Reid 4915c389ef
Merge pull request #32521 from woocommerce/nielslange-patch-1
Remove duplicate entry `verifyAndPublish` from docs
2022-05-04 09:21:47 -05:00
Vedanshu Jain e74a106fe8
Merge pull request #32747 from crstauf/patch-1
Fix `is_page()` and `is_singular()` called incorrectly
2022-05-04 19:06:11 +05:30
Roy Ho 79c2b29c1b
Merge pull request #32861 from woocommerce/fix/zip-workflow
Fix/zip workflow
2022-05-04 05:41:23 -07:00
Eric Jinks b32a8f49a9
Fix store base location eligibility check to limit to USA 2022-05-04 21:57:10 +10:00
vedanshujain 8cba910dec Add changelog. 2022-05-04 16:41:26 +05:30
Chi-Hsuan Huang 9eb38bcd37 Add changelog 2022-05-04 17:28:19 +08:00
Chi-Hsuan Huang 7e3a259cc5 Center experimental products view more button 2022-05-04 17:27:41 +08:00