[jira] [Commented] (COUCHDB-2067) Not all rows in a non-reduced view are displayed

2014-03-06 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/COUCHDB-2067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=1394#comment-1394
 ] 

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

Commit 4e60f0b7a7b26662dde0ebc0a73c70df54e0f309 in couchdb's branch 
refs/heads/master from [~garren]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb.git;h=4e60f0b ]

Fauxton: Improved pagination

This is an improvement and fix on the current pagination. This fixes
pagination so that it works with all query options.

Pagination in Couchdb is quite complex
and there are plenty of situations to cater for. This new pagination
works quite differently to the previous way we had it working for a
user.

A user can set the number of documents they want to view on a page. This
is not related to limit options in the query options - the limit option
is an overall cap of how many documents to paginate too. A limit of none
is possible and is the default. If the limit option is set to 50 and a
user wants 10 docs per page, the would then be able to paginate 3 pages
before hitting the end.

Another change is that the api url and browser url does not change when
we paginate. That happens internally and hence the new addition of
urlParams and docParams. This allows Fauxton to keep track of the
parameters that the user sees and the parameters that the document needs
to paginate.

Fixes COUCHDB-2067


 Not all rows in a non-reduced view are displayed
 

 Key: COUCHDB-2067
 URL: https://issues.apache.org/jira/browse/COUCHDB-2067
 Project: CouchDB
  Issue Type: Bug
  Security Level: public(Regular issues) 
  Components: Fauxton
Reporter: James Blachly
Assignee: Garren Smith

 When designing a view using a map function that emits multiple items, Fauxton 
 shows only a subset of the rows from the view. I think, but have not 
 confirmed, that it is only showing as many rows as there were source 
 documents that emitted the rows in the view.
 For example, I have THREE documents of type A, each document having a list 
 of alternate IDs, variable in length. The map function emits one or more 
 alternate IDs per document. In my example, I have 8 rows returned from 3 
 documents.
 When looking at the view, Fauxton only shows 3 rows, but it correctly reports 
 the total # of rows: Showing 1-3 of 8 rows.. The Next button takes you 
 to: http://localhost:5984/_utils/fauxton/# which is putatively the list of 
 databases, but for some reason is empty at that time (refreshing or clicking 
 the database link to the left correctly displays the database list).



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


[jira] [Commented] (COUCHDB-2067) Not all rows in a non-reduced view are displayed

2014-03-06 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/COUCHDB-2067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13923299#comment-13923299
 ] 

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

Commit 4e60f0b7a7b26662dde0ebc0a73c70df54e0f309 in couchdb's branch 
refs/heads/2041-update-ibrowse from [~garren]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb.git;h=4e60f0b ]

Fauxton: Improved pagination

This is an improvement and fix on the current pagination. This fixes
pagination so that it works with all query options.

Pagination in Couchdb is quite complex
and there are plenty of situations to cater for. This new pagination
works quite differently to the previous way we had it working for a
user.

A user can set the number of documents they want to view on a page. This
is not related to limit options in the query options - the limit option
is an overall cap of how many documents to paginate too. A limit of none
is possible and is the default. If the limit option is set to 50 and a
user wants 10 docs per page, the would then be able to paginate 3 pages
before hitting the end.

Another change is that the api url and browser url does not change when
we paginate. That happens internally and hence the new addition of
urlParams and docParams. This allows Fauxton to keep track of the
parameters that the user sees and the parameters that the document needs
to paginate.

Fixes COUCHDB-2067


 Not all rows in a non-reduced view are displayed
 

 Key: COUCHDB-2067
 URL: https://issues.apache.org/jira/browse/COUCHDB-2067
 Project: CouchDB
  Issue Type: Bug
  Security Level: public(Regular issues) 
  Components: Fauxton
