-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. The migration loop no longer resets if the object does not have a [type] field. Objects never have this field after being deserialized from their raw document format, this functionality appears to be unnecessary and can cause unexpected behavior (though migrations still worked because the loop would get restarted). 2. Changed one unit test case that depended upon the aforementioned condition. This appeared to be an invalid test case which would not actually be encountered in a real world scenario, since it relied on an object containing a [type] field. 3. The migration loop now resets if an object's migrationVersion has explicitly been increased by a transform function. This is expected behavior and a unit test exercises it, but it was a side effect of the aforementioned condition.
- Loading branch information
Showing
2 changed files
with
20 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters