grafana-flowcharting icon indicating copy to clipboard operation
grafana-flowcharting copied to clipboard

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

Open MxPie200 opened this issue 1 year ago • 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 https://github.com/algenty/grafana-flowcharting/issues/230#issuecomment-1519039570

MxPie200 avatar Apr 23 '23 11:04 MxPie200

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

bijwaard avatar Apr 23 '23 11:04 bijwaard

@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

MxPie200 avatar Apr 23 '23 11:04 MxPie200

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.

bijwaard avatar Apr 23 '23 12:04 bijwaard

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

MxPie200 avatar Apr 23 '23 12:04 MxPie200

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 avatar Apr 23 '23 12:04 bijwaard

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

MxPie200 avatar Apr 23 '23 12:04 MxPie200

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.

bijwaard avatar Apr 23 '23 12:04 bijwaard

Which files do i have to copy from github?

MxPie200 avatar Apr 23 '23 12:04 MxPie200

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.

bijwaard avatar Apr 23 '23 12:04 bijwaard

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.

bijwaard avatar Apr 23 '23 12:04 bijwaard

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

bijwaard avatar Apr 23 '23 12:04 bijwaard

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

MxPie200 avatar Apr 23 '23 13:04 MxPie200

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

bijwaard avatar Apr 23 '23 13:04 bijwaard

looks like the same problem reported in #395

bijwaard avatar Apr 25 '23 13:04 bijwaard