For T185709: Cache CheckResult serializations per-entity in ObjectCache, we need to be able to serialize and deserialize Contexts, so that they can afterwards be used to store the deserialized CheckResults into an array again. I assume this will have to be specific for the three context types we support, and each of them will serialize the data it needs, and then there’ll be some code somewhere that delegates to the correct one of the three subclasses for deserialization.
I’m not sure how this would look – non-static serialize and static deserialize methods on Context and its subclasses? Or should it be a separate kind of ContextSerialization service? I think my colleagues know more about this than me, there’s a lot of serialization going on in Wikibase ;)
- add ContextCursor and implementations
- add Context::getCursor()
- remove CheckResult::getEntityId()
- add test implementation
- add getters to ContextCursor
- start using cursor
- test updates 1, 2
- update CheckResult
- drop Context::storeCheckResultInArray and ApiV2Context
- add more getters
- add s11n classes
- refactorings and restructurings? possibly following T188728?