Skip to content

Normalize Unicode strings from seed data before comparing#38617

Open
AndriySvyryd wants to merge 1 commit into
mainfrom
Issue38191
Open

Normalize Unicode strings from seed data before comparing#38617
AndriySvyryd wants to merge 1 commit into
mainfrom
Issue38191

Conversation

@AndriySvyryd

Copy link
Copy Markdown
Member

Fixes #38191

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Addresses #38191 by making seed-data string comparisons resilient to Unicode normalization differences (e.g., NFC vs NFD), preventing spurious “pending model changes” / migration scaffolding when models/snapshots are authored on different OSes.

Changes:

  • Normalize seed-data string values to NFC when building seed identity keys and when comparing source/target seed values during diffing.
  • Add a regression test asserting no migration operations are produced when seed strings differ only by Unicode normalization form.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
test/EFCore.Relational.Tests/Migrations/Internal/MigrationsModelDifferTest.cs Adds coverage for NFC vs NFD equivalence in seed-data diffing (no-op expected).
src/EFCore.Relational/Migrations/Internal/MigrationsModelDiffer.cs Introduces NFC normalization helper and applies it to seed key/value comparisons during model diffing.

Comment thread src/EFCore.Relational/Migrations/Internal/MigrationsModelDiffer.cs
Copilot AI review requested due to automatic review settings July 13, 2026 20:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@AndriySvyryd AndriySvyryd requested a review from cincuranet July 13, 2026 20:28
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.

PendingModelChangesWarning Diacritic Café

2 participants