Content Delete creating files for "excluded" document types
Versions: Umbraco: 13.2.0 uSync: 13.1.1
Suspected Bug:
We have a site that imports data from an external source on a regular occurrence, the document types that this data is stored as have been excluded from the uSync Content Handler using the setting: ExcludeContentTypes which works fine for creations and amends.
However, when deleting a node which is one of the excluded content types, the deleted usync file gets created for the deleted node:
<?xml version="1.0" encoding="utf-8"?>
<Empty Key="658d5f27-fed6-4e97-86db-e109d40986d1" Alias="REDACTED" Change="Delete" Level="3" />
Expected behaviour:
I would not expect this file to be created for ExcludedContentTypes
Possible cause:
I think this check could be the cause as it happens before the content types check: https://github.com/KevinJump/uSync/blob/c161aa7340b46e0a078642cf80ee5c621ca56bf5/uSync.BackOffice/SyncHandlers/Handlers/ContentHandlerBase.cs#L177
Note: The content deletion is being triggered by code so it's bypassing the recycle bin and just being removed.