couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Volker Mische (JIRA)" <>
Subject [jira] Reopened: (COUCHDB-408) Futon _view URLs should be similar to the HTTP interface
Date Mon, 20 Jul 2009 22:45:14 GMT


Volker Mische reopened COUCHDB-408:

At the moment Design Docs with slashes don't work in Futon (they also didn't work before this
patch was applied). Some smarter en/decoding is needed.

My proposition is to keep document IDs URL encoded internally and only decoding them for display
purpose. This way you can split the path easily into Design Doc and View with a path.split("/")
(without splitting an ID accidently).

While this needs quite a few changes, it might also make sense to change jquery.couch.js/openDoc()
to take an already encoded URL as parameter. Else you would need an encode/decode round-trip
quite often.

> Futon _view URLs should be similar to the HTTP interface
> --------------------------------------------------------
>                 Key: COUCHDB-408
>                 URL:
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Administration Console
>    Affects Versions: 0.9.1
>            Reporter: Volker Mische
>            Assignee: Christopher Lenz
>             Fix For: 0.10
>         Attachments: futon-view-url-2.patch
> URLs of view in Futon normally look like:
> http://localhost:5984/_utils/database.html?db/_design/designdocname/viewname
> The HTTP interface is:
> http://localhost:5984/db/_design/desigdocname/_view/viewname
> The patch changes the URLs to:
> http://localhost:5984/_utils/database.html?db/_design/designdocname/_view/viewname
> It changes the dropdown menu on the top right to use this new URL, are there any other
places where you can get to a view?

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message