apache / couchdb-fauxton

Fauxton is the new Web UI for CouchDB
https://github.com/apache/couchdb-fauxton
Apache License 2.0
382 stars 224 forks source link

Feature: please make pagination stateless (i.e. store page number in url) #1389

Open YakovL opened 1 year ago

YakovL commented 1 year ago

There are multiple issues why this feature would be helpful:

Expected Behavior

In /_utils/#database/db-name/_all_docs , switching a page should add something like ?pageSize=50&pageNumber=2 to url. When pageSize & pageNumber are set in query, the corresponding page is opened.

When editing a document (after clicking Save Changes/Cancel), user should be returned to the page where they came from (pageNumber=XX should be kept)

Current Behavior, Possible Solution

See above

Context

While developing an app using CouchDB, checking if expected changes were applied indeed and editing data to see how it is reflected in UI is highly hindered by the issues mentioned above.

Environment

PS

Relevant bits of code that I've found so far:

It would be also helpful to see the total number of docs (like "Showing document 1 - 100" → "Showing document 1 - 100 of 527").

big-r81 commented 1 year ago

Linking a similiar issue from the main repo: https://github.com/apache/couchdb/issues/4403