Gelio / CAL-web

A web modeler for CAL models
0 stars 0 forks source link

Fix `DanglingHFREException` after automatic `DataFlow` removal #36

Open Gelio opened 2 years ago

Gelio commented 2 years ago

After a DataFlow is automatically removed (for example when removing an ApplicationDataPin and the attached DataFlows are also removed), there is a warning about a DanglingHFREException.

Let's investigate how to fix it.

One idea is to manually clear the back-references to DataFlow when is it removed.

The exception only happens in Sirius Web. In Sirius Desktop, everything works smoothly. Upstream bug for Sirius Web: https://github.com/eclipse-sirius/sirius-components/issues/792

Gelio commented 2 years ago

Could be fixed in https://github.com/Gelio/CAL-web/pull/38/commits/61191ae7aa85f40a152d2e92c1bb2491a648177a as it adds the "Delete From Diagram" tool. Not sure