major
minor
defect
major
minor
minor
#26405
TTypeRewriter logs warning "Unable to resolve items by external reference" also unnecessarily
The tl:TTypeRewriter logs warnings when it cannot resolve an external reference. However, it also logs these warnings even if the entire tl:ItemEvent has already been identified as "not to be imported." The cause lies in `visitDelete`. Here, for associations, ` mapAssociationAttributes` is first used to determine whether they should be imported or not. However, a callback is then registered in the calling `visitDelete` method in any case, which resolves the external reference of that association. If the entire `tl:ItemEvent` is not being imported, this is not only unnecessary but also causes unnecessary warnings. The solution is likely simple: If `mapAssociationAttributes` returns ` SKIP_EVENT `, the callback is not registered.
Test
The existing TL-Sync tests in the test.com.top_logic.kafka.services package must not fail. There is no explicit test for this particular warning.
After #25852 is implemented, 3 of the 4 tests in ` TestTLSyncAttributeValueTypeNotImported ` fail without this ticket. Only the test for the "inline" attribute does not fail without this ticket.