Major
Detail
Bugfix
Major
Detail
Detail
#26405
TTypeRewriter logs warning "Unable to resolve items by external reference" also unnecessarily
The tl:TTypeRewriter logs warnings if it cannot resolve an external reference. However, it logs this even if the entire tl:ItemEvent has already been detected as "not to import". The cause is in visitDelete. Here, for associations, it is first detected in mapAssociationAttributes whether they are to be imported or not. Afterwards, however, a callback is registered in the calling method visitDelete in any case, which resolves the external reference of this association. If the whole tl:ItemEvent is not imported, this is on the one hand unnecessary, and on the other hand it causes unnecessary warnings. The solution is probably simple: If mapAssociationAttributes returns SKIP_EVENT, the callback is not registered.
Test
The existing TL-Sync tests in the package test.com.top_logic.kafka.services must not fail. There is no explicit test against this one 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.