Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
TouchDB iOS - The operation couldn't be completed. Conflict
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Pulkit Singhal  
View profile  
 More options Nov 18 2012, 7:12 pm
From: Pulkit Singhal <pulkitsing...@gmail.com>
Date: Sun, 18 Nov 2012 16:12:25 -0800 (PST)
Local: Sun, Nov 18 2012 7:12 pm
Subject: TouchDB iOS - The operation couldn't be completed. Conflict

I have a scenario where just like GrocerySync, you can checkuncheck items
from lists.

If I do this too fast then I get back an op.error saying:
The operation couldn't be completed. Conflict

That's fair, I guess ... but now I wonder what should I do about it.

Does it make sense to lock up the entire table view until a successful
response comes back?
May be just lock-up that table row or that checkmark toggling control?

Just looking to brainstorm on an effective UX in this thread (initially).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jens Alfke  
View profile  
 More options Nov 18 2012, 8:16 pm
From: Jens Alfke <j...@couchbase.com>
Date: Sun, 18 Nov 2012 17:16:39 -0800
Local: Sun, Nov 18 2012 8:16 pm
Subject: Re: TouchDB iOS - The operation couldn't be completed. Conflict

On Nov 18, 2012, at 4:12 PM, Pulkit Singhal <pulkitsing...@gmail.com> wrote:

> I have a scenario where just like GrocerySync, you can checkuncheck items from lists.
> If I do this too fast then I get back an op.error saying:
> The operation couldn't be completed. Conflict
> That's fair, I guess ... but now I wonder what should I do about it.

A common way to handle a conflict is to read the new revision of the document, reapply your change, and (if the change isn’t now a no-op) retry the PUT. That sounds like the appropriate thing in this case.

I’ve meant to add some support for this to CouchModel, but haven’t had a chance yet.

> Does it make sense to lock up the entire table view until a successful response comes back?
> May be just lock-up that table row or that checkmark toggling control?

That will fix the common case, but it won’t help if the conflict is with an incoming pull replication, since that doesn’t go through the UI.

—Jens


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »