couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-2187) Page size doesn't changes if view is limited with lower value
Date Mon, 10 Mar 2014 17:10:44 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-2187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13925901#comment-13925901
] 

ASF subversion and git services commented on COUCHDB-2187:
----------------------------------------------------------

Commit adf9ae25c6be1c654fededfc72350b48abfda1de in couchdb's branch refs/heads/2189-ddoc-info-on-demand
from [~wilhol]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb.git;h=adf9ae2 ]

Store the initial collection parameters to allow a safe reset to the first page.

When adjusting page size, the desired behaviour is to navigate back to the
first page of the collection. This was previously done using the browser
URL but that does not capture additional defaults that are set in JavaScript.

This commit adds 2 new methods to the document collections:

saveDefaultParameters()
restoreDefaultParameters()

When each collection is initialized, we save the parameters (which represent the
initial state) - these can then be correctly restored when the page size is changed.

Fixes COUCHDB-2187.


> Page size doesn't changes if view is limited with lower value
> -------------------------------------------------------------
>
>                 Key: COUCHDB-2187
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2187
>             Project: CouchDB
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Fauxton
>            Reporter: Alexander Shorin
>            Assignee: Garren Smith
>
> 1. Open any database
> 2. Click Query options
> 3. Set limit as, say, 20
> 3.1 or add ?limit=20 to URL and hit Enter
> 4. Set page size 10 - note changes. 
> 5. Set page size 30 - nothing changes. Try 50 and 100 too and notice that nothing changes.
> 6. Get back to 20 - page size now is changed.
> Fauxton @ [4e60f0b|https://git-wip-us.apache.org/repos/asf?p=couchdb.git;a=commit;h=4e60f0b]



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message