Closed pixelzoom closed 1 year ago
Regarding the assertion failures shown in https://github.com/phetsims/natural-selection/issues/341#issue-1821171768 ... It looks like these are actually related to naturalSelection.titleStringProperty
, and they occur if I just start the sim and press "Migrate Now". So I'll a separate issue for that.
See also https://github.com/phetsims/natural-selection/issues/342#issuecomment-1655809081 for a general question about ?strictMigrationRules
.
This is an identical problem to https://github.com/phetsims/natural-selection/issues/342, and a solution was prototyped over there. Let's work on the problem over there.
Looks good, confirm with in Migration wrapper with &strictMigrationRules
. Closing, thanks!
Related to migration rules in https://github.com/phetsims/natural-selection/issues/324 ...
This migration rule for BunnyIO was added to natural-selection-migration-rules.ts by @zepumph, and I added the TODO comment:
Similarly, @zepumph added this rule and comment for WolfIO:
For BunnyIO, I confirmed that running with
?strictMigrationRules
will trigger an assertion failure if all bunnies have died. To reproduce:@zepumph please advise on how to address this. Is a comment similar to
PrivateStateUnderscored( 'WolfIO' )
sufficient? Perhaps we need an option to tell migration that it's OK if a rule does nothing?