Reporter: James Blachly
Assignee: Garren Smith

 When designing a view using a map function that emits multiple items, Fauxton 
 shows only a subset of the rows from the view. I think, but have not 
 confirmed, that it is only showing as many rows as there were source 
 documents that emitted the rows in the view.
 For example, I have THREE documents of type A, each document having a list 
 of alternate IDs, variable in length. The map function emits one or more 
 alternate IDs per document. In my example, I have 8 rows returned from 3 
 documents.
 When looking at the view, Fauxton only shows 3 rows, but it correctly reports 
 the total # of rows: Showing 1-3 of 8 rows.. The Next button takes you 
 to: http://localhost:5984/_utils/fauxton/# which is putatively the list of 
 databases, but for some reason is empty at that time (refreshing or clicking 
 the database link to the left correctly displays the database list).



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


[jira] [Commented] (COUCHDB-2067) Not all rows in a non-reduced view are displayed

2014-02-16 Thread James Blachly (JIRA)

[ 
https://issues.apache.org/jira/browse/COUCHDB-2067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13902759#comment-13902759
 ] 

James Blachly commented on COUCHDB-2067:


I think a clue is in:
/couchdb-fauxton/app/addons/documents/templates/all_docs_number.html 

where it says:
Showing %=offset% - %= numModels % of %= totalRows % rows

Looking for numModels, I find it in:
/couchdb-fauxton/blob/import-master/app/addons/documents/views.js
where it says:
numModels: this.collection.models.length + recordStart - 1,

So, it looks to me (caveat: a non developer) that numModels is just pulling the 
number of documents in the database, NOT the correct number of documents in the 
view. This probably manifests wrongly in other types of views as well.

 Not all rows in a non-reduced view are displayed
 

 Key: COUCHDB-2067
 URL: https://issues.apache.org/jira/browse/COUCHDB-2067
 Project: CouchDB
  Issue Type: Bug
  Security Level: public(Regular issues) 
  Components: Fauxton
Reporter: James Blachly

 When designing a view using a map function that emits multiple items, Fauxton 
 shows only a subset of the rows from the view. I think, but have not 
 confirmed, that it is only showing as many rows as there were source 
 documents that emitted the rows in the view.
 For example, I have THREE documents of type A, each document having a list 
 of alternate IDs, variable in length. The map function emits one or more 
 alternate IDs per document. In my example, I have 8 rows returned from 3 
 documents.
 When looking at the view, Fauxton only shows 3 rows, but it correctly reports 
 the total # of rows: Showing 1-3 of 8 rows.. The Next button takes you 
 to: http://localhost:5984/_utils/fauxton/# which is putatively the list of 
 databases, but for some reason is empty at that time (refreshing or clicking 
 the database link to the left correctly displays the database list).



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (COUCHDB-2067) Not all rows in a non-reduced view are displayed

2014-02-16 Thread Garren Smith (JIRA)

[ 
https://issues.apache.org/jira/browse/COUCHDB-2067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13902761#comment-13902761
 ] 

Garren Smith commented on COUCHDB-2067:
---

Hi James. 

Thanks for reporting this. There is a couple things wrong with the current 
pagination implementation on Fauxton. We are re-writing it. It is being 
developed in the branch pagination-api-options on the main Couchdb repo. I will 
let you know when it is done and you can give it a spin.

 Not all rows in a non-reduced view are displayed
 

 Key: COUCHDB-2067
 URL: https://issues.apache.org/jira/browse/COUCHDB-2067
 Project: CouchDB
  Issue Type: Bug
  Security Level: public(Regular issues) 
  Components: Fauxton
Reporter: James Blachly

 When designing a view using a map function that emits multiple items, Fauxton 
 shows only a subset of the rows from the view. I think, but have not 
 confirmed, that it is only showing as many rows as there were source 
 documents that emitted the rows in the view.
 For example, I have THREE documents of type A, each document having a list 
 of alternate IDs, variable in length. The map function emits one or more 
 alternate IDs per document. In my example, I have 8 rows returned from 3 
 documents.
 When looking at the view, Fauxton only shows 3 rows, but it correctly reports 
 the total # of rows: Showing 1-3 of 8 rows.. The Next button takes you 
 to: http://localhost:5984/_utils/fauxton/# which is putatively the list of 
 databases, but for some reason is empty at that time (refreshing or clicking 
 the database link to the left correctly displays the database list).



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)