Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Handle sync errors #824

Merged
merged 7 commits into from
Mar 29, 2018
Merged

Handle sync errors #824

merged 7 commits into from
Mar 29, 2018

Conversation

sebastienbarbier
Copy link
Collaborator

@sebastienbarbier sebastienbarbier commented Mar 28, 2018

After authenticating, kinto might return some errors we should handle.

  • fix synced UI after kinto error. Should request reconnect.
  • implement a solution to unblock the user.
  • display used quota. Show quota #837
  • display an error message to inform the user.

Fix #791 #801 #802 #827

Sorry, something went wrong.

@sebastienbarbier
Copy link
Collaborator Author

sebastienbarbier commented Mar 28, 2018

Waiting for @ryanfeeley to suggest an error panel, but did this temporary UI just to prove we can handle that issue properly 🎉

errormessage

@ryanfeeley
Copy link
Contributor

@sebastienbarbier I could not have done it better myself!

Here is where we should put storage information.
image

I'm working on when/how we should warn them BEFORE IT’S TOO LATE.

src/sync.js Outdated
@@ -104,6 +102,12 @@ class JWETransformer {
// If we get such a record, flag it as deleted.
if (decoded._status === 'deleted') {
decoded.deleted = true;
// On decode, we flag notes with _status deleted but still on server.
// We automatically will request deletion for those.
// (This is due to singleNote overriding deleted state with udpated to server)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo udpated

src/sync.js Outdated
// On decode, we flag notes with _status deleted but still on server.
// We automatically will request deletion for those.
// (This is due to singleNote overriding deleted state with udpated to server)
// Should be deleted when every user who tryed beta runned it once.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo tryed

src/sync.js Outdated
// We automatically will request deletion for those.
// (This is due to singleNote overriding deleted state with udpated to server)
// Should be deleted when every user who tryed beta runned it once.
// (see meetrics deleteDeleted)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo meetrics

@vladikoff
Copy link
Contributor

display used quota.

@sebastienbarbier we won't be able to do this initially. let's open a follow up issue.

display an error message to inform the user.

Not sure what else we can do there. Could we clean up this PR and merge?

@sebastienbarbier
Copy link
Collaborator Author

I'll refactor and yes we should be able to merge soon.

@sebastienbarbier sebastienbarbier mentioned this pull request Mar 29, 2018
@vladikoff vladikoff merged commit 84de70c into master Mar 29, 2018
@vladikoff vladikoff deleted the handle-sync-error branch March 29, 2018 04:34
@flodolo
Copy link
Collaborator

flodolo commented Mar 29, 2018

Is there a point of flagging me for review if these PRs get merged within hours, without giving me a chance to look at them? That's the second time it happens in a few hours.

@vladikoff
Copy link
Contributor

Is there a point of flagging me for review if these PRs get merged within hours, without giving me a chance to look at them? That's the second time it happens in a few hours.

Sorry, yeah good point. I Think we are gonna change the process on our end and not introduce strings in small batches, and do a separate commit for those before when preparing a release so you get a chance to review them (in a larger batch as well).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kinto Error HTTP 507 Insufficient Storage
4 participants