Nestor Soriano
c8148894ca
Make error handling more consistent.
...
- Errors that prevent the GraphQL engine to even start working
(e.g. invalid inpuut JSON) and unhandled exceptions return
WP_Error with a suitable HTTP status code
- Errors while resolving queries/mutations (bad request syntax,
or ApiException thrown) cause the GraphQL engine to generate
the appropriate errors, and status code is always 200.
?verbose_errors still works in both cases.
2021-03-21 11:45:50 +01:00
Nestor Soriano
d6118841c8
Introduce an experimental GraphQL API.
...
- Uses the webonyx/graphql-php framework.
- Must be enabled at Settings - Advanced - GraphQL API.
- Entry point is POST at /wp-json/wc/graphql/api
- Input is a JSON object with "query" and optional "variables" fields.
- Code lives at src/Internal/GraphQL.
- Same authentication token/secrets as the REST API are used.
- Introduces a new "woocommerce_graphql_check_permissions" filter.
- Add ?verbose_errors to the url to get the exception message
and a stack trace in case of internal error (for this to work
either the user must be in the administrators role
or WP_DEBUG must be set)
2021-03-19 10:24:31 +01:00
Veljko V
54edb576d5
Merge pull request #29305 from woocommerce/try/add-e2e-screenshot
...
create screenshot on e2e test failure
2021-03-12 23:38:14 +01:00
Roy Ho
b04e08fb52
Merge pull request #29282 from hsingyuc/fix/29261
...
Trigger country field change on address change click
2021-03-12 12:55:34 -08:00
Ron Rennick
91a4283075
update changelog, readme, fix test broken to test the bot
2021-03-12 16:40:20 -04:00
Claudio Sanches
96d0b13261
Merge pull request #29369 from woocommerce/fix/docblock
...
Fix docblock defaults to false closes #29367
2021-03-12 17:02:54 -03:00
roykho
efdf76634b
Fix docblock defaults to false closes #29367
2021-03-12 11:59:18 -08:00
Ron Rennick
3fa03509db
add token to channel join call, update package-lock
2021-03-12 15:40:09 -04:00
Ron Rennick
025b92d5da
output error on unknown error, expand PR info
2021-03-12 13:07:10 -04:00
Fernando
c2262ee3ef
Merge pull request #29365 from woocommerce/add/asset-mercadopago-logo
...
Added Mercado Pago logo
2021-03-12 13:21:14 -03:00
Ron Rennick
698fdc3712
Merge branch 'trunk' into try/add-e2e-screenshot
2021-03-12 12:00:24 -04:00
Greg
cdccbdc2aa
Merge pull request #29358 from woocommerce/pin/WP-5.6.2_remove_caching
...
Remove node_modules caching to prevent dir related errors.
2021-03-12 08:57:57 -07:00
Fernando Marichal
bf17fb04f0
Added Mercado Pago logo
...
This commit adds a new asset (Mercado Pago logo) that will be used in the payments setup task.
2021-03-12 11:21:46 -03:00
Ron Rennick
874748cf20
pin ubuntu to 18.04 for port 8084
2021-03-12 09:39:44 -04:00
Ron Rennick
2282270179
temporarily pin WP version to 5.6.2
2021-03-12 08:25:46 -04:00
vedanshujain
934243d8bd
Remove node_modules caching to prevent dir related errors.
2021-03-12 09:54:37 +05:30
Ron Rennick
cad8ae3413
temporarily pin WP version to 5.6.2
2021-03-11 15:27:46 -04:00
Roy Ho
ee90c02f63
Merge pull request #29218 from wywarren/fix/27553
...
Fix for issue #27553 - REST API v3 not supporting settings type `order` and `class` for settings type on shipping zone methods
2021-03-11 09:22:34 -08:00
Ron Rennick
d683e24259
explicitly join the slack channel
2021-03-11 10:46:04 -04:00
Néstor Soriano
b446417be6
Merge pull request #29281 from woocommerce/fix/issue-25375-cache
...
Fix/issue 25375 cache
2021-03-11 08:30:41 +01:00
roykho
1df38c2f6b
Refactor and moved filter to _wc_recount_terms function
2021-03-10 12:33:46 -08:00
Ron Rennick
ac94f70a16
update secret names with E2E_
2021-03-10 14:51:18 -04:00
Roy Ho
bea36ab20e
Merge pull request #29326 from woocommerce/update/woocommerce-admin/2.0.3
...
Update woocommerce-admin to 2.0.3
2021-03-10 10:28:00 -08:00
Timmy Crawford
98764aa0d1
Update woocommerce-admin to 2.0.3
2021-03-10 08:10:06 -08:00
Ron Rennick
12c0793217
add token to calls, remove block from test title
2021-03-09 16:49:47 -04:00
Ron Rennick
bb907a6acd
add slack secrets, deliberately break test
2021-03-09 16:11:48 -04:00
Claudio Sanches
35e3ac84b6
Merge pull request #29311 from woocommerce/update-changelog
...
Prepare default branch
2021-03-09 17:10:06 -03:00
Greg
f2552d3e1a
Merge pull request #29269 from woocommerce/update/core-tests-group-api
...
Update core tests group api
2021-03-09 11:09:53 -07:00
roykho
1f32c1f840
Update changelog
2021-03-09 10:04:15 -08:00
Ron Rennick
ca2cf3cef0
Merge branch 'trunk' into try/add-e2e-screenshot
2021-03-09 13:29:31 -04:00
Ron Rennick
d4f56c47a8
Merge branch 'trunk' into update/core-tests-group-api
2021-03-09 13:27:05 -04:00
Ron Rennick
9352dd1b81
Merge pull request #29309 from woocommerce/fix/e2e-product-search
...
Fix flaky issues with e2e product filter, search, sort test
2021-03-09 13:26:01 -04:00
Ron Rennick
0395457e0c
fix api package build errors
2021-03-09 11:33:29 -04:00
roykho
954f19817f
Update WP tested up to
2021-03-09 06:45:14 -08:00
Ron Rennick
b389cdb76e
merge changelog with trunk
2021-03-09 10:39:15 -04:00
Ron Rennick
2d8ab6e2f8
include the current block in screenshot params
2021-03-09 10:19:43 -04:00
roykho
cf634987b4
Prepare default branch
2021-03-09 06:11:41 -08:00
Ron Rennick
b36ae4c396
Merge pull request #29302 from woocommerce/fix/e2e-shorthand-spaces-in-directory
...
Fix E2E shorthand script to allow for directories with spaces
2021-03-09 09:54:43 -04:00
Ron Rennick
add5d73df2
update browse,search,sort test to be more reliable
2021-03-09 08:49:52 -04:00
Ron Rennick
c42e2db280
use api to create products for search test
2021-03-08 22:39:30 -04:00
Ron Rennick
4c88973039
add slack channel support
2021-03-08 19:22:55 -04:00
Ron Rennick
50e9ff2783
make screenshots optional
2021-03-08 16:56:47 -04:00
Ron Rennick
b686a45339
update package depenendencies
2021-03-08 16:17:27 -04:00
Jonathan Sadowski
4a5c6b86b3
Update e2e/env CHANGELOG for wc-e2e space fix
2021-03-08 14:06:14 -06:00
Ron Rennick
0e6d14b12d
create screenshot on e2e test failure
2021-03-08 15:07:29 -04:00
Jonathan Sadowski
e472c99a5c
Fix E2E shorthand script to allow for directories with spaces
2021-03-08 11:38:41 -06:00
Ron Rennick
30d7b2ce9d
Merge pull request #29270 from woocommerce/add/merchant-order-email-flow
...
Add merchant order email flow e2e test
2021-03-05 11:21:13 -04:00
Roy Ho
9a96ef1246
Merge pull request #29285 from Saggre/fix/typos
...
Fix typos in docs
2021-03-05 07:17:52 -08:00
Ron Rennick
f36c802eb3
Merge pull request #29279 from woocommerce/add/delete-step-product-api-tests
...
Added delete step to API product tests
2021-03-05 10:43:39 -04:00
Saggre
24167a5eed
Fix typos in docs
2021-03-05 11:19:58 +02:00