Skip to content

Conversation

@akfakmot
Copy link
Collaborator

Release v3.4.0

marcel-rbro and others added 9 commits March 25, 2025 11:45
…primary key

Fix: Fix custom class mapping for classes with just reusables schemas and primary key
Fix custom class mapping for classes with just reusables schemas and primary key
Upgrade: Upgrade to XbyK 30.4.0
@akfakmot akfakmot requested a review from a team as a code owner April 30, 2025 15:05
@michalJakubis michalJakubis requested a review from Copilot May 2, 2025 07:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR prepares the v3.4.0 release by introducing several enhancements and improvements related to form field patching, reusable schema management, and migration documentation. Key changes include:

  • Adding an optional excludedFields parameter to PatchFields in the CmsClass patcher.
  • Updating README documentation to describe page-to-widget migration functionality.
  • Modifying methods in ReusableSchemaService, ClassMappingProvider, and CmsClassMapper to return and propagate schema GUIDs, and updating legacy field mapping.

Reviewed Changes

Copilot reviewed 7 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
Migration.Tool.KXP.Api/Services/CmsClass/FormDefinitionPatcher.cs Introduces an optional excludedFields parameter to skip specified fields during patching.
Migration.Tool.Extensions/README.md Adds documentation for page-to-widget migrations.
Migration.Tool.CLI/README.md Updates CLI README to mention the new custom migrations for widget content.
KVA/Migration.Tool.Source/Services/ReusableSchemaService.cs Changes AddReusableSchemaToDataClass to return the schema GUID.
KVA/Migration.Tool.Source/Providers/ClassMappingProvider.cs Adds reusableSchemas tracking and a helper method for retrieving form element names.
KVA/Migration.Tool.Source/Mappers/CmsClassMapper.cs Updates PatchDataClassInfo and legacy field mapping to leverage the new reusableSchemas dictionary.
KVA/Migration.Tool.Source/Helpers/FormDefinitionHelper.cs Updates MapFormDefinitionFields to pass excluded fields to the patcher.
Files not reviewed (3)
  • Migration.Tool.Common/Migration.Tool.Common.csproj: Language not supported
  • Migration.Tool.KXP.Api/Migration.Tool.KXP.Api.csproj: Language not supported
  • Migration.Tool.KXP.Extensions/Migration.Tool.KXP.Extensions.csproj: Language not supported
Comments suppressed due to low confidence (1)

KVA/Migration.Tool.Source/Mappers/CmsClassMapper.cs:359

  • [nitpick] Consider using ToLowerInvariant() instead of ToLower() to ensure consistent behavior regardless of the current culture.
Guid = GuidHelper.CreateFieldGuid("${mapping.LegacyFieldName.ToLower()}|${newClassName}"),

@akfakmot akfakmot merged commit 777fd80 into master May 2, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

5 participants