apache / couchdb-fauxton

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

Don't throw from Mango Query tab after doc edit #1411

Open YakovL opened 10 months ago

YakovL commented 10 months ago

Expected Behavior

When I'm in the Mango Query tab (/_utils/#/database/db_name/_find), after running a query I can click on a document to see its contents or to edit it. When I leave the doc editing UI (by clicking either Cancel, Save Changes, or Delete), I expect to end up in the Mango Query tab, ideally seeing the same or updated list.

Current Behavior

When I click Delete and confirm deleting, I'm thrown to the All Documents tab (/_utils/#/database/db_name/_all_docs). When I Cancel, I see the "No Documents Found" instead of the same list (ok, it could get updates from other sources, but that issue applies even when just looking at the list, so it should be handled separately and hence is irrelevant). When I Save Changes, I see the "No Documents Found" instead of the same list with the updated document that I've saw before.

Possible Solution

A minimal solution – after deleting, please return me to the Mango Query tab, not to All Documents. An ideal solution – also keep the shown list (including pagination!) after cancel/save changes, and update the doc columns if they were changed.

Context

I'm debugging my app and managing data, and these are annoying things that slow down my flow. This overlaps with #1389

Your Environment