couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henrik Skupin <hsku...@gmail.com>
Subject Query parameters in rewrites.json not handled as default values
Date Sun, 12 Sep 2010 07:35:03 GMT
Hi,

During this week while being at Couchcamp I have already talked to Chris and
we decided to follow-up on the topic in the mailing list.

With the latest version of CouchDB the URL parameters don't seem be 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 default values are always used. Once
the limit entry gets removed from the rewrites.json file, the URL parameter
is used and 10 rows are displayed.

IMO the values specified in rewrites.json should really be default ones and
should not override user defined values.

Henrik

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message