Skip to content

Problem with reusable schema migration and assignment #411

@VasileEcubed

Description

@VasileEcubed

Brief bug description

In our old Kentico 13 project, we have a base page type that contain a list of fields that are inherited by other page types.
At the moment the tool allows migrating class into reusable schema by using CreateReusableFieldSchemaForClasses.
This migration will not attach reusable schema to the child content type.
We've tried to implement that custom mapper from ClassMappingSample, but the code priovided does not attatch reusable schema. We've tried some custom code there, but the problem is that the schema inherited fields contain prefix {page_type_code_name}__{field_name}, but we want to keep same name for those fields and the data is not pupulated in those fields.

Is there are other configuration that we might need, in order to achieve this result?

Expected behavior

Please see additional screenshots for more visual demonstration of the problem.

  • Actual behaviour when migrate classes via CreateReusableFieldSchemaForClasses (The schema was attached to class via custom code. By default schema is not attached to classes)

Image

  • Expected behaviour when migrate classes via CreateReusableFieldSchemaForClasses

Image

Dev environment

  • Xperience by Kentico version 30.3.1
  • Migration tool: 3.3.1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions