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

"Foreign-Key" linking in Fauxton

NiloCK opened this issue · comments

Summary

Many of my documents contain the _ids of other documents in the database. I have reason to want to quickly move between these documents. It would be convenient for me if these 'foreign keys' were clickable links to the fauxton display of these documents.

Desired Behaviour

image
The strings ed1d504ee2aa71872a7088db6c161737 and piano.question.EchoQuestion.Playback should be clickable.

Possible Solution

Possible approaches. On loading a fauxton document view:

  • string fields with id in their index could be clickable by default (will lead to false positives)
  • string fields with an id in their index could be async checked for existence as documents before being made clickable

Alternate approach (one that I'll probably implement as a GreaseMonkey script in the meantime):

  • set a hotkey or toggle which turns string data into clickable links. Users is then responsible for clicking things that are actually document IDs.

Additional context

This represents additional markup inside a text-editor, which is usually a hassle. But I think this is not unique to me, and would be a convenience to many people who have to manually move through database data for any purpose.

If this is implemented (and I stress if), it'd probably be easier to set up hyperlinks on the database Table view, not the JSON view.