You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "gert cuykens (JIRA)" <ji...@apache.org> on 2011/09/20 01:35:09 UTC

[jira] [Created] (COUCHDB-1292) "validate_doc_update": function(n,o,u){}

"validate_doc_update": function(n,o,u){}
----------------------------------------

                 Key: COUCHDB-1292
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1292
             Project: CouchDB
          Issue Type: Improvement
          Components: Database Core
    Affects Versions: 1.2
         Environment: linux
            Reporter: gert cuykens
            Priority: Trivial


Assign a function instead of a string to make validation handler consistent with the update handlers

consistent => "updates": { "hello": function(d,r) {} }
consistent => "validate_doc_update": function(n,o,u){}
inconsistent => "validate_doc_update": "function(n,o,u){}"

http://wiki.apache.org/couchdb/Document_Update_Handlers
http://wiki.apache.org/couchdb/Document_Update_Validation



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (COUCHDB-1292) "validate_doc_update": function(n,o,u){}

Posted by "Adam Kocoloski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-1292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Kocoloski resolved COUCHDB-1292.
-------------------------------------

    Resolution: Not A Problem

Hi Gert, the wiki is user-editable, no need for a commit bit.

> "validate_doc_update": function(n,o,u){}
> ----------------------------------------
>
>                 Key: COUCHDB-1292
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1292
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Database Core
>    Affects Versions: 1.2
>         Environment: linux
>            Reporter: gert cuykens
>            Priority: Trivial
>              Labels: couchdb
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Assign a function instead of a string to make validation handler consistent with the update handlers
> consistent => "updates": { "hello": function(d,r) {} }
> consistent => "validate_doc_update": function(n,o,u){}
> inconsistent => "validate_doc_update": "function(n,o,u){}"
> http://wiki.apache.org/couchdb/Document_Update_Handlers
> http://wiki.apache.org/couchdb/Document_Update_Validation

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (COUCHDB-1292) "validate_doc_update": function(n,o,u){}

Posted by "gert cuykens (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-1292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13108323#comment-13108323 ] 

gert cuykens commented on COUCHDB-1292:
---------------------------------------

Guess I was wrong. Can somebody edit the wiki pleas. And use "function(d,r){...}" instead of a note: The functions should be double-quoted JSON strings.


> "validate_doc_update": function(n,o,u){}
> ----------------------------------------
>
>                 Key: COUCHDB-1292
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1292
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Database Core
>    Affects Versions: 1.2
>         Environment: linux
>            Reporter: gert cuykens
>            Priority: Trivial
>              Labels: couchdb
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Assign a function instead of a string to make validation handler consistent with the update handlers
> consistent => "updates": { "hello": function(d,r) {} }
> consistent => "validate_doc_update": function(n,o,u){}
> inconsistent => "validate_doc_update": "function(n,o,u){}"
> http://wiki.apache.org/couchdb/Document_Update_Handlers
> http://wiki.apache.org/couchdb/Document_Update_Validation

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira