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

New Device does not getting latest data since CoreData Model Update. #86

Closed
shadow2000 opened this issue Sep 27, 2013 · 1 comment
Closed

Comments

@shadow2000
Copy link

Hi,

the setup is: Two devices are syncing their changes.
If I'm adding a new device (iOS Simulator) and after downloading the whole store I can see all primary entities but on a relationship I see not the latest entry. Instead it is showing me an entry before as latest.

This is my documentSyncManagerShouldUploadWholeStoreAfterDocumentRegistration:

- (BOOL)documentSyncManagerShouldUploadWholeStoreAfterDocumentRegistration:(TICDSDocumentSyncManager *)aSyncManager
{
    NSLog(@"%s", __PRETTY_FUNCTION__);
    //If not download then upload
    BOOL uploadStoreNow = self.shouldDownloadStoreAfterRegistering == NO;   
    return uploadStoreNow;
}

Changes on the new device will be synced to the existing devices but the missing entry never will be shown on the 3. device.
I tried to delete the Dropbox-App folder and start the sync from first device which upload the whole store but the entries are missing on the other devices but if new values added on the new device will be synced.

It seems to me that the downloaded store has all values before the update of the CoreData model:

A has a relation to B.
A has B1 and B2
CoreData Model update
Device 1 adds B3
Device 2 registered and downloads whole store.
Device 2 has B1 and B2 but not B3
Device 2 adds B4
Device 1 gets B4 with sync.
Device 3 registered and downloads whole store.
Device 3 has B1 and B2 but not B3 and B4

@MrRooni
Copy link
Contributor

MrRooni commented Oct 3, 2013

We don't have any support in TICDS right now for new data models, so it's a very good chance that it's throwing a cog in the works. If you know that you've got the same data model on all your devices you should be able to reset your sync setup from one device and have all the other devices fall in line. We'll continue that conversation in issue #87.

@MrRooni MrRooni closed this as completed Oct 3, 2013
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

No branches or pull requests

2 participants