fix: Ensure the warning is non longer option - older gets migrated#974
Conversation
|
I cannot reproduce the bug this should fix. Can you provide such a json? |
There was a problem hiding this comment.
Thanks for the files, I reproduced the bug.
I'm not a fan of this approve, because it adds a manual migration that adds a lot of noise to the code. I wonder how, in this same file, backwardTravelTime sometimes includes a warning and sometimes not.
I will try to think of an alternative solution. Edit: I couldn't find other solution :s
|
Can we instead adjust hasTravelTimeWarning(): boolean {
return Boolean(this.travelTime.warning);
} |
|
The other concern I have is that old files have |
|
The questions is how we ensure that we are downwards compatible. |
|
After some discussion, we could try this: #974 (comment) |
…when-missing-backward-travel-times-due-of-wrong-warning-check
|
@aiAdrian what do you think of this solution (#974 (comment))? It would avoid having a migration method called each time in the constructor |
No description provided.