mozilla-services/android-sync — pull request #276 by ncalexan (2012-12-04 20:19:19+00:00)
Title: Bug 815773 - process local commands

This is just the base stuff to process local commands. (local commands == commands generated by local actions, such as from Sync > Options).

There's UI work to be done on top of this, but we may as well look over this first.

The key point is that local commands are processed when the clients engine downloads its local GUID; that means there's a race if you haven't yet synced.

Braindump 1: there could be interactions if you reset your local GUID that I haven't considered.
Braindump 2: I should verify that local commands are deleted from the DB after processing. I think I did this, but I should verify. This probably needs to wait until UI is in place.