iTwin / imodel-transformer

API for exporting an iModel's parts and also importing them into another iModel
MIT License
3 stars 2 forks source link

Definition element does not get deleted in processChanges #27

Open simsta6 opened 1 year ago

simsta6 commented 1 year ago

Describe the bug Definition elements does not get deleted if they are referenced by deleted definition element

To Reproduce

  1. Create empty iModel that has DisplayStyle3d element and SpatialViewDefinition element that references DisplayStyle3D element
  2. Run transformation
  3. Delete DisplayStyle3d and SpatialViewDefinition elemenets using BriefcaseDb.elements.deleteDefinitionElements()
  4. Run transformation to trigger processChanges
  5. Check target iModel. It still contains DisplayStyle3D that was deleted in source iModel

Expected behavior Target iModel should not contain DisplayStyle3D

Desktop (please complete the applicable information):

MichaelBelousov commented 1 year ago

reproduced this in #42, but skipping the test