Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use SpectrumColorPickerToEyeDropper and EpiphanySeoMetadataToSeparateFields #281

Open
marcoteodoro opened this issue Sep 6, 2024 · 0 comments

Comments

@marcoteodoro
Copy link

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" }
        }
    };
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant