Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7816C84A6 for ; Wed, 17 Aug 2011 01:47:55 +0000 (UTC) Received: (qmail 49457 invoked by uid 500); 17 Aug 2011 01:47:54 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 49403 invoked by uid 500); 17 Aug 2011 01:47:54 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 49386 invoked by uid 99); 17 Aug 2011 01:47:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2011 01:47:54 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of adam.kocoloski@gmail.com designates 209.85.213.52 as permitted sender) Received: from [209.85.213.52] (HELO mail-yw0-f52.google.com) (209.85.213.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2011 01:47:46 +0000 Received: by ywo7 with SMTP id 7so612794ywo.11 for ; Tue, 16 Aug 2011 18:47:25 -0700 (PDT) Received: by 10.236.147.229 with SMTP id t65mr1361820yhj.181.1313545645240; Tue, 16 Aug 2011 18:47:25 -0700 (PDT) Received: from [192.168.1.7] (c-76-119-89-178.hsd1.ma.comcast.net [76.119.89.178]) by mx.google.com with ESMTPS id o2sm748546yhl.71.2011.08.16.18.47.23 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 16 Aug 2011 18:47:24 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: The replicator needs a superuser mode From: Adam Kocoloski In-Reply-To: Date: Tue, 16 Aug 2011 21:47:20 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4E4AB70F.5040302@fiset.ca> <92F4FAA3-8193-470A-B339-67DA369071B8@apache.org> To: dev@couchdb.apache.org X-Mailer: Apple Mail (2.1084) On Aug 16, 2011, at 8:20 PM, Randall Leeds wrote: > On Tue, Aug 16, 2011 at 17:03, Adam Kocoloski = wrote: >=20 >> On Aug 16, 2011, at 5:46 PM, Randall Leeds wrote: >>=20 >>> -1 on _skip_validation and new role >>>=20 >>> One can always write a validation document that considers the role, = no? >> Why >>> can't users who need this functionality craft a validation function = for >> this >>> purpose? This sounds like a blog post and not a database feature. >>=20 >> Blech, really? >>=20 >> Q: What request do I issue to guarantee all my documents are stored = in this >> other database? >>=20 >> A: Unpossible. >>=20 >> Practically speaking we need it at Cloudant because we use = replication to >> move users' databases between clusters. If it's not seen as = generally >> useful that's ok, just surprising. Best, >>=20 >=20 > I understand the motivation a little better now. I'm not sure it's = generally > useful. I think _dump/_load might be, but I'd rather see users craft = around > validation as part of their replication strategy rather than increase = the > query option population. >=20 > I'm not sure I'm against admin user context bypassing validation docs, > though. That's interesting. It sounds like you're motivated to minimize the = surface area of the API. I can respect that. I'm not sure I like = _admins automatically bypassing validation, though, because we already = require _admin to update _design docs, so it's not as if we can make the = use of _admin particularly rare. Will think on it. Best, Adam=