Commit Graph

4 Commits

Author SHA1 Message Date
Joshua T Flowers 7cdbbf87e8 Update all wc-admin endpoints to v4 (https://github.com/woocommerce/woocommerce-admin/pull/1298)
* Update all wc-admin endpoints to v4

* Add namespace for products and customers controllers

* Include product quantity in orders data store

* Add coupons to extended data in the orders data store

* Format order statuses response from database

* Hook up orders table to orders endpoint

* Add namespace to data endpoint controller

* Add namespaces to remaining extended controllers

* Use NAMESPACE var in place of wc/v4

* Update product links in orders table to products reports

* Add coupons rest controller override

* Format coupon code in response

Co-Authored-By: joshuatf <joshuatf@gmail.com>
2019-01-18 10:52:58 +08:00
Kevin Killingsworth fbed89eb19 Update @wordpress/data for 3.x (https://github.com/woocommerce/woocommerce-admin/pull/783)
* fix: Remove state argument from resolvers.

State is no longer the first argument to resolvers as of @wordpress/data
version 3.0.0

* Update @wordpress/data to 3.1.0

* Adjust resolvers to work with v2 and v3 wp.data

This adds code to inspect the arguments of the resolvers to allow for
working with v2 or v3 wp.data. This is only temporary.

* resolvers: fix tests

This fixes tests by removing empty state objects from them.
2018-11-05 18:30:32 -05:00
Albert Juhé Lluveras d770e9a7e0 Fix resolvers tests giving false positives (https://github.com/woocommerce/woocommerce-admin/pull/666) 2018-10-24 16:25:42 +02:00
Albert Juhé Lluveras ae6652b26c Send params with Orders table API calls (https://github.com/woocommerce/woocommerce-admin/pull/519)
* Send params with Orders table API calls

* Add onError case and caching for Orders calls

* Remove unused actions

* Load only 'processing', 'on-hold' and 'completed' orders

* Use NAMESPACE constant instead of hard-coded value

* Comment typos

* Add tests to Orders reducer, resolvers and selectors

* Typos

* Fix JSDoc mismatch
2018-10-16 10:50:07 +02:00