Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DocTypeGridEditor data type configuration connector #65

Conversation

ronaldbarendse
Copy link
Contributor

@ronaldbarendse ronaldbarendse commented Jul 8, 2024

Although we already provide DocTypeGridEditor support for transferring content via the DocTypeGridEditorCellValueConnector (to parse nested values and add dependencies, including the used element types), it didn't properly support schema deployment for the Grid layout data type.

This PR adds a DocTypeGridEditorDataTypeConfigurationConnector that parses the Grid layout data type configuration and adds dependencies for any allowed element types for each DocTypeGridEditor grid editor. This ensures the element types are deployed first, before this data type is processed, which is required when doing a Grid layout to Block Grid migration (as that needs to know all element types when migrating the data type artifact)...

The easiest way to test is to copy over the added file into an Umbraco 8 site with Deploy 4 and DocTypeGridEditor installed, check that the current Grid layout data type doesn't have any dependencies, re-save the data type and check that it now does have all (allowed) element types added as dependencies.

Copy link
Contributor

@AndyButland AndyButland left a comment

Choose a reason for hiding this comment

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

Looks good and tests out as described.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants