-
Notifications
You must be signed in to change notification settings - Fork 12
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
[2.x] Perform clear-and-replace when applying entity Migration
#1419
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1419 +/- ##
=========================================
Coverage 91.12% 91.12%
Complexity 4930 4930
=========================================
Files 628 628
Lines 15420 15421 +1
Branches 893 893
=========================================
+ Hits 14051 14053 +2
Misses 1066 1066
+ Partials 303 302 -1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a single comment.
.setId(newUuid().hashCode()) | ||
.build(); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please kill this line.
This changeset addresses #1403, now for 2.x
master
branch. In short, previously during the entity migration the old state was being merged with the new state returned by theMigration
instance. That led to a number of unwanted side effects and bugs.Now, the entity
Migration
routines fully replace the old state with the new state, as per its original API design.(a similar PR has been merged into 1.x branch)
The library version has been set to
2.0.0-SNAPSHOT.78
.