vedanshujain
d502407145
Use CacheHydration to speed up fetching Order data.
...
This also primes various caches by fetching data well in advance, this would have been individual SQL queries otherwise.
2020-11-10 14:23:42 +05:30
vedanshujain
1788de4cda
Add support for fetching collection
2020-11-10 14:23:41 +05:30
vedanshujain
44a226941d
Refactor `read_meta` into filter_raw_data for better re-usability.
2020-11-10 14:23:41 +05:30
vedanshujain
f80a67b05a
Removed unused file
2020-11-10 14:23:41 +05:30
vedanshujain
4f514e79ad
Add support to prime refund cache in wc_order class.
...
Fetching refunds call is an expensive query, so priming the cache where possible could be beneficial for better performance.
2020-11-10 14:23:41 +05:30
vedanshujain
9bd92205b0
Add support to use `cache_hydration` in wc_get_order.
...
This can be used to pre-load expensive to compute caches.
2020-11-10 14:23:40 +05:30
vedanshujain
e9d97d97e7
Support for order_item to be init from obj with `order_item_id` prop.
...
Also set metadata cache if metadata prop is present in initial item.
2020-11-10 14:23:40 +05:30
vedanshujain
22212c7065
Add support for fetching order using a hydration object.
...
It will ultimately be on the datastore to effectively use the hydration object.
2020-11-10 14:23:40 +05:30
vedanshujain
4efc22f7d5
Refactor method to get individual class names for order and order-items.
...
This is done so that methods that fetch class names can be re-used.
2020-11-10 14:23:39 +05:30
vedanshujain
f5d0275786
Refactor methods to break down into smaller units for re-usability.
...
This commit breaks down `read_meta_data` so that individual methods for cache key and setting raw meta data can be reused.
Also adds set_meta_data_from_raw_data to initialize metadata from manual cache.
2020-11-10 14:23:39 +05:30
vedanshujain
c0b173061e
Add CacheHydration to facilitate storing of various caches.
...
Objects of this class will be used to store different cached values for objects like orders, products etc in bulk.
2020-11-10 14:23:39 +05:30
Claudio Sanches
8db66f705f
Merge pull request #28216 from woocommerce/update/changelog-2
...
4.7 changelog
2020-11-09 12:13:55 -03:00
Claudio Sanches
229346e408
4.7 changelog
2020-11-09 12:12:01 -03:00
Rodrigo Primo
69d359c60c
Bump stable tag to 4.6.2
2020-11-05 18:57:35 -03:00
Rodrigo Primo
b192e31fc2
Add 4.6.2 changelog
2020-11-05 18:54:55 -03:00
Christopher Allford
e711a447fe
Fixed order account creation
2020-11-04 16:56:32 -03:00
Christopher Allford
5f7454ae18
Merge pull request #28186 from woocommerce/packages/api/fix/pretty-permalinks-and-http-status
...
@woocommerce/api: Better support pretty permalinks
2020-11-04 10:52:59 -08:00
Christopher Allford
72d09026a6
Renamed the prettyPermalinks method to better clarify its intent
2020-11-04 10:28:10 -08:00
Néstor Soriano
6e5cc0c2f2
Merge pull request #28052 from woocommerce/php8_tighten_non-strict_date_comparison
...
PHP 8.0 - Use strict comparison to compare post dates
2020-11-04 15:23:16 +01:00
Néstor Soriano
09e066fc6e
Update includes/data-stores/class-wc-data-store-wp.php
...
Update `@since` in new function to 4.8.0
2020-11-04 13:09:52 +01:00
Christopher Allford
b9ba2e880d
Added support for installations not using pretty permalinks
2020-11-03 17:04:41 -08:00
Christopher Allford
39367de732
Fixed a bug with OAuth signature generation when using query parameters
2020-11-03 17:02:12 -08:00
James Allan
82b68b4914
Use strict comparison to compare post dates
...
With PHP 8.0, non-strict comparisons between integers and strings containing
non-numeric characters are being tightened. This affects comparisons like:
0 < '0000-00-00 00:00:00'
PHP 8.0 that equates to true whereas prior to 8.0 it would be false.
More details of this change can be found at: https://wiki.php.net/rfc/string_to_number_comparison
2020-11-02 11:10:30 +10:00
Roy Ho
2d6d53ed6f
Merge pull request #28127 from woocommerce/fix/duplicate-puppeteer-dependency
...
remove puppeteer dependency from main package
2020-10-30 10:34:11 -07:00
Rodrigo Primo
4d9ed4d235
Merge pull request #28145 from jozeflambrecht/patch-1
...
Add support for validation BE postcodes
2020-10-30 11:45:52 -03:00
jozeflambrecht
6c86950075
Update class-wc-validation.php
...
Add support for validation BE postcodes
https://github.com/woocommerce/woocommerce/issues/28144
2020-10-29 19:11:36 -04:00
Rodrigo Primo
e38d0dfdb1
Merge pull request #28005 from woocommerce/fix/issue-27945
...
Replace jQuery.ready function with recommended way since jQuery 3.0 c…
2020-10-29 18:06:02 -03:00
Rodrigo Primo
683c8cbcd7
Merge pull request #28116 from woocommerce/fix/flaky-coupon-test
...
fix flaky e2e coupon test
2020-10-29 18:04:59 -03:00
Rodrigo Primo
b612c4f041
Merge pull request #28064 from woocommerce/fix/27087
...
Improves i18n of string displayed during checkout
2020-10-29 17:55:02 -03:00
Tam Mullen
20d973975e
Merge pull request #27916 from woocommerce/add/core-tests-readme
...
add readme to core tests package
2020-10-29 17:13:40 +00:00
Néstor Soriano
6cebaa6f68
Merge pull request #28101 from dominic-ks/add-data-to-checkout_error
...
add error messages to checkout_error event
2020-10-29 16:24:23 +01:00
Dominic Vermeulen-Smith
2c17454956
Merge remote-tracking branch 'upstream/master' into add-data-to-checkout_error
2020-10-29 13:39:40 +00:00
Ron Rennick
8830de1fa4
use delete focus selector available on order edit
2020-10-29 09:17:35 -03:00
Ron Rennick
0424bfe847
fix typo in setup instructions URL
2020-10-29 08:44:10 -03:00
Ron Rennick
21ebe3af05
remove puppeteer dependency from e2e-environment
2020-10-29 08:41:24 -03:00
Ron Rennick
ef2e226feb
use focus instead of scrollTo
2020-10-28 19:15:17 -03:00
Ron Rennick
de4ae09b5d
Merge branch 'master' into fix/duplicate-puppeteer-dependency
2020-10-28 18:49:16 -03:00
Ron Rennick
9851c26d31
Merge branch 'master' into fix/flaky-coupon-test
2020-10-28 18:48:13 -03:00
Claudio Sanches
0fea7e8e58
Updated phpcs and phpunit composer.lock ( #28096 )
...
* Fix build on Travis
2020-10-28 16:31:43 -03:00
Ron Rennick
b6c88e3171
update composer.lock
2020-10-28 14:36:45 -03:00
Ron Rennick
038058af1e
update product new test with correct parameters
2020-10-28 13:44:33 -03:00
Ron Rennick
e095859040
remove puppeteer dependency from main package
2020-10-28 13:16:00 -03:00
Tam Mullen
a0233fad93
Merge pull request #27978 from woocommerce/docs/e2e-environment-0.1.6
...
update e2e-environment readme
2020-10-28 12:51:13 +00:00
Tam Mullen
8e5bd336de
Merge pull request #27994 from woocommerce/fix/27979
...
expand e2e-utils readme, simplify exports
2020-10-28 12:50:57 +00:00
Néstor Soriano
604958c4a8
Merge pull request #28103 from woocommerce/fix/issue-27756
...
Fix/issue 27756
2020-10-28 10:06:55 +01:00
Ron Rennick
1794026773
fix flaky e2e coupon test
2020-10-27 16:44:42 -03:00
Roy Ho
5007d17596
Merge pull request #27514 from helgatheviking/has_options
...
Add woocommerce_product_has_options filter to has_options() method
2020-10-27 09:48:26 -07:00
roykho
4abdf2d78b
Remove underline tag and allow themes to style to their liking
2020-10-27 09:10:13 -07:00
Roy Ho
99fcafee8f
Merge pull request #28027 from woocommerce/pp_response_check_for_cart
...
Check the cart exists before emptying it after handling PayPal response
2020-10-27 08:54:56 -07:00
Claudio Sanches
e7ac75fdfd
Merge pull request #28104 from woocommerce/update/woocommerce-admin/1.6.3
...
Updates wc-admin to 1.6.3
2020-10-26 23:24:10 -03:00