You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Volker Mische (JIRA)" <ji...@apache.org> on 2009/07/10 22:19:14 UTC
[jira] Created: (COUCHDB-408) Futon _view URLs should be similar to
the HTTP interface
Futon _view URLs should be similar to the HTTP interface
--------------------------------------------------------
Key: COUCHDB-408
URL: https://issues.apache.org/jira/browse/COUCHDB-408
Project: CouchDB
Issue Type: Improvement
Components: Administration Console
Affects Versions: 0.9.1
Reporter: Volker Mische
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.
[jira] Commented: (COUCHDB-408) Futon _view URLs should be similar
to the HTTP interface
Posted by "Volker Mische (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12733821#action_12733821 ]
Volker Mische commented on COUCHDB-408:
---------------------------------------
Works great for me.
> Futon _view URLs should be similar to the HTTP interface
> --------------------------------------------------------
>
> Key: COUCHDB-408
> URL: https://issues.apache.org/jira/browse/COUCHDB-408
> 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, futon_design_name_slashes.diff
>
>
> 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.
[jira] Resolved: (COUCHDB-408) Futon _view URLs should be similar
to the HTTP interface
Posted by "Christopher Lenz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christopher Lenz resolved COUCHDB-408.
--------------------------------------
Resolution: Fixed
Thanks for testing, I've applied the patch in r796541.
> Futon _view URLs should be similar to the HTTP interface
> --------------------------------------------------------
>
> Key: COUCHDB-408
> URL: https://issues.apache.org/jira/browse/COUCHDB-408
> 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, futon_design_name_slashes.diff
>
>
> 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.
[jira] Reopened: (COUCHDB-408) Futon _view URLs should be similar
to the HTTP interface
Posted by "Volker Mische (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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: https://issues.apache.org/jira/browse/COUCHDB-408
> 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.
[jira] Resolved: (COUCHDB-408) Futon _view URLs should be similar
to the HTTP interface
Posted by "Christopher Lenz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christopher Lenz resolved COUCHDB-408.
--------------------------------------
Resolution: Fixed
Fix Version/s: 0.10
I've applied this patch in r796027, and modified it to only URL-encode the doc-id and view-name parts, which should address Jan's issue.
> Futon _view URLs should be similar to the HTTP interface
> --------------------------------------------------------
>
> Key: COUCHDB-408
> URL: https://issues.apache.org/jira/browse/COUCHDB-408
> 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.
[jira] Assigned: (COUCHDB-408) Futon _view URLs should be similar
to the HTTP interface
Posted by "Christopher Lenz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christopher Lenz reassigned COUCHDB-408:
----------------------------------------
Assignee: Christopher Lenz
> Futon _view URLs should be similar to the HTTP interface
> --------------------------------------------------------
>
> Key: COUCHDB-408
> URL: https://issues.apache.org/jira/browse/COUCHDB-408
> Project: CouchDB
> Issue Type: Improvement
> Components: Administration Console
> Affects Versions: 0.9.1
> Reporter: Volker Mische
> Assignee: Christopher Lenz
> 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.
[jira] Updated: (COUCHDB-408) Futon _view URLs should be similar to
the HTTP interface
Posted by "Christopher Lenz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christopher Lenz updated COUCHDB-408:
-------------------------------------
Attachment: futon_design_name_slashes.diff
I'm attaching a patch that cleans up the encoding/decoding of design doc IDs and view names. Haven't been able to find any cases where this fails, but of course it's still possible I've missed something. Would appreciate some testing by others before checking this in.
> Futon _view URLs should be similar to the HTTP interface
> --------------------------------------------------------
>
> Key: COUCHDB-408
> URL: https://issues.apache.org/jira/browse/COUCHDB-408
> 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, futon_design_name_slashes.diff
>
>
> 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.
[jira] Commented: (COUCHDB-408) Futon _view URLs should be similar
to the HTTP interface
Posted by "Jan Lehnardt (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12733288#action_12733288 ]
Jan Lehnardt commented on COUCHDB-408:
--------------------------------------
It actually turns the URIs into /_utils/database.html?db/_design%2fdesigndocname%2f_view%2fviewname for me (safari 4, firefox 3.0.11). I find that less readable :)
> Futon _view URLs should be similar to the HTTP interface
> --------------------------------------------------------
>
> Key: COUCHDB-408
> URL: https://issues.apache.org/jira/browse/COUCHDB-408
> Project: CouchDB
> Issue Type: Improvement
> Components: Administration Console
> Affects Versions: 0.9.1
> Reporter: Volker Mische
> 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.
[jira] Updated: (COUCHDB-408) Futon _view URLs should be similar to
the HTTP interface
Posted by "Volker Mische (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Volker Mische updated COUCHDB-408:
----------------------------------
Attachment: futon-view-url.patch
Changes _view URLs in Futon to URLs similar to the HTTP interface.
> Futon _view URLs should be similar to the HTTP interface
> --------------------------------------------------------
>
> Key: COUCHDB-408
> URL: https://issues.apache.org/jira/browse/COUCHDB-408
> Project: CouchDB
> Issue Type: Improvement
> Components: Administration Console
> Affects Versions: 0.9.1
> Reporter: Volker Mische
> Attachments: futon-view-url.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.
[jira] Updated: (COUCHDB-408) Futon _view URLs should be similar to
the HTTP interface
Posted by "Volker Mische (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Volker Mische updated COUCHDB-408:
----------------------------------
Attachment: (was: futon-view-url.patch)
> Futon _view URLs should be similar to the HTTP interface
> --------------------------------------------------------
>
> Key: COUCHDB-408
> URL: https://issues.apache.org/jira/browse/COUCHDB-408
> Project: CouchDB
> Issue Type: Improvement
> Components: Administration Console
> Affects Versions: 0.9.1
> Reporter: Volker Mische
> 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.
[jira] Updated: (COUCHDB-408) Futon _view URLs should be similar to
the HTTP interface
Posted by "Volker Mische (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Volker Mische updated COUCHDB-408:
----------------------------------
Attachment: futon-view-url-2.patch
Updated patch ("save view as" redirected to the wrong URL).
> Futon _view URLs should be similar to the HTTP interface
> --------------------------------------------------------
>
> Key: COUCHDB-408
> URL: https://issues.apache.org/jira/browse/COUCHDB-408
> Project: CouchDB
> Issue Type: Improvement
> Components: Administration Console
> Affects Versions: 0.9.1
> Reporter: Volker Mische
> 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.