Bovlb created this task. Bovlb added projects: Wikidata, Wikidata Query UI. Restricted Application added a subscriber: Aklapper.
TASK DESCRIPTION Steps to reproduce: 1. Open query https://w.wiki/Mq3 2. Switch to graph view (bottom of left-hand toolbar) 3. Switch to left-to-right hierarchical view (second button on top toolbar) 4. Observe placement of node Q42 Douglas Adams. This graph shows the collections that Q42 is an instance of. When viewed hierarchically, I would expect to see Q42 on the left, but instead it is on the second level. I believe this is because the code (https://github.com/wikimedia/wikidata-query-gui/blob/master/wikibase/queryService/ui/resultBrowser/GraphResultBrowser.js#L111) uses the default "leaves" shakeTowards, whereas "roots" mode would be more appropriate in this case. (https://visjs.github.io/vis-network/docs/network/layout.html#) I don't know about others, but I tend to build graphs where the root is the focus. In particular, the "leaves" mode doesn't work well on digraphs where there are multiple paths to a leaf of different lengths. Suggested solutions: 1. (fancy) Add buttons to the UI that switch hierarchical mode between "roots" and "leaves" 2. (simple) Change the UI to use "roots" instead TASK DETAIL https://phabricator.wikimedia.org/T250299 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Bovlb Cc: Aklapper, Bovlb, darthmon_wmde, Nandana, Lahi, Gq86, Lucas_Werkmeister_WMDE, GoranSMilovanovic, QZanden, EBjune, merbst, LawExplorer, Salgo60, _jensen, rosalieper, Scott_WUaS, Jonas, Xmlizer, jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Lydia_Pintscher, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs