-
Notifications
You must be signed in to change notification settings - Fork 136
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
Backward compat for deserialization of InstalledAppCommon #2253
Conversation
Would it be possible to write a test to verify that the struct can initialise correctly from previous data? Does this need to go into develop at all if it can be removed later? Could this change go directly into |
@ThetaSinner it would be pretty cumbersome to write that test, I think. We'd need a fixture database including a serialized struct produced by the old version, and load it in the new version. Might be a good idea, and it would help for all kinds of other changes, but it's hard to feel motivated to do that right now given that we could have benefited from it a long time ago and could do it at any time. And yes I guess it does make sense to just merge this into the 0.1 stream |
b5ff1a9
to
c0e91d2
Compare
That makes sense, yeah it's not worth it if it's going to require a whole new kind of test and the pieces to go with it. We can just check that the release candidate that this goes out on behaves as expected. I was thinking you might get away with embedding some sample JSON in a test and deserialising it with |
Yeah, we could construct some JSON that's supposed to represent the old format, but it seems just as likely that we would get that wrong as it is that we would make a mistake with compatibility. Seems that the only reliable test would be one based on real data from real serialization. |
Summary
Backport to fix backward compat breakage
TODO: