Commit Graph

195 Commits

Author SHA1 Message Date
Peter Fabian a346f13beb Added extended info. 2018-12-18 12:01:38 +08:00
Peter Fabian 5eee869a74 Added small fixes to set up coupon endpoints. 2018-12-18 12:01:38 +08:00
Peter Fabian 1630cb9c6f Removed unsupported parameter from coupons endpoint. 2018-12-18 12:01:18 +08:00
Joshua T Flowers 9486ab7896 Update/taxes endpoint hookup/941 (https://github.com/woocommerce/woocommerce-admin/pull/1008)
* Hook up taxes to endpoint

* Hook up tax stats endpoint

* Add default tax stat totals for empty results

* Create subtotals from intervals in API

* Change orders to orders_count to keep consistent naming
2018-12-18 10:26:46 +08:00
Justin Shreve e42ad6956b Add customer email filter (https://github.com/woocommerce/woocommerce-admin/pull/1092)
* Add customer email filter

* Handle PR feedback: Fix up if statement and add extra info to validation comment
2018-12-17 11:20:11 -05:00
Claudio Sanches 80f1b2f256 [REST API] Stock endpoint (https://github.com/woocommerce/woocommerce-admin/pull/974)
* New reports stock endpoint

* Register new endpoint

* Unit tests

* Included "name" into stock results

* Fixed sku type

* Improve stock _links returning properly links for variations and parent products

* Fixed docblock

* Sort stock by stock_quantity by default

* Fixed orderby

* Ignore sticky posts

* Fixed variable names
2018-12-14 07:43:39 -08:00
Justin Shreve 20e202080a Add Live Data to Reviews Panel (https://github.com/woocommerce/woocommerce-admin/pull/1055)
* Add Live Data to Reviews Panel
Adds the ability to embed the product in a product review response

* Clean up code needed to embed some product fields.

* Add API response tests
2018-12-12 08:35:56 -05:00
Allen Snook de105648be Activity Panel: Inbox: Filter update and error notes out of the inbox (https://github.com/woocommerce/woocommerce-admin/pull/893)
* Filter update and error notes out of the inbox

* Remove redundant trim().

* Fix test for admin notes API type parameter.
2018-12-11 09:00:57 +08:00
Joshua T Flowers 04d3ce6eb1 Add taxes endpoint and data store (https://github.com/woocommerce/woocommerce-admin/pull/1000)
* Add taxes endpoint and data store

* Add sorting options and normalize orderby param

* Add report taxes unit tests

* Add tax rate to response

* Add country, state, priority, and name to response

* Fix tax codes query param

* Add class comment

* Add missing  to record query

* Add comment about ambiguous column
2018-12-11 08:58:05 +08:00
Joshua T Flowers 557cec57cb Add tax stats endpoint (https://github.com/woocommerce/woocommerce-admin/pull/1019) 2018-12-11 08:55:05 +08:00
Paul Sealock 93a7472e54 REST API: Add stock info to products and variations 2018-12-11 07:19:46 +13:00
Peter Fabian 1c8459244a Merge branch 'master' into fix/749
# Conflicts:
#	includes/data-stores/class-wc-admin-reports-products-data-store.php
2018-12-04 12:07:43 +01:00
Paul Sealock bf0e025b05 REST API: isolate extened info in /reports/products 2018-12-04 13:01:36 +13:00
Peter Fabian 1acb9827e7 Merge branch 'master' into fix/749
# Conflicts:
#	includes/data-stores/class-wc-admin-reports-products-data-store.php
2018-12-03 16:21:04 +01:00
Peter Fabian 6e68247701 Merge pull request woocommerce/woocommerce-admin#953 from woocommerce/fix/740
Added support for ordering by product name in products endpoint.
2018-12-03 11:56:28 +01:00
Paul Sealock 164a67144b try/variations-endpoint 2018-12-03 11:49:37 +13:00
Peter Fabian 8b80de9bc2 Added support for ordering by product name in products endpoint. 2018-11-28 15:14:34 +01:00
Peter Fabian 99e2c463c7 Added parameter mapping for products/stats endpoint. 2018-11-28 11:04:18 +01:00
Peter Fabian e6cca3c083 Replaced code_includes/_excludes with coupon_* as agreed. 2018-11-28 10:53:11 +01:00
Peter Fabian a765a6df97 Added tests for advanced filters of orders report. 2018-11-27 21:39:14 +01:00
Peter Fabian f9a46423e0 Added get_order_statuses to REST controllers where it's required. 2018-11-27 16:39:11 +01:00
Peter Fabian 26debd77c3 WIP on advanced filters.
Plus fixing bugs:
- fixed tests
- fixed schema definition to reflect response data
- split WHERE SQL clause into time constraints and rest
2018-11-16 17:51:33 +01:00
Peter Fabian 9d86e01f4e Updated REST controller with new parameters. 2018-11-15 19:01:22 +01:00
Peter Fabian 11d6f2e93a Updated query parameters according to spec. 2018-11-13 16:24:57 +01:00
Peter Fabian bcf21687d3 Updated parameters in the REST controller. 2018-11-01 12:37:49 +01:00
Jonathan Belcher 360c4c7083 Fix automattically fixable php lint warnings (https://github.com/woocommerce/woocommerce-admin/pull/720) 2018-10-29 12:19:07 -04:00
Allen Snook e7ba47e958 Go ahead and 1) handle the variety of queries that can be used
as action button links and 2) enable the button (tracking will
come next). Also had to tweak CSS for activity panel item buttons
a little
2018-10-24 18:13:44 -07:00
Allen Snook 2147b23c4d Correctly define admin notes schema 2018-10-22 13:15:44 -07:00
Jonathan Belcher ecb3013fd3 Uses PHPBCF to autofix warnings and errors (https://github.com/woocommerce/woocommerce-admin/pull/611) 2018-10-22 12:20:14 -04:00
Joshua T Flowers 88058b2bf4 Add default report data if empty product data is returned (https://github.com/woocommerce/woocommerce-admin/pull/581)
* Add default report data if empty product data is returned

* Remove unused argument ''

* Remove filter params
2018-10-22 11:51:24 -04:00
Allen Snook 3155d5ec24 Merge pull request woocommerce/woocommerce-admin#507 from woocommerce/add/admin-notices-rest-api
Activity Panel: Inbox: Add REST API (GETters only)
2018-10-19 08:04:46 -07:00
Allen Snook 2a94177f71 Fix per_page default handling, json encoding options, schema help 2018-10-16 12:49:01 -07:00
Allen Snook d450ea6545 Strip slashes from titles, content and action (button) labels 2018-10-16 12:49:01 -07:00
Allen Snook 80ace9c9f3 Add publicly consumable schema info 2018-10-16 12:49:01 -07:00
Allen Snook 054fbb4ee3 Accept page and per page params in REST query, return total count of notes in header 2018-10-16 12:49:01 -07:00
Allen Snook 68b799f796 Correctly prepare dates in the response 2018-10-16 12:49:01 -07:00
Allen Snook 3b988d954c Correct copypasta in comments 2018-10-16 12:49:01 -07:00
Allen Snook 6dc4564feb Add single and multiple note GETters 2018-10-16 12:49:01 -07:00
Claudio Sanches c7ba8bd2c3 Fixed textdomain 2018-09-28 12:34:33 -03:00
Peter Fabian 0a669544d6 Added code from feature/20777, pending tests. 2018-09-18 13:32:25 +02:00
Peter Fabian aaef322e00 Added code from feature/20778, tests pending. 2018-09-18 13:27:34 +02:00
Peter Fabian a16933143f Added code from feature/20781, tests pending. 2018-09-18 13:20:42 +02:00
Peter Fabian b556d55ca6 - Removed duplicate class.
- Overridden REST API endpoints via filters.
- Updated data store class prefixes.
- Removed debugging echo.
2018-09-18 12:24:43 +02:00
Peter Fabian 9ac635fd42 Updated prefixes for wc-admin plugin. 2018-09-17 21:13:19 +02:00
Peter Fabian d2ac6cdbe1 Added reporting REST API extensions to wc-admin. 2018-09-17 16:32:03 +02:00