Skip to content

Conversation

@AndriySvyryd
Copy link
Member

Fixes #36619

Description
The generated model snapshot that is used in migrations specifies an incorrect type for the complex collections (the element type is used instead of the collection type).

Customer impact
The incorrect snapshots cause redundant operations to be generated in every migration even when the model is not changed. This is usually just an annoyance, but would cause an exception if the user has "throw on warnings" enabled.

How found
RC1 validation

Regression
No, complex collections are a new feature in 10

Testing
Test added

Risk
Low, the code only affects the new feature

@AndriySvyryd AndriySvyryd requested a review from artl93 August 21, 2025 00:03
@AndriySvyryd AndriySvyryd requested a review from a team as a code owner August 21, 2025 00:03
Copy link
Member

@artl93 artl93 left a comment

Choose a reason for hiding this comment

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

RC2

@AndriySvyryd AndriySvyryd changed the title Fix complex collection type in model snapshot [rc2] Fix complex collection type in model snapshot Aug 21, 2025
@AndriySvyryd AndriySvyryd enabled auto-merge (squash) August 21, 2025 07:36
@AndriySvyryd AndriySvyryd merged commit 013bb51 into release/10.0 Aug 21, 2025
7 checks passed
@AndriySvyryd AndriySvyryd deleted the Issue36619 branch August 21, 2025 08:21
@roji roji added rc-2 and removed rc-2 labels Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Complex collections are scaffolded with the wrong type in the snapshot

5 participants