From 9c038bc68b6bc1cbfff2a4eb1904194d0de7020d Mon Sep 17 00:00:00 2001 From: Andy Butland Date: Fri, 28 Nov 2025 09:48:06 +0100 Subject: [PATCH] Re-enable package validation (#20964) * Re-enable package validation. * Remove unnecessary supressions file. * Removed unnecessary suppressions. * Restored and obsoleted all overload. --- Directory.Build.props | 4 +-- .../MemberType/CopyMemberTypeController.cs | 6 +++++ .../CompatibilitySuppressions.xml | 10 +------ .../CompatibilitySuppressions.xml | 11 ++++++++ .../CompatibilitySuppressions.xml | 27 ++++++++++++++++--- 5 files changed, 44 insertions(+), 14 deletions(-) create mode 100644 tests/Umbraco.Tests.Common/CompatibilitySuppressions.xml diff --git a/Directory.Build.props b/Directory.Build.props index 09dd04749d..28035831ba 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -40,8 +40,8 @@ false - false - 16.0.0 + true + 17.0.0 true true diff --git a/src/Umbraco.Cms.Api.Management/Controllers/MemberType/CopyMemberTypeController.cs b/src/Umbraco.Cms.Api.Management/Controllers/MemberType/CopyMemberTypeController.cs index e88e50a194..02e1507f76 100644 --- a/src/Umbraco.Cms.Api.Management/Controllers/MemberType/CopyMemberTypeController.cs +++ b/src/Umbraco.Cms.Api.Management/Controllers/MemberType/CopyMemberTypeController.cs @@ -20,6 +20,12 @@ public class CopyMemberTypeController : MemberTypeControllerBase public CopyMemberTypeController(IMemberTypeService memberTypeService) => _memberTypeService = memberTypeService; + [Obsolete("Please use the overload that includes all parameters. Scheduled for removal in Umbraco 19.")] + [NonAction] + public async Task Copy( + CancellationToken cancellationToken, + Guid id) => await Copy(cancellationToken, id, null); + [HttpPost("{id:guid}/copy")] [MapToApiVersion("1.0")] [ProducesResponseType(StatusCodes.Status201Created)] diff --git a/src/Umbraco.Core/CompatibilitySuppressions.xml b/src/Umbraco.Core/CompatibilitySuppressions.xml index 3cd59acc38..0497d618a9 100644 --- a/src/Umbraco.Core/CompatibilitySuppressions.xml +++ b/src/Umbraco.Core/CompatibilitySuppressions.xml @@ -1,11 +1,3 @@  - - - CP0002 - M:Umbraco.Cms.Core.Configuration.Models.ContentSettings.get_Error404Collection - lib/net9.0/Umbraco.Core.dll - lib/net9.0/Umbraco.Core.dll - true - - \ No newline at end of file + \ No newline at end of file diff --git a/tests/Umbraco.Tests.Common/CompatibilitySuppressions.xml b/tests/Umbraco.Tests.Common/CompatibilitySuppressions.xml new file mode 100644 index 0000000000..50897d0014 --- /dev/null +++ b/tests/Umbraco.Tests.Common/CompatibilitySuppressions.xml @@ -0,0 +1,11 @@ + + + + + CP0002 + M:Umbraco.Cms.Tests.Common.Builders.TemplateBuilder.CreateTextPageTemplate(System.String) + lib/net10.0/Umbraco.Tests.Common.dll + lib/net10.0/Umbraco.Tests.Common.dll + true + + \ No newline at end of file diff --git a/tests/Umbraco.Tests.Integration/CompatibilitySuppressions.xml b/tests/Umbraco.Tests.Integration/CompatibilitySuppressions.xml index f5c79dd905..53b07fb764 100644 --- a/tests/Umbraco.Tests.Integration/CompatibilitySuppressions.xml +++ b/tests/Umbraco.Tests.Integration/CompatibilitySuppressions.xml @@ -1,11 +1,32 @@  + + CP0001 + T:Umbraco.Cms.Tests.Integration.ManagementApi.DocumentType.Root.ChildrenDocumentTypeTreeControllerTests + lib/net10.0/Umbraco.Tests.Integration.dll + lib/net10.0/Umbraco.Tests.Integration.dll + true + + + CP0001 + T:Umbraco.Cms.Tests.Integration.ManagementApi.DocumentType.Root.RootDocumentTypeTreeControllerTests + lib/net10.0/Umbraco.Tests.Integration.dll + lib/net10.0/Umbraco.Tests.Integration.dll + true + CP0002 - M:Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services.ContentEditingServiceTests.Updating_Single_Variant_Name_Does_Not_Change_Update_Dates_Of_Other_Vaiants - lib/net9.0/Umbraco.Tests.Integration.dll - lib/net9.0/Umbraco.Tests.Integration.dll + M:Umbraco.Cms.Tests.Integration.Umbraco.Examine.Lucene.UmbracoExamine.IndexInitializer.#ctor(Umbraco.Cms.Core.Strings.IShortStringHelper,Umbraco.Cms.Core.PropertyEditors.PropertyEditorCollection,Umbraco.Cms.Core.PropertyEditors.MediaUrlGeneratorCollection,Umbraco.Cms.Core.Scoping.IScopeProvider,Microsoft.Extensions.Logging.ILoggerFactory,Microsoft.Extensions.Options.IOptions{Umbraco.Cms.Core.Configuration.Models.ContentSettings},Umbraco.Cms.Core.Services.ILocalizationService,Umbraco.Cms.Core.Services.IContentTypeService,Umbraco.Cms.Core.Services.IDocumentUrlService,Umbraco.Cms.Core.Services.ILanguageService) + lib/net10.0/Umbraco.Tests.Integration.dll + lib/net10.0/Umbraco.Tests.Integration.dll + true + + + CP0002 + M:Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services.ContentEditingServiceTests.Relate(Umbraco.Cms.Core.Models.IContent,Umbraco.Cms.Core.Models.IContent) + lib/net10.0/Umbraco.Tests.Integration.dll + lib/net10.0/Umbraco.Tests.Integration.dll true \ No newline at end of file