Page MenuHomePhabricator

WikiLambda: Remove validity of Z9 as value for a Z2K1
Open, MediumPublic

Description

ZPersistentObject.php:132

Currently the method isValid of ZPersistentObject accepts either a ZString or a ZReference as the value for Z2K1. This is because for a while we had a bit of a mess while transitioning from Z9 to Z6, but currently all Z2K1 should already be Z6s.

  • Change isValid method so that it stops allowing Z9 as a valid value for the ID
  • Make sure that tests pass
  • Try to manually create a new ZObject from the Vue interface to make sure that we are not breaking things and the front-end is creating correct ZObjects.
  • (If not working), fix front-end to send Z6s instead of Z9s as the value for Z2K1.

Event Timeline

Change 817356 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/WikiLambda@master] [WIP] Drop Z9/Reference as permitted type for Z2K1 identity

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