algenty / grafana-flowcharting

Flowcharting, plugin for Grafana to create complexe visio's draws style like technical architectures, floorplan, diagrams, hierarchical schema based on draw.io
Apache License 2.0
966 stars 146 forks source link

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

Open MxPie200 opened 1 year ago

MxPie200 commented 1 year ago

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

bijwaard commented 1 year ago

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

MxPie200 commented 1 year ago

@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

bijwaard commented 1 year ago

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.

MxPie200 commented 1 year ago

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

bijwaard commented 1 year ago

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
MxPie200 commented 1 year ago

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

bijwaard commented 1 year ago

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.

MxPie200 commented 1 year ago

Which files do i have to copy from github?

bijwaard commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

MxPie200 commented 1 year ago

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

bijwaard commented 1 year ago

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

bijwaard commented 1 year ago

looks like the same problem reported in #395