-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat(#408): add DruxtClient error handling * feat(#408): add error handling to DruxtModule * chore(#408): add changeset * feat(#408): update error handling * chore(#408): update tests * chore(#408): update test coverage * chore(#408): update docs * feat(#408): add warning for JSON:API extras * chore(#408): update test coverage
- Loading branch information
Showing
18 changed files
with
476 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"druxt-entity": minor | ||
--- | ||
|
||
Updated DruxtEntityForm error handling. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"druxt": minor | ||
"druxt-router": minor | ||
--- | ||
|
||
Added improved error handling. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`DruxtClient checkPermissions 1`] = ` | ||
Object { | ||
"detail": "Required permissions: | ||
- administer node fields", | ||
} | ||
`; | ||
|
||
exports[`DruxtClient createResource 1`] = ` | ||
Object { | ||
"detail": "subject: This value should not be null.", | ||
"source": Object { | ||
"pointer": "/data/attributes/subject", | ||
}, | ||
"status": "422", | ||
"title": "Unprocessable Entity", | ||
} | ||
`; | ||
|
||
exports[`DruxtClient getIndex 1`] = ` | ||
Object { | ||
"statusText": "Invalid JSON:API endpoint", | ||
} | ||
`; | ||
|
||
exports[`DruxtClient getResource 1`] = ` | ||
Object { | ||
"detail": "The \\"entity\\" parameter was not converted for the path \\"/jsonapi/node/article/{entity}\\" (route name: \\"jsonapi.node--article.individual\\")", | ||
"links": Object { | ||
"info": Object { | ||
"href": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.5", | ||
}, | ||
"via": Object { | ||
"href": "https://demo-api.druxtjs.org/en/jsonapi/node/article/missing", | ||
}, | ||
}, | ||
"status": "404", | ||
"title": "Not Found", | ||
} | ||
`; |
Oops, something went wrong.