Commit Graph

40124 Commits

Author SHA1 Message Date
Nestor Soriano 79f2936ae9
Temporary fix for a unit test.
The "Advanced" section in the product settings page exists only
if the product attributes lookup table exists. The table will
eventually exist for everybody, so a temporary check has been added.
2021-12-03 12:25:20 +01:00
Nestor Soriano fd81e477d2
Fix: bad counters in the filter by attribute widget for OR.
When a filter by attribute widget was configured as OR, the query
to return the product counts was overfiltering and returning
less results than it should. It now works as in the case of not
using the lookup table.
2021-12-03 12:22:52 +01:00
Nestor Soriano 5253a1adae
Sort arrays before comparison in unit test
Without this a test fails in GitHub
("Run unit tests with code coverage" task).
2021-11-23 10:28:49 +01:00
Nestor Soriano b068ade7c6
Create and activate product attributes lookup table in data migration
Until now the product attributes lookup table had to be created
and its usage had to be activated manually, via the tools page.
This commit does the following:

1. Remove the tools to create and delete the table
   (but keeps the tool to regenerate the table data for one or for
   all the products)

2. Creates a data migration that triggers the table creation and
   filling (unless the table already existed) for Woo 6.1

3. After the migration finishes, activates the table usage for
   product filtering (site admin can still disable it via
   Settings - Products - Advanced)
