Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 63099 invoked from network); 6 Jan 2011 12:19:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jan 2011 12:19:10 -0000 Received: (qmail 75811 invoked by uid 500); 6 Jan 2011 12:19:10 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 75431 invoked by uid 500); 6 Jan 2011 12:19:08 -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 75415 invoked by uid 99); 6 Jan 2011 12:19:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jan 2011 12:19:06 +0000 X-ASF-Spam-Status: No, hits=-1996.4 required=10.0 tests=ALL_TRUSTED,FS_REPLICA X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jan 2011 12:19:06 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p06CIjCw020549 for ; Thu, 6 Jan 2011 12:18:46 GMT Message-ID: <19878097.186891294316325712.JavaMail.jira@thor> Date: Thu, 6 Jan 2011 07:18:45 -0500 (EST) From: "Filipe Manana (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-1011) Add replication by doc-IDs to Futon In-Reply-To: <13438506.131491294139265612.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-1011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12978295#action_12978295 ] Filipe Manana commented on COUCHDB-1011: ---------------------------------------- Thanks Nikolai. You should really expect the input to be a JSON array, because commas (",") and semi-colons (";") are valid characters for a document ID. So splitting the input string by some character is not the way to go. Just grab the textbox input, try to JSON.parse() it and if an exception is thrown (or error returned) display an error message, otherwise check the result of JSON.parse() is an array of strings and use it as the value for "repOpts.doc_ids". I don't know on top of my head how error reporting is done all over Futon (dunno if it's consistent everywhere), you'll have to check that. regards > Add replication by doc-IDs to Futon > ----------------------------------- > > Key: COUCHDB-1011 > URL: https://issues.apache.org/jira/browse/COUCHDB-1011 > Project: CouchDB > Issue Type: New Feature > Components: Futon > Reporter: Filipe Manana > Priority: Minor > Attachments: COUCHDB-1011.patch > > > Currently Futon doesn't allow users to trigger replications by doc-IDs. > This would be a nice addition and a good starting point for new contributors. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.