From 2738eb69567058db2aca70d0335c99fac7dc6dfb Mon Sep 17 00:00:00 2001 From: Ronald Barendse Date: Fri, 24 May 2024 16:50:10 +0200 Subject: [PATCH] Fix commented out migrators --- .../CheckBoxListDataTypeArtifactMigrator.cs | 77 +++++------ ...olorPickerAliasDataTypeArtifactMigrator.cs | 90 ++++++------- .../DropDownDataTypeArtifactMigrator.cs | 44 +++---- ...ropDownFlexibleDataTypeArtifactMigrator.cs | 117 +++++++++-------- ...ropDownMultipleDataTypeArtifactMigrator.cs | 44 +++---- ...DownReplaceDataTypeArtifactMigratorBase.cs | 123 +++++++++--------- ...iplePublishKeysDataTypeArtifactMigrator.cs | 44 +++---- ...tPublishingKeysDataTypeArtifactMigrator.cs | 44 +++---- .../MediaPicker2DataTypeArtifactMigrator.cs | 44 +++---- .../MediaPickerDataTypeArtifactMigrator.cs | 66 +++++----- ...ckerReplaceDataTypeArtifactMigratorBase.cs | 123 +++++++++--------- ...ipleMediaPickerDataTypeArtifactMigrator.cs | 44 +++---- ...RadioButtonListDataTypeArtifactMigrator.cs | 105 +++++++-------- .../RelatedLinks2DataTypeArtifactMigrator.cs | 2 +- .../RelatedLinksDataTypeArtifactMigrator.cs | 2 +- .../TinyMCEv3DataTypeArtifactMigrator.cs | 2 +- 16 files changed, 475 insertions(+), 496 deletions(-) diff --git a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/CheckBoxListDataTypeArtifactMigrator.cs b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/CheckBoxListDataTypeArtifactMigrator.cs index e4f0bf5..f2e9c9d 100644 --- a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/CheckBoxListDataTypeArtifactMigrator.cs +++ b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/CheckBoxListDataTypeArtifactMigrator.cs @@ -1,47 +1,40 @@ -//using System.Collections.Generic; -//using Umbraco.Cms.Core; -//using Umbraco.Cms.Core.PropertyEditors; -//using Umbraco.Cms.Core.Semver; -//using Umbraco.Cms.Core.Serialization; -//using Umbraco.Deploy.Infrastructure.Artifacts; -//using Umbraco.Deploy.Infrastructure.Migrators; +using System.Collections.Generic; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Semver; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Deploy.Infrastructure.Artifacts; +using Umbraco.Deploy.Infrastructure.Migrators; -//namespace Umbraco.Deploy.Contrib.Migrators.Legacy; +namespace Umbraco.Deploy.Contrib.Migrators.Legacy; -///// -///// Migrates the to replace the editor configuration from Umbraco 7 to . -///// -//public class CheckBoxListDataTypeArtifactMigrator : DataTypeConfigurationArtifactMigratorBase -//{ -// /// -// /// Initializes a new instance of the class. -// /// -// /// The configuration editor JSON serializer. -// public CheckBoxListDataTypeArtifactMigrator(IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) -// : base(Constants.PropertyEditors.Aliases.CheckBoxList, configurationEditorJsonSerializer) -// => MaxVersion = new SemVersion(3, 0, 0); +/// +/// Migrates the to replace the editor configuration from Umbraco 7 to . +/// +public class CheckBoxListDataTypeArtifactMigrator : DataTypeConfigurationArtifactMigratorBase +{ + /// + /// Initializes a new instance of the class. + /// + /// The property editors. + /// The configuration editor JSON serializer. + public CheckBoxListDataTypeArtifactMigrator(PropertyEditorCollection propertyEditors, IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) + : base(Constants.PropertyEditors.Aliases.CheckBoxList, propertyEditors, configurationEditorJsonSerializer) + => MaxVersion = new SemVersion(3, 0, 0); -// /// -// protected override ValueListConfiguration? MigrateConfiguration(IDictionary fromConfiguration) -// { -// var toConfiguration = new ValueListConfiguration(); + /// + protected override ValueListConfiguration? MigrateConfigurationObject(IDictionary fromConfiguration) + { + var toConfiguration = new ValueListConfiguration(); -// foreach (var (key, value) in fromConfiguration) -// { -// if (int.TryParse(key, out var id) && value is not null) -// { -// toConfiguration.Items.Add(new ValueListConfiguration.ValueListItem() -// { -// Id = id, -// Value = value.ToString() -// }); -// } -// } + foreach (var (key, value) in fromConfiguration) + { + if (int.TryParse(key, out _) && value is string itemValue) + { + toConfiguration.Items.Add(itemValue); + } + } -// return toConfiguration; -// } - -// /// -// protected override ValueListConfiguration? GetDefaultConfiguration() -// => new ValueListConfiguration(); -//} + return toConfiguration; + } +} diff --git a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/ColorPickerAliasDataTypeArtifactMigrator.cs b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/ColorPickerAliasDataTypeArtifactMigrator.cs index 6c4ae4c..5fc78cc 100644 --- a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/ColorPickerAliasDataTypeArtifactMigrator.cs +++ b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/ColorPickerAliasDataTypeArtifactMigrator.cs @@ -1,51 +1,51 @@ -//using System.Collections.Generic; -//using Umbraco.Cms.Core; -//using Umbraco.Cms.Core.PropertyEditors; -//using Umbraco.Cms.Core.Semver; -//using Umbraco.Cms.Core.Serialization; -//using Umbraco.Deploy.Infrastructure.Artifacts; -//using Umbraco.Deploy.Infrastructure.Migrators; +using System.Collections.Generic; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Semver; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Deploy.Infrastructure.Artifacts; +using Umbraco.Deploy.Infrastructure.Migrators; -//namespace Umbraco.Deploy.Contrib.Migrators.Legacy; +namespace Umbraco.Deploy.Contrib.Migrators.Legacy; -///// -///// Migrates the to replace the editor with and the configuration from Umbraco 7 to . -///// -//public class ColorPickerAliasDataTypeArtifactMigrator : ReplaceDataTypeArtifactMigratorBase -//{ -// private const string FromEditorAlias = "Umbraco.ColorPickerAlias"; -// private const string TrueValue = "1"; +/// +/// Migrates the to replace the editor with and the configuration from Umbraco 7 to . +/// +public class ColorPickerAliasDataTypeArtifactMigrator : ReplaceDataTypeArtifactMigratorBase +{ + private const string FromEditorAlias = "Umbraco.ColorPickerAlias"; + private const string TrueValue = "1"; -// /// -// /// Initializes a new instance of the class. -// /// -// /// The property editors. -// /// The configuration editor JSON serializer. -// public ColorPickerAliasDataTypeArtifactMigrator(PropertyEditorCollection propertyEditors, IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) -// : base(FromEditorAlias, Constants.PropertyEditors.Aliases.ColorPicker, propertyEditors, configurationEditorJsonSerializer) -// => MaxVersion = new SemVersion(3, 0, 0); + /// + /// Initializes a new instance of the class. + /// + /// The property editors. + /// The configuration editor JSON serializer. + public ColorPickerAliasDataTypeArtifactMigrator(PropertyEditorCollection propertyEditors, IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) + : base(FromEditorAlias, Constants.PropertyEditors.Aliases.ColorPicker, propertyEditors, configurationEditorJsonSerializer) + => MaxVersion = new SemVersion(3, 0, 0); -// /// -// protected override ColorPickerConfiguration? MigrateConfiguration(IDictionary fromConfiguration) -// { -// var toConfiguration = new ColorPickerConfiguration(); + /// + protected override ColorPickerConfiguration? MigrateConfigurationObject(IDictionary fromConfiguration) + { + var toConfiguration = new ColorPickerConfiguration(); -// foreach (var (key, value) in fromConfiguration) -// { -// if (key == "useLabel") -// { -// toConfiguration.UseLabel = TrueValue.Equals(value); -// } -// else if (int.TryParse(key, out var id) && value is not null) -// { -// toConfiguration.Items.Add(new ValueListConfiguration.ValueListItem() -// { -// Id = id, -// Value = value.ToString() -// }); -// } -// } + foreach (var (key, value) in fromConfiguration) + { + if (key == "useLabel") + { + toConfiguration.UseLabel = TrueValue.Equals(value); + } + else if (int.TryParse(key, out _) && value is string itemValue) + { + toConfiguration.Items.Add(new ColorPickerConfiguration.ColorPickerItem() + { + Label = itemValue, + Value = itemValue, + }); + } + } -// return toConfiguration; -// } -//} + return toConfiguration; + } +} diff --git a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/DropDownDataTypeArtifactMigrator.cs b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/DropDownDataTypeArtifactMigrator.cs index 390b923..f387f74 100644 --- a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/DropDownDataTypeArtifactMigrator.cs +++ b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/DropDownDataTypeArtifactMigrator.cs @@ -1,26 +1,26 @@ -//using Umbraco.Cms.Core; -//using Umbraco.Cms.Core.PropertyEditors; -//using Umbraco.Cms.Core.Serialization; -//using Umbraco.Deploy.Infrastructure.Artifacts; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Deploy.Infrastructure.Artifacts; -//namespace Umbraco.Deploy.Contrib.Migrators.Legacy; +namespace Umbraco.Deploy.Contrib.Migrators.Legacy; -///// -///// Migrates the to replace the editor with and the configuration from Umbraco 7 to . -///// -//public class DropDownDataTypeArtifactMigrator : DropDownReplaceDataTypeArtifactMigratorBase -//{ -// private const string FromEditorAlias = "Umbraco.DropDown"; +/// +/// Migrates the to replace the editor with and the configuration from Umbraco 7 to . +/// +public class DropDownDataTypeArtifactMigrator : DropDownReplaceDataTypeArtifactMigratorBase +{ + private const string FromEditorAlias = "Umbraco.DropDown"; -// /// -// protected override bool Multiple => false; + /// + protected override bool Multiple => false; -// /// -// /// Initializes a new instance of the class. -// /// -// /// The property editors. -// /// The configuration editor JSON serializer. -// public DropDownDataTypeArtifactMigrator(PropertyEditorCollection propertyEditors, IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) -// : base(FromEditorAlias, propertyEditors, configurationEditorJsonSerializer) -// { } -//} + /// + /// Initializes a new instance of the class. + /// + /// The property editors. + /// The configuration editor JSON serializer. + public DropDownDataTypeArtifactMigrator(PropertyEditorCollection propertyEditors, IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) + : base(FromEditorAlias, propertyEditors, configurationEditorJsonSerializer) + { } +} diff --git a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/DropDownFlexibleDataTypeArtifactMigrator.cs b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/DropDownFlexibleDataTypeArtifactMigrator.cs index 3bbe250..5edc7d3 100644 --- a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/DropDownFlexibleDataTypeArtifactMigrator.cs +++ b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/DropDownFlexibleDataTypeArtifactMigrator.cs @@ -1,59 +1,58 @@ -//using System.Collections.Generic; -//using Umbraco.Cms.Core; -//using Umbraco.Cms.Core.PropertyEditors; -//using Umbraco.Cms.Core.Semver; -//using Umbraco.Cms.Core.Serialization; -//using Umbraco.Deploy.Infrastructure.Artifacts; -//using Umbraco.Deploy.Infrastructure.Migrators; - -//namespace Umbraco.Deploy.Contrib.Migrators.Legacy; - -///// -///// Migrates the to replace the configuration of the editor from Umbraco 7 to . -///// -//public class DropDownFlexibleDataTypeArtifactMigrator : DataTypeConfigurationArtifactMigratorBase -//{ -// private const string TrueValue = "1"; - -// /// -// /// Initializes a new instance of the class. -// /// -// /// The configuration editor JSON serializer. -// public DropDownFlexibleDataTypeArtifactMigrator(IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) -// : base(Constants.PropertyEditors.Aliases.DropDownListFlexible, configurationEditorJsonSerializer) -// => MaxVersion = new SemVersion(3, 0, 0); - -// /// -// protected override DropDownFlexibleConfiguration? MigrateConfiguration(IDictionary fromConfiguration) -// { -// var toConfiguration = new DropDownFlexibleConfiguration() -// { -// Multiple = true -// }; - -// foreach (var (key, value) in fromConfiguration) -// { -// if (key == "multiple") -// { -// toConfiguration.Multiple = TrueValue.Equals(value); -// } -// else if (int.TryParse(key, out var id) && value is not null) -// { -// toConfiguration.Items.Add(new ValueListConfiguration.ValueListItem() -// { -// Id = id, -// Value = value.ToString() -// }); -// } -// } - -// return toConfiguration; -// } - -// /// -// protected override DropDownFlexibleConfiguration? GetDefaultConfiguration() -// => new DropDownFlexibleConfiguration() -// { -// Multiple = true -// }; -//} +using System.Collections.Generic; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Semver; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Deploy.Infrastructure.Artifacts; +using Umbraco.Deploy.Infrastructure.Migrators; + +namespace Umbraco.Deploy.Contrib.Migrators.Legacy; + +/// +/// Migrates the to replace the configuration of the editor from Umbraco 7 to . +/// +public class DropDownFlexibleDataTypeArtifactMigrator : DataTypeConfigurationArtifactMigratorBase +{ + private const string TrueValue = "1"; + + /// + /// Initializes a new instance of the class. + /// + /// The property editors. + /// The configuration editor JSON serializer. + public DropDownFlexibleDataTypeArtifactMigrator(PropertyEditorCollection propertyEditors, IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) + : base(Constants.PropertyEditors.Aliases.DropDownListFlexible, propertyEditors, configurationEditorJsonSerializer) + => MaxVersion = new SemVersion(3, 0, 0); + + /// + protected override DropDownFlexibleConfiguration? MigrateConfigurationObject(IDictionary fromConfiguration) + { + var toConfiguration = new DropDownFlexibleConfiguration() + { + Multiple = true + }; + + foreach (var (key, value) in fromConfiguration) + { + if (key == "multiple") + { + toConfiguration.Multiple = TrueValue.Equals(value); + } + else if (int.TryParse(key, out _) && value is string itemValue) + { + toConfiguration.Items.Add(itemValue); + } + } + + return toConfiguration; + } + + /// + protected override IDictionary GetDefaultConfiguration(IConfigurationEditor configurationEditor) + { + var configuration = base.GetDefaultConfiguration(configurationEditor); + configuration["multiple"] = true; + + return configuration; + } +} diff --git a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/DropDownMultipleDataTypeArtifactMigrator.cs b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/DropDownMultipleDataTypeArtifactMigrator.cs index 99516cd..418bc3b 100644 --- a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/DropDownMultipleDataTypeArtifactMigrator.cs +++ b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/DropDownMultipleDataTypeArtifactMigrator.cs @@ -1,26 +1,26 @@ -//using Umbraco.Cms.Core; -//using Umbraco.Cms.Core.PropertyEditors; -//using Umbraco.Cms.Core.Serialization; -//using Umbraco.Deploy.Infrastructure.Artifacts; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Deploy.Infrastructure.Artifacts; -//namespace Umbraco.Deploy.Contrib.Migrators.Legacy; +namespace Umbraco.Deploy.Contrib.Migrators.Legacy; -///// -///// Migrates the to replace the editor with and the configuration from Umbraco 7 to . -///// -//public class DropDownMultipleDataTypeArtifactMigrator : DropDownReplaceDataTypeArtifactMigratorBase -//{ -// private const string FromEditorAlias = "Umbraco.DropDownMultiple"; +/// +/// Migrates the to replace the editor with and the configuration from Umbraco 7 to . +/// +public class DropDownMultipleDataTypeArtifactMigrator : DropDownReplaceDataTypeArtifactMigratorBase +{ + private const string FromEditorAlias = "Umbraco.DropDownMultiple"; -// /// -// protected override bool Multiple => true; + /// + protected override bool Multiple => true; -// /// -// /// Initializes a new instance of the class. -// /// -// /// The property editors. -// /// The configuration editor JSON serializer. -// public DropDownMultipleDataTypeArtifactMigrator(PropertyEditorCollection propertyEditors, IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) -// : base(FromEditorAlias, propertyEditors, configurationEditorJsonSerializer) -// { } -//} + /// + /// Initializes a new instance of the class. + /// + /// The property editors. + /// The configuration editor JSON serializer. + public DropDownMultipleDataTypeArtifactMigrator(PropertyEditorCollection propertyEditors, IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) + : base(FromEditorAlias, propertyEditors, configurationEditorJsonSerializer) + { } +} diff --git a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/DropDownReplaceDataTypeArtifactMigratorBase.cs b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/DropDownReplaceDataTypeArtifactMigratorBase.cs index a17baf5..2707001 100644 --- a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/DropDownReplaceDataTypeArtifactMigratorBase.cs +++ b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/DropDownReplaceDataTypeArtifactMigratorBase.cs @@ -1,74 +1,67 @@ -//using System.Collections.Generic; -//using Umbraco.Cms.Core; -//using Umbraco.Cms.Core.PropertyEditors; -//using Umbraco.Cms.Core.Semver; -//using Umbraco.Cms.Core.Serialization; -//using Umbraco.Deploy.Infrastructure.Artifacts; -//using Umbraco.Deploy.Infrastructure.Migrators; +using System.Collections.Generic; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Semver; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Deploy.Infrastructure.Artifacts; +using Umbraco.Deploy.Infrastructure.Migrators; -//namespace Umbraco.Deploy.Contrib.Migrators.Legacy; +namespace Umbraco.Deploy.Contrib.Migrators.Legacy; -///// -///// Migrates the to replace the editor alias with and the configuration from Umbraco 7 to . -///// -//public abstract class DropDownReplaceDataTypeArtifactMigratorBase : ReplaceDataTypeArtifactMigratorBase -//{ -// private const string TrueValue = "1"; +/// +/// Migrates the to replace the editor alias with and the configuration from Umbraco 7 to . +/// +public abstract class DropDownReplaceDataTypeArtifactMigratorBase : ReplaceDataTypeArtifactMigratorBase +{ + private const string TrueValue = "1"; -// /// -// /// Gets a value indicating whether the configuration allows multiple items to be selected. -// /// -// /// -// /// true if multiple items can be selected; otherwise, false. -// /// -// protected abstract bool Multiple { get; } + /// + /// Gets a value indicating whether the configuration allows multiple items to be selected. + /// + /// + /// true if multiple items can be selected; otherwise, false. + /// + protected abstract bool Multiple { get; } -// /// -// /// Initializes a new instance of the class. -// /// -// /// The editor alias to migrate from. -// /// The property editors. -// /// The configuration editor JSON serializer. -// protected DropDownReplaceDataTypeArtifactMigratorBase(string fromEditorAlias, PropertyEditorCollection propertyEditors, IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) -// : base(fromEditorAlias, Constants.PropertyEditors.Aliases.DropDownListFlexible, propertyEditors, configurationEditorJsonSerializer) -// => MaxVersion = new SemVersion(3, 0, 0); + /// + /// Initializes a new instance of the class. + /// + /// The editor alias to migrate from. + /// The property editors. + /// The configuration editor JSON serializer. + protected DropDownReplaceDataTypeArtifactMigratorBase(string fromEditorAlias, PropertyEditorCollection propertyEditors, IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) + : base(fromEditorAlias, Constants.PropertyEditors.Aliases.DropDownListFlexible, propertyEditors, configurationEditorJsonSerializer) + => MaxVersion = new SemVersion(3, 0, 0); -// /// -// protected override DropDownFlexibleConfiguration? MigrateConfiguration(IDictionary fromConfiguration) -// { -// var toConfiguration = new DropDownFlexibleConfiguration() -// { -// Multiple = Multiple -// }; + /// + protected override DropDownFlexibleConfiguration? MigrateConfigurationObject(IDictionary fromConfiguration) + { + var toConfiguration = new DropDownFlexibleConfiguration() + { + Multiple = Multiple + }; -// foreach (var (key, value) in fromConfiguration) -// { -// if (key == "multiple") -// { -// toConfiguration.Multiple = TrueValue.Equals(value); -// } -// else if (int.TryParse(key, out var id) && value is not null) -// { -// toConfiguration.Items.Add(new ValueListConfiguration.ValueListItem() -// { -// Id = id, -// Value = value.ToString() -// }); -// } -// } + foreach (var (key, value) in fromConfiguration) + { + if (key == "multiple") + { + toConfiguration.Multiple = TrueValue.Equals(value); + } + else if (int.TryParse(key, out _) && value?.ToString() is string itemValue) + { + toConfiguration.Items.Add(itemValue); + } + } -// return toConfiguration; -// } + return toConfiguration; + } -// /// -// protected override DropDownFlexibleConfiguration? GetDefaultConfiguration(IConfigurationEditor toConfigurationEditor) -// { -// var configuration = base.GetDefaultConfiguration(toConfigurationEditor); -// if (configuration is not null) -// { -// configuration.Multiple = Multiple; -// } + /// + protected override IDictionary GetDefaultConfiguration(IConfigurationEditor toConfigurationEditor) + { + var configuration = base.GetDefaultConfiguration(toConfigurationEditor); + configuration["multiple"] = Multiple; -// return configuration; -// } -//} + return configuration; + } +} diff --git a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/DropdownlistMultiplePublishKeysDataTypeArtifactMigrator.cs b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/DropdownlistMultiplePublishKeysDataTypeArtifactMigrator.cs index 167b6af..1cb7fba 100644 --- a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/DropdownlistMultiplePublishKeysDataTypeArtifactMigrator.cs +++ b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/DropdownlistMultiplePublishKeysDataTypeArtifactMigrator.cs @@ -1,26 +1,26 @@ -//using Umbraco.Cms.Core; -//using Umbraco.Cms.Core.PropertyEditors; -//using Umbraco.Cms.Core.Serialization; -//using Umbraco.Deploy.Infrastructure.Artifacts; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Deploy.Infrastructure.Artifacts; -//namespace Umbraco.Deploy.Contrib.Migrators.Legacy; +namespace Umbraco.Deploy.Contrib.Migrators.Legacy; -///// -///// Migrates the to replace the editor with and the configuration from Umbraco 7 to . -///// -//public class DropdownlistMultiplePublishKeysDataTypeArtifactMigrator : DropDownReplaceDataTypeArtifactMigratorBase -//{ -// private const string FromEditorAlias = "Umbraco.DropdownlistMultiplePublishKeys"; +/// +/// Migrates the to replace the editor with and the configuration from Umbraco 7 to . +/// +public class DropdownlistMultiplePublishKeysDataTypeArtifactMigrator : DropDownReplaceDataTypeArtifactMigratorBase +{ + private const string FromEditorAlias = "Umbraco.DropdownlistMultiplePublishKeys"; -// /// -// protected override bool Multiple => true; + /// + protected override bool Multiple => true; -// /// -// /// Initializes a new instance of the class. -// /// -// /// The property editors. -// /// The configuration editor JSON serializer. -// public DropdownlistMultiplePublishKeysDataTypeArtifactMigrator(PropertyEditorCollection propertyEditors, IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) -// : base(FromEditorAlias, propertyEditors, configurationEditorJsonSerializer) -// { } -//} + /// + /// Initializes a new instance of the class. + /// + /// The property editors. + /// The configuration editor JSON serializer. + public DropdownlistMultiplePublishKeysDataTypeArtifactMigrator(PropertyEditorCollection propertyEditors, IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) + : base(FromEditorAlias, propertyEditors, configurationEditorJsonSerializer) + { } +} diff --git a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/DropdownlistPublishingKeysDataTypeArtifactMigrator.cs b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/DropdownlistPublishingKeysDataTypeArtifactMigrator.cs index 6ec5d25..eb2da3c 100644 --- a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/DropdownlistPublishingKeysDataTypeArtifactMigrator.cs +++ b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/DropdownlistPublishingKeysDataTypeArtifactMigrator.cs @@ -1,26 +1,26 @@ -//using Umbraco.Cms.Core; -//using Umbraco.Cms.Core.PropertyEditors; -//using Umbraco.Cms.Core.Serialization; -//using Umbraco.Deploy.Infrastructure.Artifacts; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Deploy.Infrastructure.Artifacts; -//namespace Umbraco.Deploy.Contrib.Migrators.Legacy; +namespace Umbraco.Deploy.Contrib.Migrators.Legacy; -///// -///// Migrates the to replace the editor with and the configuration from Umbraco 7 to . -///// -//public class DropdownlistPublishingKeysDataTypeArtifactMigrator : DropDownReplaceDataTypeArtifactMigratorBase -//{ -// private const string FromEditorAlias = "Umbraco.DropdownlistPublishingKeys"; +/// +/// Migrates the to replace the editor with and the configuration from Umbraco 7 to . +/// +public class DropdownlistPublishingKeysDataTypeArtifactMigrator : DropDownReplaceDataTypeArtifactMigratorBase +{ + private const string FromEditorAlias = "Umbraco.DropdownlistPublishingKeys"; -// /// -// protected override bool Multiple => false; + /// + protected override bool Multiple => false; -// /// -// /// Initializes a new instance of the class. -// /// -// /// The property editors. -// /// The configuration editor JSON serializer. -// public DropdownlistPublishingKeysDataTypeArtifactMigrator(PropertyEditorCollection propertyEditors, IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) -// : base(FromEditorAlias, propertyEditors, configurationEditorJsonSerializer) -// { } -//} + /// + /// Initializes a new instance of the class. + /// + /// The property editors. + /// The configuration editor JSON serializer. + public DropdownlistPublishingKeysDataTypeArtifactMigrator(PropertyEditorCollection propertyEditors, IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) + : base(FromEditorAlias, propertyEditors, configurationEditorJsonSerializer) + { } +} diff --git a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/MediaPicker2DataTypeArtifactMigrator.cs b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/MediaPicker2DataTypeArtifactMigrator.cs index 7ab7078..4f12128 100644 --- a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/MediaPicker2DataTypeArtifactMigrator.cs +++ b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/MediaPicker2DataTypeArtifactMigrator.cs @@ -1,26 +1,26 @@ -//using Umbraco.Cms.Core; -//using Umbraco.Cms.Core.PropertyEditors; -//using Umbraco.Cms.Core.Serialization; -//using Umbraco.Deploy.Infrastructure.Artifacts; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Deploy.Infrastructure.Artifacts; -//namespace Umbraco.Deploy.Contrib.Migrators.Legacy; +namespace Umbraco.Deploy.Contrib.Migrators.Legacy; -///// -///// Migrates the to replace the editor with and the configuration from Umbraco 7 to . -///// -//public class MediaPicker2DataTypeArtifactMigrator : MediaPickerReplaceDataTypeArtifactMigratorBase -//{ -// private const string FromEditorAlias = "Umbraco.MediaPicker2"; +/// +/// Migrates the to replace the editor with and the configuration from Umbraco 7. +/// +public class MediaPicker2DataTypeArtifactMigrator : MediaPickerReplaceDataTypeArtifactMigratorBase +{ + private const string FromEditorAlias = "Umbraco.MediaPicker2"; -// /// -// protected override bool Multiple => false; + /// + protected override bool Multiple => false; -// /// -// /// Initializes a new instance of the class. -// /// -// /// The property editors. -// /// The configuration editor JSON serializer. -// public MediaPicker2DataTypeArtifactMigrator(PropertyEditorCollection propertyEditors, IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) -// : base(FromEditorAlias, propertyEditors, configurationEditorJsonSerializer) -// { } -//} + /// + /// Initializes a new instance of the class. + /// + /// The property editors. + /// The configuration editor JSON serializer. + public MediaPicker2DataTypeArtifactMigrator(PropertyEditorCollection propertyEditors, IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) + : base(FromEditorAlias, propertyEditors, configurationEditorJsonSerializer) + { } +} diff --git a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/MediaPickerDataTypeArtifactMigrator.cs b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/MediaPickerDataTypeArtifactMigrator.cs index 5cb5698..63f049d 100644 --- a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/MediaPickerDataTypeArtifactMigrator.cs +++ b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/MediaPickerDataTypeArtifactMigrator.cs @@ -1,35 +1,39 @@ -//using System.Collections.Generic; -//using Umbraco.Cms.Core; -//using Umbraco.Cms.Core.Semver; -//using Umbraco.Cms.Core.Serialization; -//using Umbraco.Deploy.Infrastructure.Artifacts; -//using Umbraco.Deploy.Infrastructure.Migrators; +using System.Collections.Generic; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Semver; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Deploy.Infrastructure.Artifacts; +using Umbraco.Deploy.Infrastructure.Migrators; -//namespace Umbraco.Deploy.Contrib.Migrators.Legacy; +namespace Umbraco.Deploy.Contrib.Migrators.Legacy; -///// -///// Migrates the to update the editor configuration. -///// -//public class MediaPickerDataTypeArtifactMigrator : DataTypeConfigurationArtifactMigratorBase -//{ -// /// -// /// Initializes a new instance of the class. -// /// -// /// The configuration editor JSON serializer. -// public MediaPickerDataTypeArtifactMigrator(IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) -// : base(Constants.PropertyEditors.Aliases.MediaPicker, configurationEditorJsonSerializer) -// => MaxVersion = new SemVersion(3, 0, 0); +/// +/// Migrates the to update the editor configuration. +/// +public class MediaPickerDataTypeArtifactMigrator : DataTypeConfigurationArtifactMigratorBase +{ + private const string EditorAlias = "Umbraco.MediaPicker"; // TODO: Use DeployConstants.PropertyEditors.Legacy.Aliases.MediaPicker once made public -// /// -// protected override IDictionary? MigrateConfiguration(IDictionary fromConfiguration) -// { -// if (fromConfiguration.TryGetValue("startNodeId", out var startNodeIdValue) && -// (startNodeIdValue?.ToString() is not string startNodeId || !UdiParser.TryParse(startNodeId, out _))) -// { -// // Remove invalid start node ID -// fromConfiguration.Remove("startNodeId"); -// } + /// + /// Initializes a new instance of the class. + /// + /// The property editors. + /// The configuration editor JSON serializer. + public MediaPickerDataTypeArtifactMigrator(PropertyEditorCollection propertyEditors, IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) + : base(EditorAlias, propertyEditors, configurationEditorJsonSerializer) + => MaxVersion = new SemVersion(3, 0, 0); -// return fromConfiguration; -// } -//} + /// + protected override IDictionary? MigrateConfiguration(IDictionary fromConfiguration) + { + if (fromConfiguration.TryGetValue("startNodeId", out var startNodeIdValue) && + (startNodeIdValue?.ToString() is not string startNodeId || !UdiParser.TryParse(startNodeId, out _))) + { + // Remove invalid start node ID + fromConfiguration.Remove("startNodeId"); + } + + return fromConfiguration; + } +} diff --git a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/MediaPickerReplaceDataTypeArtifactMigratorBase.cs b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/MediaPickerReplaceDataTypeArtifactMigratorBase.cs index a4d49b9..1ecb3b1 100644 --- a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/MediaPickerReplaceDataTypeArtifactMigratorBase.cs +++ b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/MediaPickerReplaceDataTypeArtifactMigratorBase.cs @@ -1,63 +1,60 @@ -//using System.Collections.Generic; -//using Umbraco.Cms.Core; -//using Umbraco.Cms.Core.PropertyEditors; -//using Umbraco.Cms.Core.Semver; -//using Umbraco.Cms.Core.Serialization; -//using Umbraco.Deploy.Infrastructure.Artifacts; -//using Umbraco.Deploy.Infrastructure.Migrators; - -//namespace Umbraco.Deploy.Contrib.Migrators.Legacy; - -///// -///// Migrates the to replace the editor alias with and update the configuration. -///// -//public abstract class MediaPickerReplaceDataTypeArtifactMigratorBase : ReplaceDataTypeArtifactMigratorBase -//{ -// /// -// /// Gets a value indicating whether the configuration allows multiple items to be picked. -// /// -// /// -// /// true if multiple items can be picked; otherwise, false. -// /// -// protected abstract bool Multiple { get; } - -// /// -// /// Initializes a new instance of the class. -// /// -// /// From editor alias. -// /// The property editors. -// /// The configuration editor JSON serializer. -// protected MediaPickerReplaceDataTypeArtifactMigratorBase(string fromEditorAlias, PropertyEditorCollection propertyEditors, IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) -// : base(fromEditorAlias, Constants.PropertyEditors.Aliases.MediaPicker, propertyEditors, configurationEditorJsonSerializer) -// => MaxVersion = new SemVersion(3, 0, 0); - -// /// -// protected override IDictionary? MigrateConfiguration(IDictionary configuration) -// { -// if (!configuration.ContainsKey("multiPicker")) -// { -// configuration["multiPicker"] = Multiple; -// } - -// if (configuration.TryGetValue("startNodeId", out var startNodeIdValue) && -// (startNodeIdValue?.ToString() is not string startNodeId || !UdiParser.TryParse(startNodeId, out _))) -// { -// // Remove invalid start node ID -// configuration.Remove("startNodeId"); -// } - -// return configuration; -// } - -// /// -// protected override IDictionary? GetDefaultConfiguration(IConfigurationEditor toConfigurationEditor) -// { -// var configuration = base.GetDefaultConfiguration(toConfigurationEditor); -// if (configuration is not null) -// { -// configuration["multiPicker"] = Multiple; -// } - -// return configuration; -// } -//} +using System.Collections.Generic; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Semver; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Deploy.Infrastructure.Artifacts; +using Umbraco.Deploy.Infrastructure.Migrators; + +namespace Umbraco.Deploy.Contrib.Migrators.Legacy; + +/// +/// Migrates the to replace the editor alias with and update the configuration. +/// +public abstract class MediaPickerReplaceDataTypeArtifactMigratorBase : ReplaceDataTypeArtifactMigratorBase +{ + /// + /// Gets a value indicating whether the configuration allows multiple items to be picked. + /// + /// + /// true if multiple items can be picked; otherwise, false. + /// + protected abstract bool Multiple { get; } + + /// + /// Initializes a new instance of the class. + /// + /// From editor alias. + /// The property editors. + /// The configuration editor JSON serializer. + protected MediaPickerReplaceDataTypeArtifactMigratorBase(string fromEditorAlias, PropertyEditorCollection propertyEditors, IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) + : base(fromEditorAlias, Constants.PropertyEditors.Aliases.MediaPicker3, propertyEditors, configurationEditorJsonSerializer) + => MaxVersion = new SemVersion(3, 0, 0); + + /// + protected override IDictionary? MigrateConfiguration(IDictionary configuration) + { + if (!configuration.ContainsKey("multiPicker")) + { + configuration["multiPicker"] = Multiple; + } + + if (configuration.TryGetValue("startNodeId", out var startNodeIdValue) && + (startNodeIdValue?.ToString() is not string startNodeId || !UdiParser.TryParse(startNodeId, out _))) + { + // Remove invalid start node ID + configuration.Remove("startNodeId"); + } + + return configuration; + } + + /// + protected override IDictionary GetDefaultConfiguration(IConfigurationEditor toConfigurationEditor) + { + var configuration = base.GetDefaultConfiguration(toConfigurationEditor); + configuration["multiPicker"] = Multiple; + + return configuration; + } +} diff --git a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/MultipleMediaPickerDataTypeArtifactMigrator.cs b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/MultipleMediaPickerDataTypeArtifactMigrator.cs index 5669a52..28edfa8 100644 --- a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/MultipleMediaPickerDataTypeArtifactMigrator.cs +++ b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/MultipleMediaPickerDataTypeArtifactMigrator.cs @@ -1,26 +1,26 @@ -//using Umbraco.Cms.Core; -//using Umbraco.Cms.Core.PropertyEditors; -//using Umbraco.Cms.Core.Serialization; -//using Umbraco.Deploy.Infrastructure.Artifacts; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Deploy.Infrastructure.Artifacts; -//namespace Umbraco.Deploy.Contrib.Migrators.Legacy; +namespace Umbraco.Deploy.Contrib.Migrators.Legacy; -///// -///// Migrates the to replace the editor with and update the configuration. -///// -//public class MultipleMediaPickerDataTypeArtifactMigrator : MediaPickerReplaceDataTypeArtifactMigratorBase -//{ -// private const string FromEditorAlias = "Umbraco.MultipleMediaPicker"; +/// +/// Migrates the to replace the editor with and update the configuration. +/// +public class MultipleMediaPickerDataTypeArtifactMigrator : MediaPickerReplaceDataTypeArtifactMigratorBase +{ + private const string FromEditorAlias = "Umbraco.MultipleMediaPicker"; -// /// -// protected override bool Multiple => true; + /// + protected override bool Multiple => true; -// /// -// /// Initializes a new instance of the class. -// /// -// /// The property editors. -// /// The configuration editor JSON serializer. -// public MultipleMediaPickerDataTypeArtifactMigrator(PropertyEditorCollection propertyEditors, IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) -// : base(FromEditorAlias, propertyEditors, configurationEditorJsonSerializer) -// { } -//} + /// + /// Initializes a new instance of the class. + /// + /// The property editors. + /// The configuration editor JSON serializer. + public MultipleMediaPickerDataTypeArtifactMigrator(PropertyEditorCollection propertyEditors, IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) + : base(FromEditorAlias, propertyEditors, configurationEditorJsonSerializer) + { } +} diff --git a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/RadioButtonListDataTypeArtifactMigrator.cs b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/RadioButtonListDataTypeArtifactMigrator.cs index aa73600..f80478c 100644 --- a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/RadioButtonListDataTypeArtifactMigrator.cs +++ b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/RadioButtonListDataTypeArtifactMigrator.cs @@ -1,56 +1,49 @@ -//using System.Collections.Generic; -//using Umbraco.Cms.Core; -//using Umbraco.Cms.Core.Models; -//using Umbraco.Cms.Core.PropertyEditors; -//using Umbraco.Cms.Core.Semver; -//using Umbraco.Cms.Core.Serialization; -//using Umbraco.Deploy.Infrastructure.Artifacts; -//using Umbraco.Deploy.Infrastructure.Migrators; - -//namespace Umbraco.Deploy.Contrib.Migrators.Legacy; - -///// -///// Migrates the to replace the configuration of the editor from Umbraco 7 to . -///// -//public class RadioButtonListDataTypeArtifactMigrator : DataTypeConfigurationArtifactMigratorBase -//{ -// /// -// /// Initializes a new instance of the class. -// /// -// /// The configuration editor JSON serializer. -// public RadioButtonListDataTypeArtifactMigrator(IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) -// : base(Constants.PropertyEditors.Aliases.RadioButtonList, configurationEditorJsonSerializer) -// => MaxVersion = new SemVersion(3, 0, 0); - -// /// -// protected override DataTypeArtifact? Migrate(DataTypeArtifact artifact) -// { -// artifact.DatabaseType = ValueStorageType.Nvarchar; - -// return base.Migrate(artifact); -// } - -// /// -// protected override ValueListConfiguration? MigrateConfiguration(IDictionary fromConfiguration) -// { -// var toConfiguration = new ValueListConfiguration(); - -// foreach (var (key, value) in fromConfiguration) -// { -// if (int.TryParse(key, out var id) && value is not null) -// { -// toConfiguration.Items.Add(new ValueListConfiguration.ValueListItem() -// { -// Id = id, -// Value = value.ToString() -// }); -// } -// } - -// return toConfiguration; -// } - -// /// -// protected override ValueListConfiguration? GetDefaultConfiguration() -// => new ValueListConfiguration(); -//} +using System.Collections.Generic; +using Umbraco.Cms.Core; +using Umbraco.Cms.Core.Models; +using Umbraco.Cms.Core.PropertyEditors; +using Umbraco.Cms.Core.Semver; +using Umbraco.Cms.Core.Serialization; +using Umbraco.Deploy.Infrastructure.Artifacts; +using Umbraco.Deploy.Infrastructure.Migrators; + +namespace Umbraco.Deploy.Contrib.Migrators.Legacy; + +/// +/// Migrates the to replace the configuration of the editor from Umbraco 7 to . +/// +public class RadioButtonListDataTypeArtifactMigrator : DataTypeConfigurationArtifactMigratorBase +{ + /// + /// Initializes a new instance of the class. + /// + /// The property editors. + /// The configuration editor JSON serializer. + public RadioButtonListDataTypeArtifactMigrator(PropertyEditorCollection propertyEditors, IConfigurationEditorJsonSerializer configurationEditorJsonSerializer) + : base(Constants.PropertyEditors.Aliases.RadioButtonList, propertyEditors, configurationEditorJsonSerializer) + => MaxVersion = new SemVersion(3, 0, 0); + + /// + protected override DataTypeArtifact? Migrate(DataTypeArtifact artifact) + { + artifact.DatabaseType = ValueStorageType.Nvarchar; + + return base.Migrate(artifact); + } + + /// + protected override ValueListConfiguration? MigrateConfigurationObject(IDictionary fromConfiguration) + { + var toConfiguration = new ValueListConfiguration(); + + foreach (var (key, value) in fromConfiguration) + { + if (int.TryParse(key, out _) && value is string itemValue) + { + toConfiguration.Items.Add(itemValue); + } + } + + return toConfiguration; + } +} diff --git a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/RelatedLinks2DataTypeArtifactMigrator.cs b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/RelatedLinks2DataTypeArtifactMigrator.cs index 0ea6d5b..ab28cf9 100644 --- a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/RelatedLinks2DataTypeArtifactMigrator.cs +++ b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/RelatedLinks2DataTypeArtifactMigrator.cs @@ -7,7 +7,7 @@ namespace Umbraco.Deploy.Contrib.Migrators.Legacy; /// -/// Migrates the to replace the editor with and the configuration from Umbraco 7 to . +/// Migrates the to replace the editor with and the configuration from Umbraco 7. /// public class RelatedLinks2DataTypeArtifactMigrator : MultiUrlPickerReplaceDataTypeArtifactMigratorBase { diff --git a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/RelatedLinksDataTypeArtifactMigrator.cs b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/RelatedLinksDataTypeArtifactMigrator.cs index 6a9a5f5..bc898fe 100644 --- a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/RelatedLinksDataTypeArtifactMigrator.cs +++ b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/RelatedLinksDataTypeArtifactMigrator.cs @@ -7,7 +7,7 @@ namespace Umbraco.Deploy.Contrib.Migrators.Legacy; /// -/// Migrates the to replace the editor with and the configuration from Umbraco 7 to . +/// Migrates the to replace the editor with and the configuration from Umbraco 7. /// public class RelatedLinksDataTypeArtifactMigrator : MultiUrlPickerReplaceDataTypeArtifactMigratorBase { diff --git a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/TinyMCEv3DataTypeArtifactMigrator.cs b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/TinyMCEv3DataTypeArtifactMigrator.cs index d18a9e2..cd38a59 100644 --- a/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/TinyMCEv3DataTypeArtifactMigrator.cs +++ b/src/Umbraco.Deploy.Contrib/Migrators/Legacy/DataType/TinyMCEv3DataTypeArtifactMigrator.cs @@ -9,7 +9,7 @@ namespace Umbraco.Deploy.Contrib.Migrators.Legacy; /// -/// Migrates the to replace the editor with . +/// Migrates the to replace the editor with . /// public class TinyMCEv3DataTypeArtifactMigrator : ReplaceDataTypeArtifactMigratorBase {