Since ext.graph now supports Vega 2, the VisualEditor module should exclusively produce Vega 2 graphs ASAP. Existing Vega 1 graphs should be able to be converted to Vega 2 syntax seamlessly upon an edit.
|Open||None||T292341 [Epic] Graphs extension maintenance|
|Open||None||T120319 Migrate graphs from Vega 1 to Vega 2 syntax on edit with VE|
Existing Vega 1 graphs should be able to be converted to Vega 2 syntax seamlessly upon an edit.
So anyone editing a page will cause unrelated syntax to be updated? We specifically *don't* want VE doing that.
@Krenair I was talking about a graph edit specifically. If the user opens the graph dialog of a graph made with Vega 1, the tool should automagically convert it to Vega 2.
Of course that's an ideal scenario, and I'll have to investigate on whether this is possible without too much pain
For the current, non-aggregated graphs, the migration is very simple -- place "version":2 at the top, and remove all data. from the fields.
For the future capabilities, if you use facets and other fun features, you will need to use the Vega2 ones, as described in https://github.com/vega/vega/wiki/Upgrading-to-2.0 , or better yet, just read the new transformation docs.