couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filipe Manana (JIRA)" <>
Subject [jira] Commented: (COUCHDB-1011) Add replication by doc-IDs to Futon
Date Thu, 06 Jan 2011 12:18:45 GMT


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.


> Add replication by doc-IDs to Futon
> -----------------------------------
>                 Key: COUCHDB-1011
>                 URL:
>             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.

View raw message