Page MenuHomePhabricator

Allow the creation of Z14/Implementation
Closed, ResolvedPublic

Description

Currently, it is not possible to create a correct Z14/Implementation because a Z14 should only have one key of its free filled (i.e. only Z14K1 or Z14K2 or Z14K3) but the validation code makes it require to have all the keys filled in order to validate and be stored.

One way to solve this is to implement T277701 and mark the keys as optional.

This makes the validation a bit less strict than it could (it doesn't actually say that exactly one of them should be there, but it allows to have any or none or each of the values to be given). That is still a bit better than the current situation.

Another task for a proper validator for Z14/Implementation is also created: T277925 (that will make the validation tighter again)

This task should not block on the latter.

Event Timeline

DVrandecic triaged this task as Medium priority.Mar 24 2021, 5:58 PM
DVrandecic raised the priority of this task from Medium to High.Apr 7 2021, 4:44 AM
DVrandecic lowered the priority of this task from High to Medium.Apr 7 2021, 4:09 PM

Change 683355 had a related patch set uploaded (by ArthurPSmith; author: ArthurPSmith):

[mediawiki/extensions/WikiLambda@master] Change default behavior to make keys optional rather than required

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

DVrandecic raised the priority of this task from Medium to High.

Change 683355 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Change default behavior to make keys optional rather than required

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