(Go: >> BACK << -|- >> HOME <<)

Page MenuHomePhabricator

Type creation: Allow creation of Types with empty renderer/parser/validator keys
Closed, ResolvedPublic

Description

Description

When creating a new Type, the keys Z4K4/equality, Z4K5/renderer and Z4K5/parser are initialized to an empty reference. However, when publishing the object, the empty values return a validation error.

Saving a Type without these keys is possible, while saving it with empty values is considered not wellformed.

In the pipe of ZObject transformations before the final submission, we need to add a process that will remove these keys whenever their values are empty strings.


Completion checklist

Event Timeline

Jdforrester-WMF subscribed.

Could make the default validator Z101, but that doesn't help for renderers and parsers.

Change 1010244 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):

[mediawiki/extensions/WikiLambda@master] Remove undefined type functions before submission (Z4K3, Z4K4, Z4K5, Z4K6)

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

Jdforrester-WMF changed the task status from Open to In Progress.Mar 11 2024, 7:08 PM
Jdforrester-WMF moved this task from Backlog to In Progress on the Abstract Wikipedia team board.

Change 1010244 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Remove undefined type functions before submission (Z4K3, Z4K4, Z4K5, Z4K6)

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