Content Updated but Data Type is No

Crossposted here.

I’m hoping someone can shine a light on whatever step I missed. I copied this file, renamed the class, and updated the editor alias:

[SyncMigrator("tooorangey.EditorNotes.v8")]
public class TooorangeyEditorNotesV8ToContentmentEditorNotesMigrator : SyncPropertyMigratorBase

I added it via a composer:

builder.SyncPropertyMigrators().Append<TooorangeyEditorNotesV8ToContentmentEditorNotesMigrator>();

The breakpoint never hits. Oddly, the content is updated:

But the data type is not:


I was expecting it to look like this:

Hi,

I think you also need to remove the old (existing) mapper, or it will run for the type ,(which is why its changing but not hitting your mapper)

you can do this in a composer with replace.

builder
    .SyncPropertyMigrators()
    .Replace<uEditorNotesTouEditorNotesMigrator, uEditorNotesToContentmentEditorNotesMigrator>();

Thanks Kevin,

I noticed my editorAlias is actually tooorangey.EditorNotes.v8 (specific attention to the .v8 at the end).

I used the Replace() method, and when that didn’t have an affect I went the more direct route and used Remove().

I believe this editor hasn’t changed but for some reason in my current environment it does have a different editor alias. I could probably open a PR to add this to the existing one but I wanted to make sure this worked first. I must be getting hung up on the simplest thing.

While the Content Type (.config) is updated…

The Data Type (.config) is not…

My composer is hit and in the screenshot I am just being explicit about removing both the default and optional composers that are already part of uSync Migrations…

These breakpoints are never hit under any circumstance…

To make all of this more confusing for us, if I remove my copy of the migrator (just a copy of one out of your project) and I remove both of yours (handling tooorangey.EditorNotes), I get the exact same result. As if something in the migration is still converting tooorangey.EditorNotes.v8 to Umbraco.Community.Contentment.EditorNotes for content types but not touching the data type.

I think I need to take a break from coding this weekend…