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

Fix variant invariancy with limited language #17707

Open
wants to merge 8 commits into
base: v15/dev
Choose a base branch
from

Conversation

Migaroez
Copy link
Contributor

@Migaroez Migaroez commented Dec 3, 2024

Description

Before this PR, there is a bug reported internally that makes it impossible to add/remove blocks from an already saved invariant property with partial variance support.

This PR aims to fix this in a non breaking way.

Todo this, new logic similar to the existing one was added to the valueEditors that currently support this feature (block related ones).
The calling code was then refactored to work with the new logic.

This PR only updates logic that has to do with saving. The old logic is still used in the publishing flow.

Extra

This PR also introduces 2 new attributes for testing to make it possible to configure the UmbracoBuilder in integration tests on a per test or testcase basis without having to rely on magic testcase name strings

Testing

Integration tests have been added to cover adding invariant data in limited language access scenarios to existing content that support variance withing invariant data.

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.

1 participant