gaphor / gaphor

Gaphor is the simple modeling tool
https://gaphor.org
1.81k stars 195 forks source link

Hypothesis test failed #2895

Closed github-actions[bot] closed 6 months ago

github-actions[bot] commented 8 months ago

Hypothesis test run failed. See https://github.com/gaphor/gaphor/actions/workflows/hypothesis-test.yml.

amolenaar commented 6 months ago

Some notes...

https://github.com/gaphor/gaphor/actions/runs/7258062298/job/19772807349 (Same as https://github.com/gaphor/gaphor/actions/runs/7149477997/job/19471717468?)

Undo creation of an element

  1. diagram is set to None
    • are there any connections left?
    • should remove all connections here? -> same issue: diagram is None
    • should nor send event? ownedPresentation will yield same effect (need that event)
    • can use any diagram (element or line) for disconnecting
    • for connecting, both diagrams should be same
  2. Unlink item
    • tries to unlink connections -> fails: diagram is None

Problem is that due to pasting, it create a containment relation, a couple of classes and connected those. When undoing, the classes are removed and the association too, from connecting_items.