You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Robert Newson (JIRA)" <ji...@apache.org> on 2010/11/18 16:23:13 UTC
[jira] Resolved: (COUCHDB-957) 'Compact Views' compacts the
database, not the view, if a design document is not selected.
[ https://issues.apache.org/jira/browse/COUCHDB-957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Newson resolved COUCHDB-957.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.1
1.0.2
Assignee: Robert Newson
An alert is shown if Compact Views is chosen in a bad context, rather than compacting the database.
> 'Compact Views' compacts the database, not the view, if a design document is not selected.
> ------------------------------------------------------------------------------------------
>
> Key: COUCHDB-957
> URL: https://issues.apache.org/jira/browse/COUCHDB-957
> Project: CouchDB
> Issue Type: Bug
> Affects Versions: 1.0.1
> Reporter: Robert Newson
> Assignee: Robert Newson
> Fix For: 1.0.2, 1.1
>
>
> Running 'Compact Views' from Futon when you are not viewing a design document causes the database to be compacted, not the view.
> from futon.browse.js;
> case "compact_views":
> var groupname = page.viewName.substring(8,
> page.viewName.indexOf("/_view"));
> db.compactView(groupname, {success: function(resp) { callback() }});
> break;
> in this case the substring is empty, so the POST goes straight to /dbname/_compact
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.