Closed Bug 1168892 Opened 9 years ago Closed 9 years ago

Implement a status response for synchronizers

Categories

(Firefox for iOS :: Sync, defect)

All
iOS 8
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: rnewman, Assigned: rnewman)

References

Details

Attachments

(1 file)

47 bytes, text/x-github-pull-request
nalexander
: feedback+
Details | Review
It's not just success or failure.

It's:

* I couldn't sync because I was offline.
* ... or the user had no account.
* ... or we're in backoff due to server outage.
* ... or we failed recently.
* ... or we were node reassigned and we haven't implemented Bug 1167010.

It's:

* I downloaded records and I think there are more to come.
* I downloaded records and I'm done.
* There was nothing to download.

It's:

* I uploaded records.
* There was nothing to upload.

It's:

* You requested an ordinary sync, but we need to do a full sync, which will take a long time.
* You requested a sync with a restricted runtime (e.g., on exit) and we're not in a good account state (or we have lots of records to upload, or…).


And more besides.
Attached file Pull req.
Here's the minimal version of this: either we completed syncing the engine (which is all we can do now), or we have a number of reasons why we didn't start.

We can flesh this out as we add capabilities (e.g., addressing Bug 1168890).
Attachment #8611619 - Flags: feedback?(nalexander)
Comment on attachment 8611619 [details] [review]
Pull req.

I commented on GH.  I worry that `accrue` is unnecessarily complicated, but meh... c'est la vie.
Attachment #8611619 - Flags: feedback?(nalexander) → feedback+
`accrue` is a slightly clarified and extended version of the `all` implementation, fwiw.
https://github.com/mozilla/firefox-ios/commit/b8e7e9116ae3ffcbd64f2d326120b124639e8a30
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Blocks: 1171144
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: