Closed JulijaRamoskiene closed 1 month ago
@JulijaRamoskiene we are working on this issue. We noticed that the first unit test passes with the existing code, meaning the deleted elements are re-added.
We also noticed that for the first unit test, the line - // should not throw error: duplicate code (65547)
. My understanding is that you are saying that the line currently throws a duplicate error, but it should not throw that error. But that will not be possible since we are deleting the subject from the target. Could you please clarify if you meant something else?
This error is thrown because of other elements that exist in target, not because of subject. I want elements to be re-added to target with same id, meaning that in this scenario, subject with same id should be added to target:
As I described above:
Do you plan to introduce new option that would control what should happen with conflicting elements when preserveElementIds is set?(to throw "duplicated code" vs to update it. ) Or we will change how preserveElementIds
is acting now?
Update:
It was decided that new option is not needed. preserveElementIds
will now update existing elements with matching id instead of throwing error.
Requested functionality
Make it possible to run transformation that would re-add deleted elements with preserved element ids. I think this behavior should be supported trough current
preserveElementIdsForFiltering
option.Desired behavior:
Sample code: