Page MenuHomePhabricator

Add Vega 3/4/5 support to MediaWiki Graph extension
Open, Needs TriagePublic

Description

Handle new Vega 3.0+ graphs. Note that Vega 3.0+ should be loadable in parallel with Vega 2.0, thus it should be possible to have both versions at the same time.

P.S. Now I'm developing with Vega 4.3 because Vega 5 uses async methods in its code and that may lead to incompatible.

Event Timeline

@Xiaoyanghaitao if you want to target Vega 5.4.0 initially, you might as well put that version in the subject (or you could just say "latest production version")

Change 509613 had a related patch set uploaded (by Xiaoyanghaitao; owner: Xiaoyanghaitao):
[mediawiki/extensions/Graph@master] 1. add Vega5 min js to lib/ 2. copy the graph2.js to initialize a graph3.js 3. modify extension.json and package.json 4. ParserTag.php: change version related sections to deal with Vega3+ and VegaLite

https://gerrit.wikimedia.org/r/509613

Xiaoyanghaitao renamed this task from Add Vega 3.0+ support to MediaWiki to Add Vega 5 support to MediaWiki.May 12 2019, 2:44 AM
Xiaoyanghaitao updated the task description. (Show Details)
Xiaoyanghaitao renamed this task from Add Vega 5 support to MediaWiki to Add Vega 4 support to MediaWiki.May 15 2019, 10:19 AM
Xiaoyanghaitao updated the task description. (Show Details)

Vega is already 5.4.0, isn't it?
Besides, graph are no longer working in wikipedias ...

Besides, graph are no longer working in wikipedias ...

If there is some bug somewhere, then please follow https://www.mediawiki.org/wiki/How_to_report_a_bug and provide clear steps to reproduce in a separate task. Thanks.

Would be great to have the latest Vega!

Aklapper renamed this task from Add Vega 4 support to MediaWiki to Add Vega 4 support to MediaWiki Graph extension.Mar 1 2020, 7:36 PM
Aklapper added subscribers: Doc_James, Bawolff.

Hello, so are Mediawikis Graph still on Vega 2.0 syntax ? Pinging {{user|Shirayuki}} ;)

@Bouzinac: This task is still open, so: yes. (Plus local MediaWiki template syntax won't work in Phab.)

As of May 2019, the glue repo has been updated to support Vega 3 and 4: https://github.com/nyurik/mw-graph-shared/pull/2

Several additional steps are mentioned in the PR discussion:

Well done!!! Thank you for following through on all the changes! Next steps:

update mediawiki to use the new version (wrapper v1 only)
update graphoid service to use the new version (wrapper v1 only)
add wrapper v2 support to graphoid
add wrapper v2 support to mediawiki

Change 755823 had a related patch set uploaded (by TheDJ; author: TheDJ):

[mediawiki/extensions/Graph@master] Update to mw-graph-shared 5.0.0

https://gerrit.wikimedia.org/r/755823

TheDJ renamed this task from Add Vega 4 support to MediaWiki Graph extension to Add Vega 3/4/5 support to MediaWiki Graph extension.Jan 21 2022, 12:41 PM
This comment was removed by Pietrasagh.

Change 509613 had a related patch set uploaded (by Aklapper; author: Xiaoyanghaitao):

[mediawiki/extensions/Graph@master] Add Vega 5 support to MediaWiki

https://gerrit.wikimedia.org/r/509613