Commit Graph

40088 Commits

Author SHA1 Message Date
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
Roy Ho 0c940df051
Update plugins/woocommerce/tests/e2e/README.md
Co-authored-by: Claudio Sanches <contato@claudiosanches.com>
2021-11-16 10:11:06 -08:00
Jeff Stieler 2bac37f4e6
Orders Endpoint Acceptance Tests (#31033)
* Create more sample orders data.

* Code formatting.

* Add tests for pagination.

* Formatting.

* Add test case for inclusion and exclusion parameters.

* Add test for parent and parent_exclude parameters.

* Add test case for status parameter.

* Add test case for customer parameter.

* Add test case for product parameter.

* Create a test order with all numerical properties populated.

* Add test case for precision parameter.

* Add test case for search parameter.

* Add test case for orderby parameter.

* Move missed api-core-tests files.

* Force tests to run in band (sequentially).
2021-11-16 10:03:53 -07:00
Greg aa5e0d6c4b Move run command onto single line 2021-11-16 09:03:50 -07:00
Greg 6849bf9796 Run API tests in their own job 2021-11-16 08:45:12 -07:00
roykho 6f0bba9e23
Use Nx commands in pr-code-coverage action 2021-11-16 07:26:33 -08:00
Ron Rennick 98b63e027f
Merge pull request #31207 from woocommerce/fix/api-package-tests
Replace `moxios` With `axios-mock-adapter` in @woocommerce/api Package
2021-11-16 10:47:56 -04:00
David Stone 74cd6f9be0
Allow empty arrays to be cached (#31077)
* Allow empty arrays to be cached

* Fix second check

* Add tests for attribute function changes

* Use InvokedRecorder to explicitly assert invocation count.

Provides more friendly failure messages and self documenting code.

* Code format fixes
2021-11-16 07:16:00 -07:00
And Finally 0bc7e4bc65
Combine My Subscriptions and Marketplace back into one Extensions page (#31085)
* Reverting changes in https://github.com/woocommerce/woocommerce/pull/30380, preparatory to merging the My Subscriptions and Marketplace pages back into one Extensions page.

* Moved category nav to a separate file.

* Added main nav tabs.

* Added category nav, styled the mobile version.

* Experiments with doing category tabs as a list.

* Styling category menu as a list of links in rectangular pills on desktop.

* Adjusting margins of product list in in-app marketplace.

* Removed `submenu_file` filter which called deleted `update_menu_highlight` method.

* Restored styling for update count bubble on My Subscriptions tab.

* Styling update bubble on My Subscriptions tab.

* Addressing design feedback. Restyled category pills to make them more obvious. Added `Browse categories` title before category menu on desktop. Changed `.addon-product-group-title` to an h2.

* Addressing feedback from https://github.com/woocommerce/woocommerce/pull/31085#pullrequestreview-806319880.

- Removing addition of `admin_title` filter calling deleted `update_my_subscriptions_title` method.
- Prepending `__DIR__` constant before path in `require` call.
2021-11-16 06:23:21 -07:00
Christopher Allford 2a29754ab2 Revised @woocommerce/api Test Suite
This commit replaces the moxios package with the
axios-mock-adapter, in order to fix all of the failing
tests. This felt necessary because changing the
TypeScript configuration would have the largest
potential impact on this package, due to it
being written natively in it. This package is a
great candidate for testing all of the new
configuration changes out on.
2021-11-15 23:06:47 -08:00
Christopher Allford c91dda177d
Fix E2E Tests (#31205)
* Removed Changlogger Autoload

* Changed Jetpack Changelogger Formatter Loading

Rather than using the Composer autoload, we should use the
changelogger's "filename" option to point directly at the file.
This keeps the file out of the autoloads, since it's possible that
plugins or packages may be symlinked and break the relative
path to the plugin.
2021-11-16 15:01:50 +13:00
Barry Hughes 0df6cc108d
Merge pull request #31026 from woocommerce/update/in-app-marketplace-price-suffix
Support dynamic `price_suffix` in in-app marketplace
2021-11-15 17:34:23 -08:00
Barry Hughes be1c879e47
Merge pull request #31196 from woocommerce/fix/30733
Set autocomplete off in cart quantity input field to show actual value.
2021-11-15 17:30:54 -08:00
Greg c3c96c1b26
Merge pull request #31125 from woocommerce/fix/30865
make expect calls in withRestApi optional
2021-11-15 11:38:40 -07:00
Barry Hughes a236bdca19
Merge pull request #31004 from matt-h/review-filter
Add Product Reviews filter for `review` comment type.
2021-11-15 10:26:28 -08:00
Ron Rennick e13869c442 fix merge conflicts 2021-11-15 13:03:14 -04:00
Ron Rennick 873fad37ce update utils changelog and readme 2021-11-15 12:59:28 -04:00
And Finally 24bafaa74d
Update plugins/woocommerce/includes/admin/class-wc-admin-addons.php
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2021-11-15 16:33:20 +00:00
Tom Cafferkey 1e4f045b6a Update theme_support check to include FSE enabled themes so that option woocommerce_queue_flush_rewrite_rules gets updated and run 2021-11-15 13:45:52 +00:00
Néstor Soriano 88621c6d01
Merge pull request #31169 from woocommerce/fix/unit-tests
Fix unit tests
2021-11-15 11:14:27 +01:00
vedanshujain 907c8d403b Set autocomplete off in cart quanity input field to show actual value.
Autocomplete is default to on in most browsers, this is usually fine, but FireFox will overwrite actual value with whatever user entered last. This means if we change the quanity in some other page, and then refresh the cart page, the last entered value in cart page will be displayed, overwriting the actual value passed by server.

So autcomplete is disabled by default for quanity input field, further a filter is added like other fields in case this needs to be modified.
2021-11-15 11:38:39 +05:30
vedanshujain 90bae59c43 Fix polyfill path. 2021-11-12 18:57:57 +05:30
vedanshujain dfdf593be1 Lock PHP platform confirm to last 7.0.x release to build correct dep tree. 2021-11-12 18:57:57 +05:30
vedanshujain 6c71a84b56 Fix unit test for WP 5.9 nightly by changing error message. 2021-11-12 18:57:57 +05:30
Christopher Allford 6b1aa73ab7 Moved Test File
It looks like a test file ended up at the top of the repository, this
moved it to the correct location.
2021-11-12 18:57:44 +05:30
Claudio Sanches fd3dfdbf3e
Merge pull request #31129 from woocommerce/distignore/project.json
Remove project.json from distribution
2021-11-11 18:34:22 -03:00
Claudio Sanches 7c145b9f69
Merge pull request #31148 from woocommerce/fix/repository-structure
Moved Test File
2021-11-11 18:33:45 -03:00