Commit Graph

2148 Commits

Author SHA1 Message Date
Joshua Flowers 63c59a1f72 Update batch test function names and constants 2019-04-30 17:39:02 -06:00
Joshua Flowers 591c66995d Add tests for delete endpoint 2019-04-30 17:39:01 -06:00
Joshua Flowers 0a229e3654 Add delete batch actions for orders and customers 2019-04-30 17:37:20 -06:00
Joshua Flowers a4d1256292 Add customer deletion method to customers data store 2019-04-30 17:37:20 -06:00
Joshua Flowers fe0dea6373 Add delete imports endpoint 2019-04-30 17:37:19 -06:00
Jeff Stieler 41aff86077 Merge pull request woocommerce/woocommerce-admin#2048 from woocommerce/add/1850-import-cancel
Add endpoint route to cancel all pending import actions
2019-04-30 17:31:35 -06:00
Jeff Stieler f9c1b130c3 Add extra verification to import cancel endpoint test. 2019-04-30 10:38:07 -06:00
Joshua Flowers 61492c5f10 Add import cancel tests 2019-04-30 10:17:09 -06:00
Joshua Flowers cad94415c5 Add endpoint route to cancel all pending import actions 2019-04-30 10:17:08 -06:00
Jeff Stieler 4a85b012b5 Add tests for customer import using new parameters. 2019-04-30 09:46:14 -06:00
Jeff Stieler 3bfc53c9cf Reintroduce the customer lookup init to report regeneration.
With the new date range and “skip existing” logic.
2019-04-30 09:17:12 -06:00
Jeff Stieler e350cfc898 Remove strict comparison from “is valid customer” logic.
Needed for the function to work in scheduled actions.
2019-04-30 09:09:35 -06:00
Joshua Flowers eecedfdba8 Set orders date to midnight before if days is set 2019-04-17 15:57:51 +08:00
Joshua Flowers 44e8c56d88 Run count query early to maybe skip order id query 2019-04-17 15:50:46 +08:00
Joshua Flowers 7a41da3058 Bust cache for orders query in import tests 2019-04-12 16:50:43 +08:00
Joshua Flowers fcf0994276 Fix missing batch action arguments 2019-04-12 16:50:43 +08:00
Joshua Flowers f213f5cb66 Make customer name empty string by default instead of null 2019-04-12 16:50:43 +08:00
Joshua Flowers 5838e2ab48 Add import controller tests 2019-04-12 16:50:42 +08:00
Joshua Flowers 0a42757628 Process customer during order update instead of pre-processing all 2019-04-12 16:50:42 +08:00
Joshua Flowers 780c9da3d2 Hook up regenerate UI setting to new import endpoint 2019-04-12 16:50:42 +08:00
Joshua Flowers 1f016b5418 Add days and skip options to regenerate reports function 2019-04-12 16:50:42 +08:00
Joshua Flowers 4180b48346 Add reports import controller and endpoint 2019-04-12 16:50:42 +08:00
Kelly Dwan 754c2a07eb Update changelogs with latest versions, bump package versions where outdated (https://github.com/woocommerce/woocommerce-admin/pull/2039) 2019-04-11 14:43:45 -04:00
Justin Shreve 7fc70157c9 WC_Admin_Loader/PHP Refactor + Method to publish core ready features (https://github.com/woocommerce/woocommerce-admin/pull/1863)
* Try: Setup plugin to publish core library on npm

* Documentation clean up.

* Handle PR Feedback: Fix notices from happening in WC Core from API usage, fix sidebar dashboard ordering in menu, remove preload function check since we are supporting WP 5+, add a filter for preloading data and move usage to respective feature code, move features to a specific folder for bundiling, fix script translations.

* Fix code comment on analytics preload

* Continue refactoring code, and make it possible to launch 'embedded' features via the process as well.

* Fix note hook

* Fix note load order

* Address PR feedback: Fix class name, load leaderboard endpoint

* Remove example code prior to merge
2019-04-11 14:31:31 -04:00
Albert Juhé Lluveras f80880b80c Add PHP autofix to pre-commit hook (https://github.com/woocommerce/woocommerce-admin/pull/2022)
* Add PHP autofix to pre-commit hook

* Remove unnecesary 'dev/null' output path

* Add error message if PHP_CodeSniffer is not installed

* Add periods to comments

* Fix comment
2019-04-11 09:05:59 +02:00
Joshua T Flowers eb0b137020 Hook up leaderboards endpoint to dashboard (https://github.com/woocommerce/woocommerce-admin/pull/2004)
* Add allowed leaderboards endpoint to prefetch list

* Hook up leadboards endpoint to dashboard

* Skip data fetch for leaderboard if per page is less than 1

* Add tests to check for rendered html display
2019-04-11 10:53:05 +08:00
Jeff Stieler e190d513c2 Merge pull request woocommerce/woocommerce-admin#2031 from woocommerce/renovate/node-watch-0.x
Update dependency node-watch to v0.6.1
2019-04-10 17:39:02 -06:00
Jeff Stieler 2d12f866c8 Merge pull request woocommerce/woocommerce-admin#2030 from woocommerce/renovate/marked-0.x
Update dependency marked to v0.6.2
2019-04-10 17:33:44 -06:00
Jeff Stieler b5fa378f92 Merge pull request woocommerce/woocommerce-admin#2029 from woocommerce/renovate/lerna-monorepo
Update dependency lerna to v3.13.2
2019-04-10 17:17:45 -06:00
Jeff Stieler 2614fca209 Merge pull request woocommerce/woocommerce-admin#2028 from woocommerce/renovate/eslint-5.x
Update dependency eslint to v5.16.0
2019-04-10 15:13:36 -06:00
Jeff Stieler 1fc73b8449 Merge pull request woocommerce/woocommerce-admin#2027 from woocommerce/renovate/autoprefixer-9.x
Update dependency autoprefixer to v9.5.1
2019-04-10 14:44:40 -06:00
Renovate Bot 1e01735900 Update dependency autoprefixer to v9.5.1 2019-04-10 20:29:28 +00:00
Jeff Stieler 8feeb33558 Merge pull request woocommerce/woocommerce-admin#2010 from woocommerce/renovate/lock-file-maintenance
Lock file maintenance
2019-04-10 14:27:06 -06:00
Renovate Bot bc447af1f8 Lock file maintenance 2019-04-10 18:49:23 +00:00
Jeff Stieler 4b2ac14994 Merge pull request woocommerce/woocommerce-admin#2015 from woocommerce/notes-queue-group
add WCA queue group to the unsnooze notes scheduled action
2019-04-10 10:21:39 -06:00
Justin Shreve 4727417746 Add a mobile app note (https://github.com/woocommerce/woocommerce-admin/pull/2008) 2019-04-10 11:49:02 -04:00
Albert Juhé Lluveras 5ae9ee65b0 PHP Lint fixes (https://github.com/woocommerce/woocommerce-admin/pull/2023) 2019-04-10 10:49:00 +02:00
Renovate Bot cd2e942628 Update dependency node-watch to v0.6.1 2019-04-10 02:41:47 +00:00
Renovate Bot 333179449b Update dependency marked to v0.6.2 2019-04-10 01:49:23 +00:00
Renovate Bot f76d9b1a30 Update dependency lerna to v3.13.2 2019-04-10 01:41:56 +00:00
Renovate Bot 10fdb21aea Update dependency eslint to v5.16.0 2019-04-10 00:44:29 +00:00
Paul Sealock 704e3aec1a Merge pull request woocommerce/woocommerce-admin#1685 from woocommerce/update/isInvalidDate
Calendar: Use isInvalidDate to disallow date selections
2019-04-10 09:44:08 +12:00
Paul Sealock 888eb9a0f6 Calendar: update to Gutenberg's isInvalidDate 2019-04-10 07:59:27 +12:00
Kelly Dwan 6cab171d59 SearchListControl: Add an onSearch callback to allow dynamic updating of the list (https://github.com/woocommerce/woocommerce-admin/pull/1992)
* SearchListControl: Add an onSearch callback to allow dynamic updating the list

* Update changelog
2019-04-09 11:42:21 -04:00
Kevin Killingsworth 007ff933ce Fix withSelect to release resources on unmount (https://github.com/woocommerce/woocommerce-admin/pull/1999)
* Add fresh-data dev info support for dev builds.

This adds support for dev info to be accessed from the JavaScript
console for more information about resources handled by fresh-data.

* Update fresh-data to 0.6.0

* Fix withSelect to release resources on unmount

Previously, withSelect wasn't releasing resources from fresh-data when
it was unmounting. This fixes that behavior and now clears a component's
requirements correctly when unmounting.
2019-04-09 09:56:25 -05:00
Kevin Killingsworth 85fda4d61f Add fresh-data dev info support for dev builds. (https://github.com/woocommerce/woocommerce-admin/pull/1978)
* Add fresh-data dev info support for dev builds.

This adds support for dev info to be accessed from the JavaScript
console for more information about resources handled by fresh-data.

* Update fresh-data to 0.6.0
2019-04-09 09:55:01 -05:00
Timmy Crawford 1ce257587a Update Link in readme to Proper Location (https://github.com/woocommerce/woocommerce-admin/pull/2026)
Quick change of some copy/paste that was pointing the release notes at an old blocks post.
2019-04-09 07:47:14 -07:00
Albert Juhé Lluveras f4c487dcd5 Fix wrong dates in Reviews and Orders panels of the Activity Panel (https://github.com/woocommerce/woocommerce-admin/pull/2013)
* Fix wrong dates in Reviews and Orders panels of the Activity Panel

* Avoid using long boolean checks in unread-indicators
2019-04-09 09:50:00 +02:00
Joshua T Flowers e31be343e2 Make customer name extendable (https://github.com/woocommerce/woocommerce-admin/pull/1976)
* Make customer name extendable

* Update get_customer_name to favor user profile information

* Update customer name on profile update

* Add tests around customer name getting and setting

* Prefix customer name filter with woocommerce_reports_
2019-04-09 11:39:39 +08:00
Joshua T Flowers f682fe76be Add leaderboard controller and endpoint (https://github.com/woocommerce/woocommerce-admin/pull/1995)
* Add leaderboard controller and endpoint

* Add existing leaderboard stats to leaderboard endpoint

* Add persisted query to leaderboard params

* Add leaderboard endpoint tests

* Check if extended_info params are set before assigning

* Change number param input format to mixed inside wc_admin_number_format
2019-04-09 11:34:56 +08:00