Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 87121 invoked from network); 9 Oct 2010 19:46:08 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Oct 2010 19:46:08 -0000 Received: (qmail 48472 invoked by uid 500); 9 Oct 2010 19:45:51 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 48399 invoked by uid 500); 9 Oct 2010 19:45:51 -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 48316 invoked by uid 99); 9 Oct 2010 19:45:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Oct 2010 19:45:51 +0000 X-ASF-Spam-Status: No, hits=-1997.7 required=10.0 tests=ALL_TRUSTED,URI_NO_WWW_INFO_CGI 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; Sat, 09 Oct 2010 19:45:48 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o99JjQha016914 for ; Sat, 9 Oct 2010 19:45:26 GMT Message-ID: <3784028.57611286653526939.JavaMail.jira@thor> Date: Sat, 9 Oct 2010 15:45:26 -0400 (EDT) From: "Paul Joseph Davis (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Updated: (COUCHDB-886) Add option to set query options, defined in rewrites.json, as default In-Reply-To: <183235.146831284354191622.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-886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul Joseph Davis updated COUCHDB-886: -------------------------------------- Skill Level: Regular Contributors Level (Easy to Medium) > Add option to set query options, defined in rewrites.json, as default > --------------------------------------------------------------------- > > Key: COUCHDB-886 > URL: https://issues.apache.org/jira/browse/COUCHDB-886 > Project: CouchDB > Issue Type: Bug > Components: Database Core > Reporter: Henrik Skupin > Assignee: Benoit Chesneau > > With the latest version of CouchDB the URL parameters are not taken into account when the rewrites.json file specifies the same ones for the appropriate entry. See the following example: > { > "from" : "/general/reports", > "to" : "_list/general_reports/general_reportsByDate", > "query" : { > "descending" : true, > "limit" : 51 > } > } > default values: http://mozmill.hskupin.info/general/reports > custom values: http://mozmill.hskupin.info/general/reports?limit=10 > Whether which URL you are loading, the values from rewrites.json are always used. Once the limit entry gets removed from that file, the URL parameter is used and 10 rows are displayed. > As proposed by Benoit query entries should be explicitly allowed to have a default value. Otherwise the value from rewrites.json has the priority. > "query": { > "key": { "value": ":var", "default": 1} > } > Can true be used instead of a number? It could be confusing this way, especially when the value is also a number. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.