Commit Graph

34940 Commits

Author SHA1 Message Date
Christopher Allford b8eb65aacc Added missing @wordpress/eslint-plugin for factory package 2020-07-01 14:22:01 -07:00
Christopher Allford 0785e6caa7 Merge branch 'master' into package/e2e-factories/product 2020-07-01 14:11:25 -07:00
Christopher Allford 68daac3a94 Added a utility for initializing all of the APIAdapters with a service 2020-07-01 13:58:12 -07:00
Christopher Allford b4c1f3ca8f Fixed the POST, PUT, and PATCH Axios service actions 2020-07-01 12:31:20 -07:00
Christopher Allford bc3e1b4555 Replaced the exported variables with functions to populate the registry 2020-07-01 12:08:08 -07:00
Christopher Allford e6e764320b Added a registry to hold all of the factories and adapters 2020-07-01 11:07:57 -07:00
Christopher Allford 627bd5a99a Simplified the package directory structure 2020-06-30 21:37:17 -07:00
Christopher Allford c23f52aedf Created a base ModelFactory for all factories to extend 2020-06-30 19:00:42 -07:00
Christopher Allford 3e2e03d48a Fixed the URL being passed to the OAuth package 2020-06-30 16:01:47 -07:00
Christopher Allford 603a5e7812 Changed the structure of error responses
In practice having the response class contained within the error feels a little backwards. We can instead have a structured APIError model that is contained in the APIResponse and have a consistent response format to consume.
2020-06-30 16:01:12 -07:00
Christopher Allford 7500cc004d Added a skeleton product factory for testing 2020-06-30 13:05:25 -07:00
Christopher Allford 4aa9360ba7 Added an adapter to support creating models via the API 2020-06-30 12:50:15 -07:00
Christopher Allford ddbbbbc078 Adjusted the TypeScript configuration to use the --build flag 2020-06-24 16:08:28 -07:00
Christopher Allford 6ad8b57f2e Added formatting requirements to the code style 2020-06-24 14:47:46 -07:00
Christopher Allford 4e02ce7afd Moved the Axios response/error transformations into an interceptor 2020-06-24 11:35:04 -07:00
Christopher Allford 9908a84d0e Added a service for interacting with the WordPress API
We've hid the use of Axios behind a service so that we're able to easily mock it out in factories as well as handle the creation and configuration of the client. This will make it easier on consumers in that they won't have to worry about things like authentication when using the API.
2020-06-23 13:15:26 -07:00
Christopher Allford 031bb6593f Fixed the usage of baseURL with the APIAuthInterceptor 2020-06-23 11:53:00 -07:00
Ron Rennick e9f71ac24c
Merge pull request #26802 from woocommerce/fix/25833
introduce woocommerce_enable_nocache_headers filter
2020-06-23 13:35:13 -03:00
Ron Rennick e56ef185b0
Merge pull request #26809 from woocommerce/fix/25606
remove privacy page dropdown
2020-06-23 13:34:33 -03:00
Ron Rennick 524b7e7876
Merge pull request #26840 from woocommerce/test/template-cache-clearing
add template cache unit test
2020-06-23 13:32:52 -03:00
Claudio Sanches c192c4082e
Merge pull request #26649 from woocommerce/renovate/mocha-7.x
Update dependency mocha to v7.2.0
2020-06-23 13:06:46 -03:00
Renovate Bot 1551775307
Update dependency mocha to v7.2.0 2020-06-23 14:46:03 +00:00
Claudio Sanches d1bd90fc8f
Merge pull request #26714 from woocommerce/dependabot/npm_and_yarn/websocket-extensions-0.1.4
Bump websocket-extensions from 0.1.3 to 0.1.4
2020-06-23 11:29:17 -03:00
Claudio Sanches 6b1fe47901
Merge pull request #26790 from woocommerce/renovate/docker-wordpress-5.x
Update wordpress Docker tag to v5.4.2
2020-06-23 10:12:24 -03:00
Peter Fabian a442f183ad
Merge pull request #26849 from woocommerce/fix/26845
Put back the remove element for multiselects on selectWoo
2020-06-23 15:00:02 +02:00
Néstor Soriano fbe03ba256
Merge pull request #26848 from woocommerce/update/wc-admin-1.3.0-rc.1
Bump wc-admin to 1.3.0-rc.1
2020-06-23 14:54:55 +02:00
Renovate Bot 151c905eb2
Update wordpress Docker tag to v5.4.2 2020-06-23 12:40:48 +00:00
Peter Fabian 56d343e26a Added minified files. 2020-06-23 13:12:10 +02:00
Peter Fabian 3b0dd45fcf Put back the remove element for multiselects. 2020-06-23 12:38:43 +02:00
Paul Sealock 7ae8bd53d0 Bump wc-admin to 1.3.0-rc.1 2020-06-23 21:49:59 +12:00
Peter Fabian 568997493c
Merge pull request #26807 from woocommerce/fix/reserve-stock-update-query
Update reserved stock when a row already exists
2020-06-23 11:03:20 +02:00
Christopher Allford 323d06744c Adjusted the APIAuthInterceptor to be more explicitly Axios-specific 2020-06-22 12:10:45 -07:00
Ron Rennick 59f2bdbe46 add template cache unit test 2020-06-22 16:05:29 -03:00
dependabot[bot] ff0945c183
Bump websocket-extensions from 0.1.3 to 0.1.4
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/faye/websocket-extensions-node/releases)
- [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md)
- [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-22 17:08:32 +00:00
Ron Rennick fbc66f3b2b
Merge pull request #26432 from woocommerce/add/npm-publish
Add npm publish script for /tests/e2e
2020-06-22 14:05:47 -03:00
Ron Rennick 7d181230e7 update package-lock with master merge 2020-06-22 13:48:52 -03:00
Ron Rennick ee151bbd95 Merge branch 'master' into add/npm-publish 2020-06-22 13:46:54 -03:00
Claudio Sanches f21c92d0b6
Merge pull request #26804 from woocommerce/fix/obw-e2e-test
E2E: Fix OBW e2e test to account for the new Home Screen
2020-06-22 11:46:06 -03:00
Tam Mullen 720c1a1910
Merge pull request #26771 from woocommerce/update/wc-issue-templates
Update GitHub issue templates to request more details
2020-06-22 12:09:21 +01:00
Peter Fabian 60955a9926
Merge pull request #26829 from IanDelMar/patch-2
Fix typo in composer.json
2020-06-22 12:36:39 +02:00
Christopher Allford 05adbd718d
Merge pull request #26742 from woocommerce/update/git-hook-pre-push
Added pre-push hook to prevent accidental pushes to master
2020-06-21 11:28:00 -07:00
IanDelMar bff2cab4c0
Fix typo 2020-06-21 13:26:51 +02:00
Christopher Allford dd74c3db45 Removed build artifact 2020-06-20 18:46:59 -07:00
Christopher Allford 2a3b1b3780 Adjusted the package to better support NPM distribution 2020-06-20 18:25:19 -07:00
Christopher Allford 9f1decd4c6 Added an interceptor to handle WooCommerce API authentication 2020-06-19 12:08:48 -07:00
Christopher Allford 5e15271f95 Excluded test files from the TypeScript build 2020-06-18 09:43:11 -07:00
Ron Rennick 4a9fb66a39 update comment to accurate description 2020-06-18 10:56:31 -03:00
Ron Rennick a88a708286 remove privacy page dropdown 2020-06-18 10:40:17 -03:00
Mike Jolley 00f1246553 Update reserved stock when a row already exists 2020-06-18 12:09:57 +01:00
Christopher Allford 1418b68910 Initial configuration for e2e-factories package 2020-06-17 15:51:28 -07:00