Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 99100 invoked from network); 18 Nov 2010 15:23:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Nov 2010 15:23:07 -0000 Received: (qmail 18979 invoked by uid 500); 18 Nov 2010 15:23:38 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 18809 invoked by uid 500); 18 Nov 2010 15:23:38 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 18796 invoked by uid 99); 18 Nov 2010 15:23:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Nov 2010 15:23:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Nov 2010 15:23:35 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAIFNDeW023301 for ; Thu, 18 Nov 2010 15:23:14 GMT Message-ID: <14642635.176241290093793670.JavaMail.jira@thor> Date: Thu, 18 Nov 2010 10:23:13 -0500 (EST) From: "Robert Newson (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Resolved: (COUCHDB-957) 'Compact Views' compacts the database, not the view, if a design document is not selected. In-Reply-To: <23367210.176021290092353346.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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.