User talk:Yurik/Archive 2020

Graph extension with external data
Hi Yurik,

I used a graph from the Vega example and add it to my MediaWiki page and it works, I have replaced in the "data": section the "values": part with the

"data": [ {           "name": "table", "url": "http://wiki.xxxxx.com/docs/ReleaseManagement/GraphTest.json" }       ], Or

"data": [ {           "name": "table", "url": "wikiraw:///wiki.xxxxx.com/docs/ReleaseManagement/GraphTest.json" }       ],

The data is not presented. I took the " values" section from the example file and created a Json file, the file is reachable, I am reading the data using the #get_web_data:url=http....... and it works.

Do you have any idea why it isn't working? Do I have to add another extension to the MediaWiki so it will work? Thanks in advance for your help, Shalom
 * You should use unsafe mode to allow "url": "https://..." params. To get wikiraw you may need to modify some code as it is much more involved (it dynamically converts "wikiraw:/..." to "http" --Yurik (talk) 17:07, 3 May 2020 (UTC)


 * I added support to https to the server and got

The error that I see on in the console :

[Vega Err] Error: URL hostname is not whitelisted: https://wikitest/mw/docs/ReleaseManagement/GraphTest.json

This is what i tried to add in the LocalSettings.php of the MediaWiki : $wgGraphAllowedDomains = [ 'wikiraw' => [ 'wikitest' ], 'https' => [ 'wikitest' ] ]; wfLoadExtension( 'Graph' ); $wgGraphIsTrusted = true;

i've tried to replace https with wikiraw in the page source instead of https, same issue:

"url": "https://wikitest/mw/docs/ReleaseManagement/GraphTest.json",

weird thing is, part of your data is showing in the graph that is rendered

Thanks, Shalom

Sat May 9: Symposium on Wikipedia and COVID-19
(You can subscribe/unsubscribe from future notifications for NYC-area events by adding or removing your name from this list.)

--Wikimedia New York City Team 14:48, 5 May 2020 (UTC)

May 20: ONLINE WikiWednesday Salon NYC
(You can subscribe/unsubscribe from future notifications for NYC-area events by adding or removing your name from this list.)

--Wikimedia New York City Team 16:00, 18 May 2020 (UTC)