algenty/grafana-flowcharting

Flowchart resetting due to app.diagram.net not working properly

MxPie200 opened this issue · 14 comments

I'm still having the same issue as @bijwaard , in 2023.
I can open the drawing and its showing the mentioned warning:
grafik

But if i make any changes to the Flowchart, the whole thing disappeared after closing the editor:

grafik

How can I edit my drawing / how can we move to embed.diagrams.net ?
Changing the url in the "Source Content" does not work:
grafik

I really like the Flowchart extension and would be great to hear about a fix for my issue.

Originally posted by @MxPie200 in #230 (comment)

Hi @MxPie200,
Have you tried to specify editor? This works for me!
image
Kind regards,
Dennis

@bijwaard
Yes, I've tried it.
It opens the editor correctly, but after clicking on "Save" the Flowchart disappears as shown in my second screenshot

Aha, just tried editing my drawing, set it to light theme, and get the following back:

image

Looks like it reverts to the default diagram for some reason.

Hm ok, so it looks like it's a new bug with currently no solution for?

Looks like a new bug indeed. What version of the plugin are you using? I'm using 1.0.0d (on grafana 9.3.2).

$ sudo grafana-cli plugins ls
installed plugins:
ae3e-plotly-panel @ 0.5.0
agenty-flowcharting-panel @ 1.0.0d
alexandra-trackmap-panel @ 2.3.0
marcuscalidus-svg-panel @ 0.3.4
natel-plotly-panel @ 0.0.7
simpod-json-datasource @ 0.3.0

@bijwaard
I have Version 0.9.1. , but grafana doesn't show updates, can i update via commandline?

Yes, you can update via the command line. You move the old plugin away from /var/lib/grafana/plugins and unzip the latest the beta release in the /var/lib/grafana/plugins folder, then restart grafana. Depending on which version you had previously, you may need to rename the folder to the old name.

Which files do i have to copy from github?

just tried on another grafana instance with plugin version 1.0.0b on grafana 9.1.5, and here the editor keeps working, but after saving the result stays blank in the panel, but further editing still works.

Latest snapshot is here. Current and older snapshots are here.

Bug may be a regression in 1.0.0d, and possibly a change in how embed.diagrams.net works for older versions.

you can rename your ticket to say that embed.diagrams.net is not working properly....

hm ok, i've had same as you that changes lead to reset to default flowchart..

Hopefully Arnaud just has to update/refresh the embed.diagrams.net library in the plugin....

looks like the same problem reported in #395