Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 95115 invoked from network); 8 Nov 2009 06:44:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Nov 2009 06:44:39 -0000 Received: (qmail 28853 invoked by uid 500); 8 Nov 2009 06:44:38 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 28773 invoked by uid 500); 8 Nov 2009 06:44:38 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 28763 invoked by uid 99); 8 Nov 2009 06:44:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Nov 2009 06:44:38 +0000 X-ASF-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,RCVD_IN_SORBS_WEB X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [209.85.216.202] (HELO mail-px0-f202.google.com) (209.85.216.202) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Nov 2009 06:44:35 +0000 Received: by pxi40 with SMTP id 40so858211pxi.13 for ; Sat, 07 Nov 2009 22:44:14 -0800 (PST) Received: by 10.115.26.7 with SMTP id d7mr364142waj.12.1257662654848; Sat, 07 Nov 2009 22:44:14 -0800 (PST) Received: from ?192.168.0.3? ([117.204.134.55]) by mx.google.com with ESMTPS id 23sm1087530pzk.4.2009.11.07.22.44.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 07 Nov 2009 22:44:13 -0800 (PST) Message-ID: <4AF6688F.2070103@vcardprocessor.com> Date: Sun, 08 Nov 2009 12:13:27 +0530 From: ericdes Reply-To: eric@vcardprocessor.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.4pre) Gecko/20090915 Thunderbird/3.0b4 MIME-Version: 1.0 To: user@couchdb.apache.org Subject: Re: What happens with a document, if a conflict is not resolved? References: <01E98E17-B6AF-4F2F-9752-23CE46D51336@apache.org> <20091031104043.GA12386@uk.tiscali.com> <20091101115359.GA11480@uk.tiscali.com> In-Reply-To: <20091101115359.GA11480@uk.tiscali.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Brian, I read your posts about conflicts with great interest. I'm currently writing a .Net driver for CouchDB, and my point of view about making the default GET include all conflicts is that it is not a bad idea at all (even ideal), although a driver implementation may 'hide' that by implementing a GetDocument method that would add the query option by default. I think it's more annoying not to have the possibility of using the conflict query 'conflicts=true' when requesting multiple documents (I mean especially when you don't want to include the docs). For example, this could be used by a CouchDB explorer type application that would retrieve all record metadata and signal the conflicts with a specific icon (like tortoise SVN does when a document is out of sync for example). Eric Desgranges. On 11/1/2009 5:23 PM, Brian Candler wrote: > On Sat, Oct 31, 2009 at 10:40:43AM +0000, Brian Candler wrote: >>> I think I'd be in favor of making the default GET include all conflicts, >>> but probably in the _conflicts field so as to minimize the changes to the >>> current API. >> >> As a first step, that would be unlikely to break anyone, would make it clear >> when a conflict exists, and would simplify the API by removing the need for >> ?conflicts=true. So I'd vote for that. > > Also: if you query a view with ?include_docs=true, at the moment you never > get a _conflicts member in the document, even if you say > ?include_docs=true&conflicts=true > > Perhaps you should? > > B. >