Page MenuHomePhabricator

Implementation reordering deletes short descriptions
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):
The system job that reorders implementations deletes the Z2K5 value when it stores its reordering.

Here are two examples where the system edit has deleted the Z2K5 value:
https://www.wikifunctions.org/wiki/Z10000?uselang=en&diff=prev&oldid=5082
https://www.wikifunctions.org/wiki/Z10000?uselang=en&diff=prev&oldid=4898

What happens?:
It deletes Z2K5

What should have happened instead?:
It shouldn't change Z2K5

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Quiddity subscribed.

Initial observation: In order to update the function in the DB ((after updating the PHP ZPersistentObject), UpdateImplementationJob.php has to retrieve a serialization of the ZPersistentObject. It gets this from ZObject::getSerialized(). That Method iterates over the data of the ZPersistentObject. But ZPersistentObject.php doesn't know about the (relatively new) Z2K5 field, so that field gets omitted from the serialization.

Change 945003 had a related patch set uploaded (by David Martin; author: David Martin):

[mediawiki/extensions/WikiLambda@master] WikiLambda: Add PHP code for Z2K5/'short descriptions'

https://gerrit.wikimedia.org/r/945003

DMartin-WMF changed the task status from Open to In Progress.Aug 3 2023, 4:16 AM
DMartin-WMF moved this task from Backlog to In Progress on the Abstract Wikipedia team board.

Change 945003 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] WikiLambda: Add PHP code for Z2K5/'short descriptions'

https://gerrit.wikimedia.org/r/945003

Change 944858 had a related patch set uploaded (by Jforrester; author: David Martin):

[mediawiki/extensions/WikiLambda@wmf/1.41.0-wmf.20] WikiLambda: Add PHP code for Z2K5/'short descriptions'

https://gerrit.wikimedia.org/r/944858

Change 944858 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@wmf/1.41.0-wmf.20] WikiLambda: Add PHP code for Z2K5/'short descriptions'

https://gerrit.wikimedia.org/r/944858

Mentioned in SAL (#wikimedia-operations) [2023-08-03T12:31:18Z] <jforrester@deploy1002> Started scap: Backport for [[gerrit:944858|WikiLambda: Add PHP code for Z2K5/'short descriptions' (T343396)]]

Mentioned in SAL (#wikimedia-operations) [2023-08-03T12:32:59Z] <jforrester@deploy1002> jforrester: Backport for [[gerrit:944858|WikiLambda: Add PHP code for Z2K5/'short descriptions' (T343396)]] synced to the testservers mwdebug1002.eqiad.wmnet, mwdebug1001.eqiad.wmnet, mwdebug2001.codfw.wmnet, mwdebug2002.codfw.wmnet, and mw-debug kubernetes deployment (accessible via k8s-experimental XWD option)

Mentioned in SAL (#wikimedia-operations) [2023-08-03T12:40:59Z] <jforrester@deploy1002> Finished scap: Backport for [[gerrit:944858|WikiLambda: Add PHP code for Z2K5/'short descriptions' (T343396)]] (duration: 09m 41s)

Change 945629 had a related patch set uploaded (by David Martin; author: David Martin):

[mediawiki/extensions/WikiLambda@master] Check type of Z_PERSISTENTOBJECT_DESCRIPTION in isValid()

https://gerrit.wikimedia.org/r/945629

Change 945629 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Check type of Z_PERSISTENTOBJECT_DESCRIPTION in isValid()

https://gerrit.wikimedia.org/r/945629