Skip to content

How to use SpectrumColorPickerToEyeDropper and EpiphanySeoMetadataToSeparateFields  #281

@marcoteodoro

Description

@marcoteodoro

Hello there! This is probably not an error, but instead a misuse of a great package.

I installed the v8 pack and extracted the zip file. Most of the content was imported correctly, including nested content to grid and block list. However, the only issues I'm facing are with SpectrumColorPickerToEyeDropper and EpiphanySeoMetadataToSeparateFields.

Initially, I used the BlockMigrationPlan Convert Nested Content to BlockList and Grid to BlockGrid, but I realized that the previously mentioned data types were not migrated. I tried to create a custom plan implementing the ISyncMigrationPlan and including these properties, but I keep getting the same warning message in the logs.

I know this was a community package, so I was wondering if someone could help me understand what is missing from my configurations.

image

public class MyMigrationPlan : ISyncMigrationPlan
{
    private readonly SyncMigrationHandlerCollection _migrationHandlers;

    public MyMigrationPlan(SyncMigrationHandlerCollection migrationHandlers)
    {
        _migrationHandlers = migrationHandlers;
    }

    public int Order => 500;

    public string Name => "My custom migration";

    public string Icon => "icon-brick color-green";

    public string Description => "Convert Nested content Grid to BlockList; BlockGrid; ColorPicker and SeoMe ";

    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>
        {
            { PropertyEditors.Aliases.NestedContent, "NestedToBlockListMigrator" },
            { PropertyEditors.Aliases.Grid, "GridToBlockGridMigrator" },
            { nameof(uSync.Migrations.Migrators.Community.SpectrumColorPicker.SpectrumColorPickerToEyeDropper), "Spectrum.Color.Picker" },
            { nameof(uSync.Migrations.Migrators.Community.EpiphanySeoMetadata.EpiphanySeoMetadataToSeparateFields), "Epiphany.SeoMetadata" }
        }
    };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions