Upgrade to the latest published Vega version
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Yurik | T106101 Upgrade Vega to version 2.0 | |||
Resolved | Yurik | T106102 Upgrade Graphoid to Vega 2.0 | |||
Resolved | Yurik | T106103 Upgrade Graph ext to Vega 2.0 | |||
Resolved | Yurik | T106314 Verify vega 2.0 compatibility with existing graphs |
Event Timeline
I have implemented v2 support in graphoid (needs to be deployed), and was hoping for the POST storage to be done (services team). I am now thinking that i will migrate to v2 before it gets ready.
Today I deployed Graphoid with vega2 support. Now <graph vega="2"> can contain vega2 code, but it won't work yet - I still need to change the generated service URL, or you can try it manually:
If you create a page on any production wiki with <graph vega="2">...</graph>, and instead of using #1, which is the current way of getting the static image, and #2, which is what #1 becomes internally, use #3 to specify which vega version should be used. Supported values: vega0, vega1, vega2. The vega0 is a "magic" version - it tries version 2, and if failed, it attempts to automatically migrate v1 -> v2 by replacing "field":"data.xxx" with "field":"xxx". If that also fails, version 1 is used.
- https://www.mediawiki.org/api/rest_v1/page/graph/png/Extension%3AGraph%2FDemo/1940308/1533aaad45c733dcc7e07614b54cbae4119a6747.png
- https://graphoid.wikimedia.org/www.mediawiki.org/v1/png/Extension%3AGraph%2FDemo/1686336/1533aaad45c733dcc7e07614b54cbae4119a6747.png
- https://graphoid.wikimedia.org/www.mediawiki.org/v1/vega1/png/Extension%3AGraph%2FDemo/1686336/1533aaad45c733dcc7e07614b54cbae4119a6747.png