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

[jira] [Created] (COUCHDB-1301) Add JS helper function for outputing Date-based arrays

Add JS helper function for outputing Date-based arrays
------------------------------------------------------

                 Key: COUCHDB-1301
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1301
             Project: CouchDB
          Issue Type: New Feature
            Reporter: Benjamin Young


I often output Date-based arrays [2011, 9, 3, 7, 14, 10] when building MapReduce queries. It's such a common pattern, that I'd find it very helpful to have this built into CouchDB (and ideally JavaScript! ;) ).

I've written up the function to handle this at https://gist.github.com/1259891

Please consider it for inclusion into the share/server folder, so it can be available for everyone. It's such a common pattern that I think it makes sense for it to be part of the core distribution.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Re: [jira] [Created] (COUCHDB-1301) Add JS helper function for outputing Date-based arrays

Posted by Benjamin Young <be...@couchone.com>.
I'd love to get feedback not only on this specific issue, but also on 
this idea of a library of common JS functions/patterns that the 
community finds useful frequently. Having these on hand (ideally with 
some documentation/reference) would hopefully lower the barrier to entry 
for new devs looking at how to do what with CouchDB.

Thanks for considering this idea,
Benjamin
--
@bigbluehat
byoung@bigbluehat.com

On 10/3/11 7:18 PM, Benjamin Young (Created) (JIRA) wrote:
> Add JS helper function for outputing Date-based arrays
> ------------------------------------------------------
>
>                   Key: COUCHDB-1301
>                   URL: https://issues.apache.org/jira/browse/COUCHDB-1301
>               Project: CouchDB
>            Issue Type: New Feature
>              Reporter: Benjamin Young
>
>
> I often output Date-based arrays [2011, 9, 3, 7, 14, 10] when building MapReduce queries. It's such a common pattern, that I'd find it very helpful to have this built into CouchDB (and ideally JavaScript! ;) ).
>
> I've written up the function to handle this at https://gist.github.com/1259891
>
> Please consider it for inclusion into the share/server folder, so it can be available for everyone. It's such a common pattern that I think it makes sense for it to be part of the core distribution.
>
> --
> This message is automatically generated by JIRA.
> If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>


[jira] [Commented] (COUCHDB-1301) Add JS helper function for outputing Date-based arrays

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

Jan Lehnardt commented on COUCHDB-1301:
---------------------------------------

Sounds useful to me. Can you prepare a patch and a test case?

As for a commonjs repo for useful extensions that are easy to contribute to, I'm totally +1 but that deserves its own ticket.
                
> Add JS helper function for outputing Date-based arrays
> ------------------------------------------------------
>
>                 Key: COUCHDB-1301
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1301
>             Project: CouchDB
>          Issue Type: New Feature
>            Reporter: Benjamin Young
>              Labels: views
>
> I often output Date-based arrays [2011, 9, 3, 7, 14, 10] when building MapReduce queries. It's such a common pattern, that I'd find it very helpful to have this built into CouchDB (and ideally JavaScript! ;) ).
> I've written up the function to handle this at https://gist.github.com/1259891
> Please consider it for inclusion into the share/server folder, so it can be available for everyone. It's such a common pattern that I think it makes sense for it to be part of the core distribution.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (COUCHDB-1301) Add JS helper function for outputing Date-based arrays

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

Benjamin Young commented on COUCHDB-1301:
-----------------------------------------

I'd love to get feedback not only on this specific issue, but also on 
this idea of a library of common JS functions/patterns that the 
community finds useful frequently. Having these on hand (ideally with 
some documentation/reference) would hopefully lower the barrier to entry 
for new devs looking at how to do what with CouchDB.

Thanks for considering this idea,
Benjamin
--
@bigbluehat
byoung@bigbluehat.com



                
> Add JS helper function for outputing Date-based arrays
> ------------------------------------------------------
>
>                 Key: COUCHDB-1301
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1301
>             Project: CouchDB
>          Issue Type: New Feature
>            Reporter: Benjamin Young
>              Labels: views
>
> I often output Date-based arrays [2011, 9, 3, 7, 14, 10] when building MapReduce queries. It's such a common pattern, that I'd find it very helpful to have this built into CouchDB (and ideally JavaScript! ;) ).
> I've written up the function to handle this at https://gist.github.com/1259891
> Please consider it for inclusion into the share/server folder, so it can be available for everyone. It's such a common pattern that I think it makes sense for it to be part of the core distribution.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira