Skip to content

Commit 4740f22

Browse files
Obsolete prevalue property value artifact migrators
1 parent bb4e327 commit 4740f22

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

src/Umbraco.Deploy.Contrib/Migrators/Legacy/Content/CheckBoxListPropertyValueArtifactMigrator.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using Umbraco.Cms.Core;
23
using Umbraco.Cms.Core.Serialization;
34
using Umbraco.Cms.Core.Services;
@@ -9,6 +10,7 @@ namespace Umbraco.Deploy.Contrib.Migrators.Legacy;
910
/// <summary>
1011
/// Migrates the <see cref="PropertyValueWithSegments" /> using the <see cref="Constants.PropertyEditors.Aliases.CheckBoxList" /> editor from the <see cref="ContentArtifactBase" /> containing prevalues (seperated by <see cref="PrevaluePropertyValueArtifactMigratorBase.Delimiter" />) from Umbraco 7 to a JSON array.
1112
/// </summary>
13+
[Obsolete("Migrating property values in an artifact migrator does not support nested/recursive properties. Use the PrevalueArtifactMigrator and CheckBoxListPropertyTypeMigrator instead. This class will be removed in a future version.")]
1214
public class CheckBoxListPropertyValueArtifactMigrator : PrevaluePropertyValueArtifactMigratorBase
1315
{
1416
/// <inheritdoc />

src/Umbraco.Deploy.Contrib/Migrators/Legacy/Content/DropDownListFlexiblePropertyValueArtifactMigrator.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using Umbraco.Cms.Core;
23
using Umbraco.Cms.Core.Serialization;
34
using Umbraco.Cms.Core.Services;
@@ -9,6 +10,7 @@ namespace Umbraco.Deploy.Contrib.Migrators.Legacy;
910
/// <summary>
1011
/// Migrates the <see cref="PropertyValueWithSegments" /> using the <see cref="Constants.PropertyEditors.Aliases.DropDownListFlexible" /> editor from the <see cref="ContentArtifactBase" /> containing prevalues (seperated by <see cref="PrevaluePropertyValueArtifactMigratorBase.Delimiter" />) from Umbraco 7 to a JSON array.
1112
/// </summary>
13+
[Obsolete("Migrating property values in an artifact migrator does not support nested/recursive properties. Use the PrevalueArtifactMigrator and DropDownListFlexiblePropertyTypeMigrator instead. This class will be removed in a future version.")]
1214
public class DropDownListFlexiblePropertyValueArtifactMigrator : PrevaluePropertyValueArtifactMigratorBase
1315
{
1416
/// <inheritdoc />

src/Umbraco.Deploy.Contrib/Migrators/Legacy/Content/PrevaluePropertyValueArtifactMigratorBase.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ namespace Umbraco.Deploy.Contrib.Migrators.Legacy;
1111
/// <summary>
1212
/// Migrates the <see cref="PropertyValueWithSegments" /> using the specified editor alias from the <see cref="ContentArtifactBase" /> containing prevalues (seperated by <see cref="Delimiter" />) from Umbraco 7 to a single value or JSON array.
1313
/// </summary>
14+
[Obsolete("Migrating property values in an artifact migrator does not support nested/recursive properties. Use the PrevalueArtifactMigrator and property type migrators instead. This class will be removed in a future version.")]
1415
public abstract class PrevaluePropertyValueArtifactMigratorBase : PropertyValueArtifactMigratorBase
1516
{
1617
private const string Delimiter = ";;";

src/Umbraco.Deploy.Contrib/Migrators/Legacy/Content/RadioButtonListPropertyValueArtifactMigrator.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using Umbraco.Cms.Core;
23
using Umbraco.Cms.Core.Serialization;
34
using Umbraco.Cms.Core.Services;
@@ -7,8 +8,9 @@
78
namespace Umbraco.Deploy.Contrib.Migrators.Legacy;
89

910
/// <summary>
10-
/// Migrates the <see cref="PropertyValueWithSegments" /> using the <see cref="Constants.PropertyEditors.Aliases.RadioButtonList" /> editor from the <see cref="ContentArtifactBase" /> containing prevalues (seperated by <see cref="PrevaluePropertyValueArtifactMigratorBase.Delimiter" />) from Umbraco 7 to a JSON array.
11+
/// Migrates the <see cref="PropertyValueWithSegments" /> using the <see cref="Constants.PropertyEditors.Aliases.RadioButtonList" /> editor from the <see cref="ContentArtifactBase" /> containing prevalues (seperated by <see cref="PrevaluePropertyValueArtifactMigratorBase.Delimiter" />) from Umbraco 7 to a single value.
1112
/// </summary>
13+
[Obsolete("Migrating property values in an artifact migrator does not support nested/recursive properties. Use the PrevalueArtifactMigrator and RadioButtonListPropertyTypeMigrator instead. This class will be removed in a future version.")]
1214
public class RadioButtonListPropertyValueArtifactMigrator : PrevaluePropertyValueArtifactMigratorBase
1315
{
1416
/// <inheritdoc />

0 commit comments

Comments
 (0)