Page MenuHomePhabricator

dbtree.wikimedia.org: Replace Google Charts usage with something we can host
Open, Needs TriagePublic

Description

We've a privacy issue at dbtree.wikimedia.org, as we include Google Charts JS code to generate the fancy org chart.

We can't serve ourselves the files:

Can I download and host the chart code locally, or on an intranet?
Sorry; our terms of service do not allow you to download and save or host the google.load or google.visualization code.

Reference: http://stackoverflow.com/a/22779987/1930997

We so need something else to generate an org chart.

D3.js would allow to create http://bl.ocks.org/mbostock/4339083.

Event Timeline

Dereckson created this task.Jul 8 2016, 4:10 PM
Danny_B renamed this task from In dbtree.wikikimedia.org uses replace the Google Charts org chart by something we can host to In dbtree.wikimedia.org uses replace the Google Charts org chart by something we can host.Jul 8 2016, 5:31 PM
Danny_B added a project: Privacy.
jcrespo added a subscriber: jcrespo.Sep 8 2016, 6:38 AM

I am not ashamed to say that even if I should own this, my javascript skills will not allow me to do this. Aside my poor frontend skills, I have 0 design skills.

In addition to the mentioned issues on the description, dbtree is not longer a tree, it is a graph, so a chart library is no longer fit.

Now, I have a solution for tendril, which is integrating orchestrator https://github.com/outbrain/orchestrator - but that only works for NDA-only options. A public one (dbtree) should be a light alternative like the one proposed.

In the merged task, I gave a visualisation sample. Would that be suitable
to represent the graph?

jcrespo added a comment.EditedSep 8 2016, 6:54 AM

It depends on how deep we want to do things. Currently, I patched the backend so that it still generates a tree, but by doing so, what we are showing here: https://dbtree.wikimedia.org/ is a lie. I hoped that with a new graphing library we could represent cycles (a graph).

So ideally, we would undo the patch and create a more realistic representation, for which a tree solution would not be enough. I understand that that may be out of the scope of this ticket; but even if it is, we want to use something that would allow arbitrary graphs in the future knowing this limitation.

To clarify: D3 allows any kind of representation, the specific code you shared is only for trees.

Krinkle renamed this task from In dbtree.wikimedia.org uses replace the Google Charts org chart by something we can host to dbtree.wikimedia.org: Replace Google Charts usage with something we can host.Oct 4 2016, 4:53 PM