Skip to content

Export - File - save as json - metadata are not all exported

Summary

In file - Save sa json, when a json graph file containing "custom" metadata is used, they are not exported in the final json graph file

Steps to reproduce

(How one can reproduce the issue - this is very important) Loaded file, just the first lines { "graph": { "directed":true, "id": "Valorisation residu de distillerie", "label": "Valorisation residu de distillerie", "metadata": { "uri": "lbe:id/process/valorisation_residu_de_distillerie", "rdf_type": "ebo:Bioprocess", "rdf_type_name": "Bioprocess", "name": "Valorisation residu de distillerie", "experiment": "lbe:id/experiment/test", "start": "2022-06-01T11:38:09.471Z", "end": "2022-11-01T12:38:16.271Z", "description": "test", "scientific_supervisors": [], "technical_supervisors": [],
"style": { "nodeStyles": { "Component": { "fill": "orange", "stroke": "purple", "strokeWidth": 2, "shape": "circle", "width": 40, "height": 40 }, "Step": { "fill": "yellow", "strokeWidth": 2, "shape": "rect" }
} } },

What is the current bug behavior?

(What actually happens) The exported file is {"graph":{"metadata":{"style":{"nodeStyles":{"Component":{"height":50,"width":50,"strokeWidth":2,"opacity":1,"fill":"orange","stroke":"purple","shape":"circle"},"Step":{"height":30,"width":180,"strokeWidth":2,"opacity":1,"fill":"yellow","stroke":"#000000","shape":"rect"}},

What is the expected correct behavior?

(What you should see instead) It is expected {"graph":{"directed":true, "id": "Valorisation residu de distillerie", "label": "Valorisation residu de distillerie", "metadata": { "uri": "lbe:id/process/valorisation_residu_de_distillerie", "rdf_type": "ebo:Bioprocess", "rdf_type_name": "Bioprocess", "name": "Valorisation residu de distillerie", "experiment": "lbe:id/experiment/test", "start": "2022-06-01T11:38:09.471Z", "end": "2022-11-01T12:38:16.271Z", "description": "test", "scientific_supervisors": [], "technical_supervisors": [], "style":{"nodeStyles":{"Component":

Relevant logs and/or screenshots

(Paste any relevant logs - use code blocks (```) to format console output, logs, and code, as it's very hard to read otherwise.)

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

/cc @project-manager