CouchDB
  1. CouchDB
  2. COUCHDB-1301

Add JS helper function for outputing Date-based arrays

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: JavaScript View Server
    • Labels:
    • Skill Level:
      New Contributors Level (Easy)

      Description

      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.

        Activity

        Hide
        Jan Lehnardt added a comment -

        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.

        Show
        Jan Lehnardt added a comment - 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.
        Hide
        Benjamin Young added a comment -

        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

        Show
        Benjamin Young added a comment - 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

          People

          • Assignee:
            Unassigned
            Reporter:
            Benjamin Young
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development