roykho
9b999deda0
Set path for unit test
2021-11-18 06:31:59 -08:00
roykho
2f4fa6e26c
Use Nx for unit tests action
2021-11-18 06:05:07 -08:00
Néstor Soriano
e21e4ef0d2
Merge pull request #31228 from woocommerce/remove/snippet-needed-to-activate-attributes-lookup-table-feature
...
Remove the need to invoke LookupDataStore->show_feature() to use the product attributes lookup table
2021-11-18 12:02:48 +01:00
Néstor Soriano
a50b9860fe
Merge pull request #31212 from woocommerce/improve/performance-of-product-attributes-lookup-table
...
Improve the performance of the product attributes lookup table query
2021-11-18 08:40:22 +01:00
roykho
4033121df7
Run npnx command
2021-11-17 12:25:33 -08:00
roykho
d50855db29
Update working dir
2021-11-17 12:09:32 -08:00
roykho
3bd09dec8c
Use pnpx
2021-11-17 11:57:26 -08:00
Nestor Soriano
3a40691c6b
Replace "{$wp->prefix}posts" with "{$wp->posts}"
2021-11-17 11:38:39 -08:00
Nestor Soriano
caf1481767
Improve the performance of the product attributes lookup table query
...
Improve (by a lot) the performance of the queries for the
product attributes lookup table by doing the following:
1. Fallback the query for the "AND" case to thequery for the "OR" case
when there's only one term being filtered for the category
(the subquery for the "OR" case is much simpler)
2. Collapse all of the "AND" queries (for all the categories)
into a simple one (this is possible since term ids are unique
even across categories)
3. The most important change: introduce an extra derived query,
so
...AND posts.ID in ( SELECT product_id FROM lookup_table WHERE...
becomes
...AND posts.ID in ( SELECT product_id FROM (
SELECT product_id FROM lookup_table WHERE...
This causes the filtering subquery to be executed only once.
2021-11-17 11:38:39 -08:00
roykho
79ee6c00f5
Create a seperate no dev composer install command
2021-11-17 11:32:53 -08:00
Ron Rennick
202469fd5b
add common utilities for cart, checkout coupon tests
2021-11-17 15:25:51 -04:00
roykho
008f2cbea9
Change format of passing flags
2021-11-17 11:24:35 -08:00
roykho
8dda9990ff
Use native command
2021-11-17 10:29:43 -08:00
roykho
8aa2ade4ce
Update core path
2021-11-17 10:21:04 -08:00
roykho
db3c0ded54
Install Nx for e2e
2021-11-17 10:07:17 -08:00
roykho
feedced44b
Remove flags
2021-11-17 09:35:20 -08:00
roykho
131e1ae73b
Use correct command to install Jest
2021-11-17 09:11:53 -08:00
roykho
0657b44dd5
Move composer install script to Nx commands
2021-11-17 09:09:09 -08:00
roykho
f15f75e9cf
No need to install Nx globally
2021-11-17 08:54:14 -08:00
Greg
a23d937620
Merge branch 'trunk' of github.com:woocommerce/woocommerce into update/31217
2021-11-17 09:47:36 -07:00
Ron Rennick
66ad8774d9
Merge pull request #31237 from woocommerce/fix/api-rest-response-code
...
Fix retrieving status code for API tests
2021-11-17 12:40:24 -04:00
roykho
24c565ba68
Add working directory
2021-11-17 08:39:05 -08:00
Vedanshu Jain
c3405cf06f
Merge pull request #31075 from woocommerce/fix/30781
...
Delay handling of hide-notice requests
2021-11-17 21:52:22 +05:30
roykho
c4998a931f
Add cwd and update paths
2021-11-17 08:07:53 -08:00
Greg
d5113e9361
Fix retrieving status code for API tests
2021-11-17 09:02:45 -07:00
roykho
347ed51214
Update paths
2021-11-17 07:58:53 -08:00
Néstor Soriano
efdaf77d80
Merge pull request #31094 from woocommerce/update/current-theme-has-wc-or-fse-support
...
has_archive if current theme supports woocommerce or is an FSE theme
2021-11-17 16:51:51 +01:00
roykho
0f57209548
Set cwd for command
2021-11-17 07:39:24 -08:00
roykho
3c65be3f39
Fix conflict
2021-11-17 07:25:47 -08:00
Ron Rennick
bbcb3ab321
Merge pull request #31225 from woocommerce/fix/api-build
...
Fixed @woocommerce/api Builds
2021-11-17 11:20:28 -04:00
Nestor Soriano
bd9b70c9ec
Remove the need to invoke LookupDataStore->show_feature()
...
This was needed to activate the feature for filtering products
by attribute using the new lookup table. The lookup table still
needs to be created and filled via the tools page.
2021-11-17 10:33:55 +01:00
roykho
1f850553ea
Merge branch 'trunk' into nx/gh-actions
2021-11-16 20:58:17 -08:00
roykho
bf2efa492a
Use Nx for code sniff action
2021-11-16 19:06:22 -08:00
roykho
142dcedc36
Use Nx commands for build and e2e tests
2021-11-16 18:32:08 -08:00
roykho
f940d049d6
Use Nx commands for CI
2021-11-16 18:17:35 -08:00
roykho
a56af927d9
Use trunk in our action-build step to be consistent
2021-11-16 17:55:56 -08:00
Christopher Allford
2f0a828493
Downgraded ts-jest
...
This was causing issues with building the API package, which in turn
broke the entire build.
2021-11-16 15:33:00 -08:00
Christopher Allford
471e5e7877
Fixed @woocommerce/api Builds
...
It looks like I missed the `pnpm-lock.yaml` update.
2021-11-16 15:19:33 -08:00
Greg
da62cc49a0
Merge branch 'trunk' of github.com:woocommerce/woocommerce into update/31217
2021-11-16 15:43:05 -07:00
Christopher Allford
724cbb3750
Merge pull request #31224 from woocommerce/fix/nx-commands
...
Fixed Broken TSConfig
2021-11-16 14:42:12 -08:00
roykho
4b8d10c0e6
Remove grunt and install it higher up
2021-11-16 14:27:03 -08:00
Christopher Allford
e29a4b2a0a
Fixed Broken TSConfig
2021-11-16 14:11:33 -08:00
Vedanshu Jain
78e7039944
Use update_coupon_usage_counts to avoid double count. ( #31147 )
...
Previously we were increasing coupon usage count on every apply_coupon method. This was causing double usages because, we would also increase on order save callback.
We instead now call `wc_update_coupon_usage_counts` in apply_method itself, which would increase the usage and also set the `_recorded_coupon_usage_counts` order meta.
Additional, we also manually call $couon->increase_usage_count if `_recorded_coupon_usage_counts` is because in this case, we are likely applying more than one coupon to the order. And `_recorded_coupon_usage_counts` meta would have already been set by the first coupon. This is not a good solution, ideally we should revamp how we store the coupon recorded information to support multiple coupon information from the get-go.
2021-11-16 14:23:24 -07:00
Claudio Sanches
742fffff79
Merge pull request #31149 from woocommerce/update/docs
...
Update/docs
2021-11-16 18:15:57 -03:00
roykho
e9a6520214
Install Grunt
2021-11-16 12:15:46 -08:00
roykho
50db0285c0
Updated pnpm local file
2021-11-16 12:13:19 -08:00
Greg
b76b9f3d9d
Merge branch 'trunk' of github.com:woocommerce/woocommerce into update/31217
2021-11-16 13:04:13 -07:00
roykho
b92ace6fa5
Merge branch 'trunk' into nx/gh-actions
2021-11-16 11:50:56 -08:00
Claudio Sanches
48fdb94bf3
Merge pull request #31130 from woocommerce/remove/install-subset
...
Remove install-subset process
2021-11-16 16:17:15 -03:00
Roy Ho
6ea1313674
Merge branch 'trunk' into remove/install-subset
2021-11-16 10:19:58 -08:00