Commit Graph

37218 Commits

Author SHA1 Message Date
vedanshujain 2e4f2ef478 Add migration function for fixing existing product review counts. 2021-01-14 18:35:14 +05:30
vedanshujain 2dce182cf8 Add unit tests for review count methods. 2021-01-14 18:31:02 +05:30
vedanshujain 23618b06ed Add utility function for getting review counts in bulk for convinience.
Also refactors get_review_count_for_product to use the new method so that we only would have to maintain one method.
2021-01-14 18:27:41 +05:30
Roy Ho 0d2f478eab
Merge pull request #28690 from kevinruscoe/fix/28652
Ensure the orders status is reverted correctly when restoring it.
2021-01-13 13:54:26 -08:00
Kevin Ruscoe a78c1ec99e wp_untrash_post_status should be static as pointed out by roykho 2021-01-13 21:22:30 +00:00
Claudio Sanches 1f321f4a79
Merge pull request #28719 from raicem/update/featured-products-endpoint
Add Auth token for search/featured extensions requests
2021-01-13 18:13:25 -03:00
raicem eb3ba820da Use "wp_safe_remote_get" for sending search requests 2021-01-13 23:53:53 +03:00
Claudio Sanches 889e83e64c
Merge pull request #28698 from woocommerce/fix/28697
Add transient and action for proxying WC plugin activation hook
2021-01-13 16:49:51 -03:00
Ron Rennick b477cb8d3a
only activate WooCommerce in E2E initialization (#28588)
* only activate WooCommerce in E2E initialization
* use project basename for default plugin path
2021-01-13 12:27:11 +01:00
Ilyas Foo 0e5596d1fc Transient and action passes plugin filename 2021-01-13 09:52:17 +08:00
Roy Ho b7e45c3073
Merge pull request #28607 from masteradhoc/masteradhoc-patch-speak-none
patch for css3 validation issue for speak property
2021-01-12 12:38:45 -08:00
jonathansadowski 9dac51f129
Merge pull request #28790 from woocommerce/fix/issue-28727
Adjust dismiss link of store notice banner closes #28727
2021-01-11 16:21:18 -06:00
jonathansadowski 7669de8fbc
Merge pull request #28787 from woocommerce/fix/ci-wp-versions-update-after-wp56
Bump WP versions in Travis after WP 5.6 release.
2021-01-11 14:28:50 -06:00
roykho e0a722a642
Adjust dismiss link of store notice banner closes #28727 2021-01-11 12:24:49 -08:00
Peter Fabian 381f290302 Bump WP versions in Travis after WP 5.6 release. 2021-01-11 18:34:54 +01:00
Roy Ho d8b0a8558e
Merge pull request #28586 from idofri/phpdoc
Corrected data-types in phpdoc @param
2021-01-11 06:52:11 -08:00
Ido F 4be88bea4b corrected token-id data-type 2021-01-10 16:40:24 +02:00
Kevin Ruscoe 91ea67d94c Clean array to make the list a little easier to understand 2021-01-09 15:11:25 +00:00
Kevin Ruscoe 0f7de7e7bf Add 'product_variation' to the list of restored post types 2021-01-09 15:08:51 +00:00
Kevin Ruscoe dd934afc2e Add product to the list of post types that should revert their status upon being restored. 2021-01-09 14:49:29 +00:00
Roy Ho 9ebf70bf8d
Merge pull request #28646 from tivnet/patch-7
abstract_wc_order:add_product() - removed `throws`
2021-01-08 10:24:37 -08:00
Roy Ho e0be4b0f5c
Merge pull request #28681 from tanvirulhaque/master
Fix: Attributes on Edit Product page - "Select all" not working after "Select none" used
2021-01-08 10:09:27 -08:00
Roy Ho d4849c598c
Merge pull request #28692 from woocommerce/fix/28582
Add protective check to make sure WC()->session is initialized before  loading the data store.
2021-01-08 07:55:35 -08:00
Ron Rennick d23e4377ab
Merge pull request #28596 from woocommerce/try/wc-scripts
Add E2E shorthand script
2021-01-08 10:49:05 -04:00
Ron Rennick 5f7b71c543 update readme and package change log 2021-01-08 15:04:47 +01:00
Ron Rennick 96ab0d8d7f include package.json updates 2021-01-08 15:04:47 +01:00
Ron Rennick a7014d5496 introduce wc-e2e shorthand script 2021-01-08 15:03:12 +01:00
Ron Rennick 597ec5f9c3 WIP 2021-01-08 15:03:12 +01:00
Ilyas Foo 7f76d91b07 Delete transient before action to prevent race condition 2021-01-08 16:03:38 +08:00
Roy Ho 7ec422aad6
Merge pull request #28740 from sorensd/master
Updated the state name 'OR' in 'IN' Array
2021-01-07 08:24:22 -08:00
raicem f0166fcc56 Fix indentation errors as per WordPress code style guides 2021-01-07 15:14:38 +03:00
Vedanshu Jain e74bc15103
Merge pull request #28745 from woocommerce/fix/28741
Revert order and product controllers to use WP Post queries directly.
2021-01-07 17:37:25 +05:30
vedanshujain f8bcf6271d Revert order and product controllers to use WP Post queries directly.
This commit revert some of the changes added in #27735 because wc_get_products and wc_get_orders is not fully compitable with API controller queries. Since we are close to release 4.9, its better to revert and fix them properly then rush a fix. This undones some the performance improvements we acheived in 27735, in favor of more stability, hopefully we will be able to restore this soon.
2021-01-07 16:47:54 +05:30
Soren Singh Dary fbedeeac44
Updated states.php
Updated state name Orissa to Odisha, refer: https://en.wikipedia.org/wiki/Odisha#Etymology
2021-01-07 05:07:29 +05:30
Rodrigo Primo 007f3ec8aa
Merge pull request #28706 from paulochang/patch-1
Remove post code from Guatemala
2021-01-06 17:58:23 -03:00
Soren Singh Dary b7f863dc02
Updated the state name of 'OR' from India
Updated the state name of Odisha (previously Orissa) 'IN' array. Cite: https://en.wikipedia.org/wiki/Odisha#Etymology
2021-01-07 01:02:31 +05:30
Ron Rennick 6d402c96c8
Merge pull request #28017 from woocommerce/fix/25643
Fix E2E variable product test
2021-01-06 14:39:19 -04:00
Ron Rennick 7959ba3d16
Merge pull request #28045 from woocommerce/fix/28012
add support for custom E2E container name
2021-01-06 13:52:42 -04:00
Peter Fabian 7640c7f1bd
Merge pull request #28731 from woocommerce/fix/28729
Restore stock_status in V3 response.
2021-01-06 14:25:09 +01:00
vedanshujain 27b22d3aaa Move the logic to set stock_status from V2 to V3. 2021-01-06 17:55:56 +05:30
Vedanshu Jain e989b7cb03
Merge pull request #28728 from woocommerce/update/wc-admin-1.8.3
Bump wc-admin to 1.8.3
2021-01-06 16:30:25 +05:30
vedanshujain 1c774a0494 Create composer.lock with composer 2.0. 2021-01-06 16:28:32 +05:30
vedanshujain b0cc43a188 More for individual fields in responses for V2 and V3 products and orders endpoints. 2021-01-06 16:04:56 +05:30
vedanshujain e546c237b7 Add tests for checking all fields are returned even requested individually. 2021-01-06 15:12:55 +05:30
vedanshujain 2ae6c5b543 Also fetch dependencies for fields which are computed from other fields. 2021-01-06 15:09:50 +05:30
vedanshujain 1fdc24daa9 Add unit test for verifying that all expected fields are present. 2021-01-06 14:19:26 +05:30
vedanshujain 0d43aecebd Also fetch in_stock when stock_status requested in V2.
When called from V3, controller calls V2s get_product_data method, where stock_status was did not existed and was renamed. In V3 controller, we compute it based on V2 in_stock field.
2021-01-06 14:14:59 +05:30
Joel Thiessen 509d45abb3 Bump wc-admin to 1.8.3 2021-01-05 16:23:21 -08:00
Roy Ho c6f6d04c2e
Merge pull request #28558 from tyrann0us/patch-2
Invert “if” statement to reduce nesting
2021-01-05 12:02:01 -08:00
jonathansadowski 1e267980e8
Merge pull request #28723 from woocommerce/feature/issue-27208
Feature/issue 27208
2021-01-05 14:00:55 -06:00