Justin Shreve
f37b9319e1
Download Report API: Add path to response, fix ordering, and fix schema typo ( https://github.com/woocommerce/woocommerce-admin/pull/1248 )
...
* Add download_path to download report endpoint and fix schema typo
* Fix ordering and add tests
2019-01-08 09:51:28 -05:00
Justin Shreve
e3e9ccb6a4
Add `reports/downloads/stats` REST API Endpoint ( https://github.com/woocommerce/woocommerce-admin/pull/1142 )
...
* First pass at downloads REST API
* Add reports/downloads/stats endpoint.
* Add tests
* Update cache key
2019-01-03 13:00:48 -05:00
Joshua T Flowers
7bbdd78bde
Add missing intervals to product reports ( https://github.com/woocommerce/woocommerce-admin/pull/1200 )
...
* Add missing intervals to product reports
* Fix failing tests for product stats API
Before and after query should be within today's date since missing intervals for other days will be filled in with remaining dates.
2018-12-31 13:20:22 +08:00
Joshua T Flowers
268182e75f
Add invalid note ID test ( https://github.com/woocommerce/woocommerce-admin/pull/1197 )
2018-12-28 09:44:53 -08:00
Peter Fabian
48dfb54a48
Switched average order value from gross to net revenue ( https://github.com/woocommerce/woocommerce-admin/pull/1158 )
...
* Switched Average order value calculation from gross to net revenue.
* Updated tests to reflect switch of average order value from gross to net revenue.
2018-12-26 15:49:46 -08:00
Joshua T Flowers
dcaa35c7bf
Add product SKU to products report ( https://github.com/woocommerce/woocommerce-admin/pull/1161 )
...
* Add product SKU to products report
* Add tests for SKU data
2018-12-25 11:02:06 +08:00
Justin Shreve
579113910d
Add remaining filters to the downloads report ( https://github.com/woocommerce/woocommerce-admin/pull/1141 )
...
* Add order number, username, and IP address filters to the downloads report.
* Adds tests
2018-12-21 16:40:41 -08:00
Justin Shreve
49a0f0f6d2
Add `reports/downloads` REST API endpoint. ( https://github.com/woocommerce/woocommerce-admin/pull/1122 )
...
* First pass at downloads REST API
* Handle PR feedback
2018-12-21 14:57:46 -08:00
Joshua T Flowers
f83b0e0615
Add product categories wc-api and breadcrumbs ( https://github.com/woocommerce/woocommerce-admin/pull/1131 )
...
* Add support for product cats in wp rest api
* Add categories to WC API
* Add category breadcrumbs component
* Increase per_page limit size for product cat API
* Use wc/v3 API to pull product categories
* Return category IDs in API
* Add categories to product reports
* Add category IDs test for REST API
* Switch to getResource instead of require for total count selector
2018-12-21 10:44:27 +08:00
Peter Fabian
dff8b63271
Merge pull request woocommerce/woocommerce-admin#1010 from woocommerce/fix/845
...
Added /reports/coupons and /reports/coupons/stats endpoints
2018-12-19 13:55:28 +01:00
Peter Fabian
4802736a0e
Switched from using coupon code filter to coupon id filter by query parameter.
2018-12-19 13:37:54 +01:00
Joshua T Flowers
08d3e2c38d
Change product_gross_revenue to product_net_revenue ( https://github.com/woocommerce/woocommerce-admin/pull/1105 )
...
* Change product_gross_revenue to product_net_revenue
* Change product_gross_revenue to product_net_revenue in category data store
* Change to net_revenue in frontend category report
2018-12-19 08:56:27 +08:00
Jeff Stieler
9581a658f5
Add expected locale settings to JS test setup.
2018-12-18 15:46:46 -07:00
Paul Sealock
15bbbe739d
Hook up Categories table to endpoint
2018-12-19 08:36:42 +13:00
Peter Fabian
6c456657e8
Changed coupon_gross_discount to amount.
2018-12-18 12:01:42 +08:00
Peter Fabian
db8004aaf7
PHPCS fixes.
2018-12-18 12:01:41 +08:00
Peter Fabian
28f6f7ece5
PHPCS changes so that I will be able to merge master into this branch.
...
Otherwise I get errors during merge commit.
2018-12-18 12:01:41 +08:00
Peter Fabian
46bf4bedc8
Added basic tests for coupons and coupons/stats.
2018-12-18 12:01:40 +08:00
Peter Fabian
6950522f91
Removed timezone info that was added incorrectly
2018-12-18 12:01:39 +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
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
Timmy Crawford
88b899f7cb
Remove trailing slash on base_dir variable. ( https://github.com/woocommerce/woocommerce-admin/pull/1078 )
2018-12-12 13:13:49 -08:00
Peter Fabian
43b60489ff
Merge pull request woocommerce/woocommerce-admin#1060 from woocommerce/fix/remove-force-update-in-tests
...
Removed force update in tests
2018-12-12 19:47:16 +01: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
Peter Fabian
256a7fd708
Test should run without explicitly calling update for lookups.
...
Same as code in general, tests should also check whether the lookups are updated correctly without explicitly needing to call update on data stores.
2018-12-11 12:41:47 +01:00
Peter Fabian
deba4a354a
PHPCS updates.
2018-12-11 12:41:35 +01:00
Peter Fabian
c612f85c6c
PHPCS updates.
2018-12-11 12:39:44 +01: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
Joshua T Flowers
755b9c94f7
Reduce order table net revenue by refund total ( https://github.com/woocommerce/woocommerce-admin/pull/988 )
...
* Reduce order table net revenue by refund total
* Use order utils to get refund total
2018-12-05 10:06:00 +08: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
516062975b
try/variations-endpoint
2018-12-03 12:02:58 +13:00
Peter Fabian
8b80de9bc2
Added support for ordering by product name in products endpoint.
2018-11-28 15:14:34 +01:00
Paul Sealock
0ab5c735be
Remove order statuses wc- prefix
2018-11-28 15:58:17 +13:00
Peter Fabian
688b47aa7c
Added tests for advanced filters of orders report.
2018-11-27 17:04:16 +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
Kelly Dwan
2a9cb6509b
Build: Move components to packages dir ( https://github.com/woocommerce/woocommerce-admin/pull/804 )
...
* Move components to packages folder
* Update documentation generator to handle packages/components and client/components
* Update component locations
* Update CSS build process
* Remove react-dates css, this is already included by gutenberg
* Fix CSS style - single quotes
* Fix incorrect imports
* Update package-lock with new dependencies
* Update component locations for devdocs
* Fix location of tests
2018-11-15 13:16:23 -05:00
Allen Snook
e150ce4034
Merge pull request woocommerce/woocommerce-admin#851 from woocommerce/add/admin-notices-rest-api-unit-tests-2
...
Add admin notices REST API unit tests
2018-11-15 09:24:17 -08:00
Peter Fabian
0374119245
Added zero padding to hours in unit tests. ( https://github.com/woocommerce/woocommerce-admin/pull/858 )
2018-11-15 08:19:13 -05:00
Allen Snook
aeb7d15c9a
Deeply test the structure of a single note for expected values
2018-11-14 11:17:01 -08:00
Allen Snook
40376c23e1
Add unit tests for admin notes REST API
2018-11-14 11:06:53 -08:00
Jonathan Belcher
0193e73a87
Merge Commit
2018-11-12 14:50:13 -05:00
Kelly Dwan
8af82f3dee
Build: Move `lib/csv` to packages ( https://github.com/woocommerce/woocommerce-admin/pull/756 )
...
* Move CSV to packages
* Update CSV imports
* Add some basic usage documentation
* Add csv lib to the enqueued assets
* Change name to `csv-export`
* Update webpack build process to allow for package names with dashes
* Fix capitalization
* Update readme with docs extracted from jsdoc
* Fix merge conflict commit 😣
* Check that generateCSVFileName is called with correct params
2018-11-06 16:53:22 -05:00
Kelly Dwan
d27cb26ef7
Build: Move `lib/nav-utils` and `lib/history` to `@woocommerce/navigation` ( https://github.com/woocommerce/woocommerce-admin/pull/763 )
...
* Move nav-utils and history to new package
* Update config to build and use new navigation package
* Update all imports to use new navigation package
* Remove unnecessary README
* Update nav-utils path
2018-11-05 16:02:04 -05:00
Peter Fabian
a1f2c867f4
Corrected failing tests.
2018-11-02 12:24:21 +01:00