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

Allow syncing from the base state of 0. #29

Merged
merged 1 commit into from Sep 9, 2016

Conversation

wolfsage
Copy link
Contributor

@wolfsage wolfsage commented Sep 9, 2016

0 is the state you get when no entities have been created for a specific class
yet. If you then add an entity, the state will be '1'. getFooUpdates with a
sinceState of 0 should be able to calculate the changes for you.

0-0 is also valid for complex states.

0 is the state you get when no entities have been created for a specific class
yet. If you then add an entity, the state will be '1'. getFooUpdates with a
sinceState of 0 should be able to calculate the changes for you.

0-0 is also valid for complex states.
@@ -158,7 +158,7 @@ sub ix_get_updates ($self, $ctx, $arg = {}) {

if ($statecmp->is_resync) {
$ctx->error(cannotCalculateChanges => {
description => "client cache must be reconstucted"
description => "client cache must be reconstructed"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is where I saw the weird jcmp_deeply() failure using re('...'). Wasn't until later I realized it was because I had the correct "reconstructed" in the re() and the error actually didn't match...

@wolfsage wolfsage merged commit e716d72 into fastmail:master Sep 9, 2016
@wolfsage wolfsage deleted the topic/0-valid-state branch November 28, 2016 03:38
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

Successfully merging this pull request may close these issues.

None yet

1 participant