hale icon indicating copy to clipboard operation
hale copied to clipboard

Add option to overwrite structural Retype mapping for single elements

Open JohannaOtt opened this issue 4 years ago • 3 comments

Currently, when using a structural Retype mapping, there is no option to change single elements. Sometimes, there are use cases, where you want to keep the biggest part of the source data, but only want to change a few elements. In these cases it would be helpful to be able to "overwrite" the mapping resulting from the structural Retype with an explicite mapping on property level. So there should be something like an internal prioritization between the additional mapping on attribute level (higher priority) and the property "mappings" (not explicitely created) from the structural Retype (lower priority).

JohannaOtt avatar Aug 17 '21 14:08 JohannaOtt

I agree with this, it would be quite powerful to have such a feature.

thorsten-reitz avatar Aug 23 '21 14:08 thorsten-reitz

I have actually tested this in the last weeks, and have only encountered one case where it doesn't work: When there is a type level groovy operation (Groovy Merge, Groovy Retype). In all other cases (check the end repo for examples) this worked nicely.

thorsten-reitz avatar Dec 03 '21 14:12 thorsten-reitz

Related way of solving this: https://github.com/halestudio/hale/issues/970

thorsten-reitz avatar May 17 '22 08:05 thorsten-reitz

Closed with https://github.com/halestudio/hale/pull/981

JohannaOtt avatar Aug 17 '22 13:08 JohannaOtt