Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Foreign-Key" linking in Fauxton #1281

Open
NiloCK opened this issue May 21, 2020 · 1 comment
Open

"Foreign-Key" linking in Fauxton #1281

NiloCK opened this issue May 21, 2020 · 1 comment

Comments

@NiloCK
Copy link

NiloCK commented May 21, 2020

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.

@wohali wohali transferred this issue from apache/couchdb May 21, 2020
@wohali
Copy link
Member

wohali commented May 21, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants