Skip to content
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

Merged
merged 12 commits into from
Apr 25, 2020
Merged

Improvement of API requests error handling #1141

merged 12 commits into from
Apr 25, 2020

Conversation

sneridagh
Copy link
Member

@sneridagh sneridagh commented Jan 26, 2020

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

@sneridagh sneridagh requested review from tisto and robgietema January 26, 2020 15:07
* 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)
  ...
Copy link
Member

@nzambello nzambello left a 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

@tisto
Copy link
Member

tisto commented Apr 24, 2020

@sneridagh w00t! Awesome!!!

@tisto
Copy link
Member

tisto commented Apr 24, 2020

Seems a Cypress test (folder contents) fails on both GH actions and Travis.

Copy link
Contributor

@tiberiuichim tiberiuichim left a 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

SET_APIERROR,
} from '@plone/volto/constants/ActionTypes';

const ACTIONS_RAISING_ERRORS = ['GET_CONTENT', 'UPDATE_CONTENT'];
Copy link
Contributor

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

@sneridagh
Copy link
Member Author

@tiberiuichim done as suggested! I think now will be green

@sneridagh sneridagh merged commit b669f05 into master Apr 25, 2020
@sneridagh sneridagh deleted the improveapiengine branch April 25, 2020 16:28
sneridagh added a commit that referenced this pull request Apr 26, 2020
* master:
  Polish Users and Groups Control Panel (#1379)
  Make label of checkboxwidget clickable  (#1415)
  Unauthorized on folder contents if no proper credentials and improve console info on run (#1423)
  Improvement of API requests error handling (#1141)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants