ProNotion
08/09/2023, 2:33 PMSyncPropertyMigratorBase
and when I run the conversion no content is converted.
My Migration plan is defined as follows:
public class SlideShowSlideMigrationPlan : ISyncMigrationPlan
{
private readonly SyncMigrationHandlerCollection _migrationHandlers;
public SlideShowSlideMigrationPlan(SyncMigrationHandlerCollection migrationHandlers)
{
_migrationHandlers = migrationHandlers;
}
public int Order => 100;
public string Name => "Convert NestedContent SlideShowSlide to SlideshowContentBlockSlide";
public string Icon => "icon-brick color-green";
public string Description => "Converts any slides within NestedContent property editors to SlideshowContentBlockSlide.";
public MigrationOptions Options => new MigrationOptions
{
Group = "Convert",
Source = "uSync/v9",
Target = $"{uSyncMigrations.MigrationFolder}/{DateTime.Now:yyyyMMdd_HHmmss}",
Handlers = _migrationHandlers.SelectGroup(8, string.Empty),
SourceVersion = 8,
PreferredMigrators = new Dictionary<string, string>
{
{ Constants.PropertyEditors.Aliases.NestedContent, nameof(NestedContentSlideShowSlideMigrator) },
}
};
}
I have a breakpoint set in the actual migratior which is never hit and so I suspect that the migrator is never executed due to the existence of the NestedContentMigrator that is already a part of the uSyncMigrations package.
Any ideas how I can have this execute in addition (preferably after) the other one?Kevin Jump
08/09/2023, 2:43 PMuSync/v9
folder (or whatever your source folder is) ?
Assuming you do, then looking at it it should hit your migrator - that is how the nested to block list plan works in the core - https://github.com/Jumoo/uSyncMigrations/blob/main/uSync.Migrations/Configuration/CoreProfiles/BlockListMigrationPlan.cs
yours looks almost identical so should work.
does your migrator have a [SyncMigrationVersion]
attribute for v8 (this is short hand for settings the Versions
array, but its easy to overlook, and if you don't explicity say the hanfler is for v8 it won't be loaded by the process
https://github.com/Jumoo/uSyncMigrations/blob/main/uSync.Migrations/Migrators/Optional/NestedToBlockListMigrator.cs#L23ProNotion
08/09/2023, 2:50 PMNestedContentMigrator
as the basis for mine.Kevin Jump
08/09/2023, 2:51 PMProNotion
08/09/2023, 2:53 PMuSync\migrate\migration_data_2023_08_09_165336\migrated
perhaps I need to execute the import again?ProNotion
08/09/2023, 2:55 PMKevin Jump
08/09/2023, 2:55 PMProNotion
08/09/2023, 2:57 PMProNotion
08/09/2023, 2:58 PMKevin Jump
08/09/2023, 2:59 PMProNotion
08/09/2023, 3:03 PMProNotion
08/09/2023, 3:13 PMKevin Jump
08/09/2023, 3:17 PMProNotion
08/09/2023, 3:23 PMProNotion
08/09/2023, 4:07 PMuSync/v9
?Kevin Jump
08/09/2023, 4:08 PMProNotion
08/09/2023, 4:09 PMProNotion
08/10/2023, 5:49 AMProNotion
08/10/2023, 5:50 AMProNotion
08/10/2023, 5:54 AMProNotion
08/10/2023, 6:03 AMProNotion
08/10/2023, 12:01 PMKevin Jump
08/10/2023, 12:15 PMProNotion
08/10/2023, 12:27 PM