depviz icon indicating copy to clipboard operation
depviz copied to clipboard

Show dependents

Open jbenet opened this issue 8 years ago • 1 comments

The graph today is walked backs to the dependencies, but does not show dependents directly, as this involves walking backlinks, or other references.

  • See original designs
  • There's some discussion here: https://github.com/jbenet/depviz/issues/17#issuecomment-263379305

Basically:

  • we want to have it
  • but it's tricky to do right (given some links will automatically backlink and some wont)
  • we may have workarounds meanwhile (see user or whole project issues)

jbenet avatar Nov 28 '16 21:11 jbenet

On Mon, Nov 28, 2016 at 01:18:06PM -0800, Juan Benet wrote:

  • but it's tricky to do right (given some links will automatically backlink and some wont)

This doesn't help with cross-host back-references (e.g. a GitLab issue referencing a GitHub issue), but within GitHub you can discover these somewhat efficiently (an extra API call or two per rendered node) using the timeline API preview 1:

$ curl -sH 'Accept: application/vnd.github.mockingbird-preview' https://api.github.com/repos/jbenet/depviz/issues/15/timeline |

jq '[.[] | select(.event == "cross-referenced") | {"source": {"html_url": .source.issue.html_url, "body": .source.issue.body}}]' [ { "source": { "html_url": "https://github.com/jbenet/depviz/issues/22", "body": "We don't do this at the moment (there's a FIXME in the GitHub module). Screenshot for the designed display in #9. Related but (I think?) distinct idea in #15." } } ]

wking avatar Jan 09 '17 19:01 wking