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

[release/8.0] Find the discriminator property even if it is not string #34388

Merged
merged 1 commit into from
Aug 10, 2024

Conversation

AndriySvyryd
Copy link
Member

@AndriySvyryd AndriySvyryd commented Aug 8, 2024

Fixes #34201

Description
When the discriminator property has the default name, but a non-default type then HasDiscriminator() returns null. This can be considered a regression, because after #33622 the model snapshot always contains this line for affected models, so this issue now impacts many more users.

Customer impact
For affected models, all migration operations throw an exception. The workaround is to rename all non-string discriminators, but this is impractical for large models.

How found
Customer reported on 8.0.7

Regression
Yes, from 8.0.6

Testing
Test added.

Risk
Low. Quirk added.

@AndriySvyryd AndriySvyryd merged commit 9f3091b into release/8.0 Aug 10, 2024
7 checks passed
@AndriySvyryd AndriySvyryd deleted the Issue34201 branch August 10, 2024 10:26
@rbhanda rbhanda modified the milestones: 8.0.9, 8.0.10 Oct 7, 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.

3 participants