You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2020/05/21 04:18:04 UTC

[GitHub] [couchdb] NiloCK opened a new issue #2898: "Foreign-Key" linking in Fauxton

NiloCK opened a new issue #2898:
URL: https://github.com/apache/couchdb/issues/2898


   ## Summary
   
   Many of my documents contain the `_id`s 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](https://user-images.githubusercontent.com/10780590/82522160-cf0ac800-9ae5-11ea-8b03-c5d1825f638d.png)
   The strings `ed1d504ee2aa71872a7088db6c161737` and `piano.question.EchoQuestion.Playback` should be clickable.
   
   [NOTE]: # ( Tell us how the new feature should work. Be specific. )
   [TIP]:  # ( Do NOT give us access or passwords to your actual CouchDB! )
   
   ## Possible Solution
   
   [NOTE]: # ( Not required. Suggest how to implement the addition or change. )
   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.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org