apache / couchdb-fauxton

Fauxton is the new Web UI for CouchDB

Home Page:https://github.com/apache/couchdb-fauxton

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don't throw from Mango Query tab after doc edit

YakovL opened this issue · comments

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

  • Version used: left bottom corner suggests "Fauxton on Apache CouchDB v. 3.2.2"
  • Browser Name and version: Vivaldi 6.1 (Chromium-based)
  • Operating System and version: Windows 10 Pro x64