-
-
Notifications
You must be signed in to change notification settings - Fork 743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvement of API requests error handling #1141
Conversation
* master: (145 commits) Add missing toc cypress changelog Add div with class "table-of-contents" to ToC block (#1311) Fix Maps block to use maps-inner instead of video-inner class (#1310) Cypress Video Block improvements (#1309) Revert "Fix refresh of the `Breadcrumbs` and `Navigation` components on calling `/login` and `/logout` (#1292)" Reenable video blocks cypress tests based on the rework on lazy load branch (#1308) Adjust implementation of the download link behavior for files (#1307) Comment out flaky blocks-video.js test. Comment out flaky video block Cypress tests. Fix Travis (#1306) Toc cypress (#1253) Update .gitignore. fix makefile fix Makefile Do not rely on virtualenv. Upgrade critical Plone 5.2.1 deps in api folder (#1293) Fix refresh of the `Breadcrumbs` and `Navigation` components on calling `/login` and `/logout` (#1292) Fix typo for Japanese translation (#1284) Back to development Release 4.1.1 ...
* master: (95 commits) Back to development Release 5.1.0 Prepare for release added errors handling in Add and Edit forms (#1410) Remove back button, and remove last @ decorator from UserControlPanel (#1409) Fullscreen sidebar (#1369) Dates widget: show past dates and mark differently default value (#1407) Folder content style (#1343) Translations for event view labels (#1389) Enable internal API proxy for not to rely on CORS on development (#1390) Translation ja 202004 (#1406) Fix `ArrayWidget` to support multiselect schema `schema.List`/`schema… (#1405) fix various tests (#1403) internal: Improve i18n script, so shadowed components are not overriding their … (#1402) Removing navbar, breadcrumbs, search icon from print (#1393) Back to development Release 5.0.1 Prepare for release fixes for contact form (#1378) Added Stradanove to "Volto in Production" (#1377) ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Interesting, I will check this live ASAP
@sneridagh w00t! Awesome!!! |
Seems a Cypress test (folder contents) fails on both GH actions and Travis. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I've added a comment about a small change in api.js
src/middleware/api.js
Outdated
SET_APIERROR, | ||
} from '@plone/volto/constants/ActionTypes'; | ||
|
||
const ACTIONS_RAISING_ERRORS = ['GET_CONTENT', 'UPDATE_CONTENT']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be read from config.settings? This way it would be extensible without customizing api.js
@tiberiuichim done as suggested! I think now will be green |
plone/plone.rest#101 is solved now, however, on GET we can't get a 403 now :( plone/plone.restapi#893
@robgietema do you want to take a look?
/cc @tisto