Page MenuHomePhabricator

Make wb_changes robust against version differences.
Closed, ResolvedPublic

Description

wb_changes should use a robust serialization mechanism. Serialized PHP objects often become incompatible due to changes the the class definition. Serializing nested array structures instead (as JSON or using php serialization) would avoid this.

wb_changes is accessed by client side code which may be running a different Wikibase version than the repository. The client version may be older or new as the repo version, depending on how and where it is dunning. Also, old entries in wb_changes may easily have been created by an old version of the repository.


Version: unspecified
Severity: normal

Details

Reference
bz43990

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:16 AM
bzimport set Reference to bz43990.
bzimport added a subscriber: Unknown Object (MLST).

wikidata-bugs wrote:

Change I9fd62298: (bug 43990) Robust serialization of change objects

wikidata-bugs wrote:

Change I0728282d: (bug 43990) Object conversion for diff arrayalisation.

Change I0728282d has been merged.

Verified in Wikidata demo sprint 33

Restricted Application added a subscriber: StudiesWorld. · View Herald Transcript