CouchDB
  1. CouchDB
  2. COUCHDB-792

Bespin integrated in Futon views editor

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Futon
    • Labels:
    • Environment:

      HTML5 / Javascript

    • Skill Level:
      New Contributors Level (Easy)

      Description

      Here is the "less-intrusive-I-can" patch to enable bespin editor in Futon database views page.

      Implementation constraints :

      • bespin can't have multiple instances
      • bespin can't be enabled=>disabled=>enabled

      I also met a bug on Google Chrome because CouchDB doesn't set a charset in HTTP response headers for database.html ... As a result I only succeded with BespinEmbedded 0.7.1.

      Implementation details :

      • created proxy functions to get and set map/reduce code to/from editor ( instead of $("#viewcode_map").val() ... )
      • created bespin wrapper class
      1. futon-bespin.patch.gz
        531 kB
        Mickael Bailly

        Activity

        Hide
        Jan Lehnardt added a comment -

        Remove FixVersion

        Show
        Jan Lehnardt added a comment - Remove FixVersion
        Hide
        Mickael Bailly added a comment -

        I suggest to report this integration, because of the current rewrite of futon by Mikeal & the changes inside bespin project (now skywriter). Let's wait for those things to stabilize first.

        Show
        Mickael Bailly added a comment - I suggest to report this integration, because of the current rewrite of futon by Mikeal & the changes inside bespin project (now skywriter). Let's wait for those things to stabilize first.
        Hide
        Chris Anderson added a comment -

        I'm gonna hold off on reviewing this until after 1.0 is out. We don't want to make such a big change just before 1.0 anyway. With all the work that is going into Bespin these dats, I expect this patch (or something like it) will be viable in the next few months.

        Show
        Chris Anderson added a comment - I'm gonna hold off on reviewing this until after 1.0 is out. We don't want to make such a big change just before 1.0 anyway. With all the work that is going into Bespin these dats, I expect this patch (or something like it) will be viable in the next few months.
        Hide
        Mickael Bailly added a comment -
        Show
        Mickael Bailly added a comment - patch built on top of CouchDB github repository : http://github.com/apache/couchdb/commit/5aae08bf66411e4e81b21a3c137627733efa6b26

          People

          • Assignee:
            Unassigned
            Reporter:
            Mickael Bailly
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development