couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nikolai Teofilov <n.teofi...@gmail.com>
Subject Re: [jira] Commented: (COUCHDB-1011) Add replication by doc-IDs to Futon
Date Thu, 06 Jan 2011 13:18:35 GMT
Okay I will send a new patch this evening. 
 
  

On 06.01.2011, at 13:18, Filipe Manana (JIRA) wrote:

> 
>    [ 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.
> 


Mime
View raw message