Page MenuHomePhabricator

Graphs made using Extension Graph are not rendered in Parsoid-based extensions
Closed, DuplicatePublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

{{Graph:Chart|width=600|height=100|xAxisTitle=X|yAxisTitle=Y |type=rect|x=1,2,3,4,5,6,7,8|y=10,12,6,14,2,10,7,9}}

What happens?:

  • Structured Discussion: The graph will display spinner indefinitely both in editing and viewing
  • Visual Editor: The graph will display error message and will not render the graph when in visual editing mode, but will render correctly after saving the edits (Since we still use PHP parser, instead of Parsoid, when viewing pages after saving the edits)

What should have happened instead?:
The graph should rendered in all cases.

Event Timeline

Restricted Application added subscribers: Stang, Aklapper. · View Herald Transcript

@1233thehongkonger: Hi, what are full steps to reproduce? How to "use Graph extension"? Please provide a list of clear steps that allow someone else to reproduce. Thanks!

VulpesVulpes825 renamed this task from Flow talk page does not allow graphs to be rendered to Graphs made using Extension Graph are not rendered in Parsoid-based extensions.Nov 1 2021, 8:55 PM
VulpesVulpes825 added a project: Parsoid.
VulpesVulpes825 updated the task description. (Show Details)

@1233thehongkonger: Hi, what are full steps to reproduce? How to "use Graph extension"? Please provide a list of clear steps that allow someone else to reproduce. Thanks!

I think @VulpesVulpes825 had updated the whole bug report. That should have removed the "personal" part and should not correctly reproduce.

(I am just curious why this in Chinese-sites (maybe the bug is reproduced in a Chinese environment? but that is not the main problem).

Structured Discussion: The graph will display spinner indefinitely both in editing and viewing

StructuredDissions/Flow doesn't load JS/CSS for some elements. This is a known issue T93457: Babel templates do not render correctly in posts and boards provided by StructuredDiscussions for instance is the same problem for the Babel extension.

For VE probably similar.. Because of the wrapping inside the template, the VE doesn't know it needs to load the JS for this element... Most types of content of non-JS fallback, but Graphs unfortunately do not (any longer).