2021-11-23 10:28:49 +01:00
Greg 8bbd41d6e2
Merge pull request #31052 from woocommerce/add/api-tests-orders-crud
API tests for CRUD methods in Orders API
2021-11-22 13:43:35 -07:00
Barry Hughes 5773089e8c
Merge pull request #31227 from woocommerce/fix/count_param
Update count param consistently.
2021-11-22 11:34:47 -08:00
Peter Fabian ab1a35719c
Merge pull request #31257 from woocommerce/fix/31035
Send set password link instead of the actual password to new users.
2021-11-22 18:43:41 +01:00
jonathansadowski 6bd17a3dfd
Merge pull request #31272 from woocommerce/fix/smoke-test-release
Add missing run command
2021-11-22 10:03:27 -06:00
roykho 22a1e0b2b5
Add path 2021-11-22 06:28:18 -08:00
roykho b88ec3a573
Add missing run command 2021-11-22 06:22:33 -08:00
vedanshujain 2013a66313 Add test for parse_file_path method in WC_Download_Handler class. 2021-11-22 19:39:00 +05:30
vedanshujain a6626eeb64 Send $count param as argument so that its updated consistently.
As far as I can see, this count param is not really needed, but it will still be good to keep it updated in case its getting used in an edge case that I have not considered.
2021-11-22 19:39:00 +05:30
Peter Fabian 5cba6b6eb6
Merge pull request #31126 from woocommerce/update/fallback-extensions-message
Show fallback message in extensions marketplace when the store can't connect to the WCCOM API
2021-11-22 11:02:32 +01:00
Rodel 3c31414c80 Merge branch 'trunk' into add/api-tests-orders-crud 2021-11-22 15:37:25 +08:00
Jeff Stieler 209566b7c4
Fix errant stock adjustment when saving partially refunded orders. (#31172)
* Preserve stock metadata for refunded items.

Prevents fully restocked items on partially refunded orders from having stock reduced on subsequent order updates.

* Add E2E test covering errant restocking fix.
2021-11-19 14:24:35 -07:00
Brian 4d212875f5
Costa Rica: add states and change label (#31189)
* add costa rica states

* change label state from costa rica

* change to english string
2021-11-19 12:25:37 -07:00
Brian 59910ffeab
Guatemala: fix iso code - change label for state (#31187)
* fix iso code for guatemalan states

* change label for guatemala state

* change to english instead local version

https://github.com/woocommerce/woocommerce/issues/31150#issuecomment-970322350
2021-11-19 12:17:40 -07:00
Peter Fabian 1fd893a2ed Bump template version. 2021-11-19 19:34:46 +01:00
Peter Fabian 10daece5ae The extra parameter actually seems unnecessary. 2021-11-19 19:18:17 +01:00
Brian cc9de68f6c
Paraguay: Update Label (#31177)
* add label for paraguay states

* change to english string
2021-11-19 10:33:01 -07:00
Brian df87e5a42d
El Salvador: Update States + label (#31176)
* add el salvador states

add el salvador states with correct ISO-Code

* change label to departamento

* change to english string

* fix states
2021-11-19 10:29:08 -07:00
Brian f48492df86
add uruguay states (#31167)
* update uruguay states

add regions

* change string to departamento

* change to english string
2021-11-19 10:24:51 -07:00
Brian 2bf383a643
Venezuela States: Update iso-code's + state name change (#31175)
* update iso-code + state name change

update iso-code + state name change

* venezuela: update label for statefield

* remove as state is correct
2021-11-19 09:05:01 -07:00
Peter Fabian b7c8e3ea68 Send set password link instead of the actual password to new users. 2021-11-19 16:30:53 +01:00
Roy Ho 448bc6f109
Merge pull request #31251 from woocommerce/update/dev-version
Prepare For 6.1 Release Cycle
2021-11-19 06:12:00 -08:00
And Finally 257e7c866c Addressing feedback.
- Replaced `intval` calls with faster type casting.
- Showing more informative error messages.
- Using ternary for better legibility in `WC_Admin_Addons::output`.
- Added `is_wp_error` check to avoid warning from `count` call in `html-admin-page-addons.php`.
- Always showing error message as detail in error output.
- Showing error detail message above "To start growing your business, head over to WooCommerce.com" text, instead of below.
2021-11-19 10:42:05 +00:00
And Finally ea1dd33b25 Updated error text. 2021-11-19 10:41:21 +00:00
And Finally 61d46c6987 Added more informative error messages when API request fails on the in-app marketplace featured page. 2021-11-19 10:41:21 +00:00
And Finally 9a0e91477e Added `woocommerce_page_wc-addons_connection_error` action, which records a Track event when the in-app marketplace fails to connect properly to the WCCOM API. 2021-11-19 10:41:21 +00:00
And Finally b7520f3d9a Slightly tidier handling of bad responses in `render_featured`. 2021-11-19 10:41:21 +00:00
And Finally a40ed95c0f Showing fallback message when the store can't connect to the WCCOM API. 2021-11-19 10:41:21 +00:00
Christopher Allford b7cc36e2c7 Updated 6.1 Version
With the release branch for 6.0 cut,
we can now update the development version.
2021-11-18 16:16:50 -08:00
Christopher Allford 388dc0290e
Merge pull request #31243 from woocommerce/dev/bump-woo-admin-2.9
Bump WooCommerce Admin to 2.9-rc.2
2021-11-18 16:12:11 -08:00
Adrian Duffell 36b48fec96 Bump WooCommerce Admin to 2.9-rc.2 2021-11-18 13:34:56 -08:00
Christopher Allford 42c2a2d252
Merge pull request #31242 from woocommerce/update/blocks-to-6.3.2
Update WooCommerce Blocks to 6.3.2
2021-11-18 13:31:25 -08:00
Niels Lange 909ba998fd Update composer.json and composer.lock for Blocks 6.3.2 2021-11-18 13:00:35 -08:00
Greg 49447617c3
Merge pull request #31239 from woocommerce/fix/29677
add common utilities for cart, checkout coupon tests
2021-11-18 12:31:05 -07:00
jonathansadowski eaf689ad78
Merge pull request #31216 from woocommerce/nx/gh-actions
Use Nx commands in GH actions
2021-11-18 11:44:02 -06:00
Ron Rennick 8b53c3a8b9 Merge branch 'trunk' of github.com:woocommerce/woocommerce into trunk 2021-11-18 13:38:34 -04:00
roykho 549f8c5e9e
Update e2e path 2021-11-18 08:25:48 -08:00
roykho 19d26298ea
Merge branch 'trunk' into nx/gh-actions 2021-11-18 08:02:24 -08:00
roykho 9fbaca0a9d
Install dependencies again 2021-11-18 07:47:57 -08:00
roykho 8732c04c86
Use single commands for executors 2021-11-18 07:28:51 -08:00
roykho 7d6979905c
Use Nx commands for smoke test release action 2021-11-18 07:25:19 -08:00
roykho c39ab816d9
Use Nx commands for daily smoke test action 2021-11-18 07:23:30 -08:00
Ron Rennick 6f84faf5ec
Merge pull request #31218 from woocommerce/update/31217
Run API tests in their own job
2021-11-18 11:11:22 -04:00
roykho 68b9e2896b
Install composer 2021-11-18 07:09:03 -08:00
roykho ce461d0c5b
Check directory 2021-11-18 06:56:55 -08:00
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