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 bulk property variant data updates #12569

Merged
merged 1 commit into from Jan 30, 2024

Conversation

ronaldbarendse
Copy link
Contributor

@ronaldbarendse ronaldbarendse commented Jun 11, 2022

Prerequisites

  • I have added steps to test this contribution in the description below

If there's an existing issue for this PR then this fixes #10383.

Description

Updating the Vary by culture setting of a property still resulted in an exception being thrown, as mentioned in #11369 (comment). This PR adds grouping on 2 bulk updates to ensure they also don't exceed the maximum amount of SQL parameters.

I've targeted v8, as that's what the above issue/PR used and we should be able to merge this up to the latest versions (the file moved from the Umbraco.Core to Umbraco.Infrastructure project though).

To test, you need a lot of content/variants (more than 2000) and then change the Vary by culture as described in the linked issue.

@bergmania bergmania merged commit a242a42 into v8/dev Jan 30, 2024
@bergmania bergmania deleted the v8/bugfix/bulk-property-variant-updates branch January 30, 2024 13:10
bergmania pushed a commit that referenced this pull request Jan 30, 2024
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.

None yet

2 participants