feedhenry / fh-ios-sdk

FeedHenry iOS (Objective-C) SDK
http://feedhenry.org
Apache License 2.0
6 stars 16 forks source link

marking data to be delayed if the previous pending is inflight #49

Closed wei-lee closed 8 years ago

wei-lee commented 8 years ago

To reproduce the issue:

The fix will make sure if a record is pending and inflight, the subsequent changes to that record will be marked as delayed and will not be sent until the pending change is resolved.

corinnekrych commented 8 years ago

@wei-lee To avoid crash on start-up exception due to https://github.com/feedhenry/fh-ios-sdk/pull/50/files#diff-098e1ff33bf2d868069cb8aa5d075d76R180, i locally added this line.

Doing the test "Update while CloudApp is crashed Update when restarted" See https://docs.google.com/spreadsheets/d/1bMY8QqfE9SD_xRpBBPFgj-byqxPYFmIjHR1ig6Mxq7c/edit#gid=1130697588 column A with code on Master column B with code on this PR

I still have data update loses and i can not send update any more. @wei-lee I don't understand how "crash" field is supposed to be used in the server/client sync protocol.