Page MenuHomePhabricator

ZObject DAO should have a isWellFormed method
Open, Stalled, LowestPublic

Description

ZObjects currently have an isValid method. isValid checks against the schema of the type, and can be rather involved. This needs, in the general case, look-up of the relevant Z4/Type, and later even evaluation of generic types, etc.

isWellFormed is meant to be a simpler check. It does not need to look up anything. It does things such as ensure that all keys are syntactically correct, that there are no two keys which are the same (is that even possible?), that there is a Z1K1, that the value of the Z1K1 is a Z4 or a Z9 or a Z7, that all values are ZObjects (or strings?), etc.

isWellFormed is the same for all ZObjects.

isValid should call isWellFormed first.

Related Objects

StatusSubtypeAssignedTask
OpenNone
OpenNone
OpenNone
OpenNone
StalledNone
ResolvedDVrandecic
Resolvedgengh
OpenNone
ResolvedDVrandecic
OpenNone
ResolvedJdforrester-WMF
OpenNone
OpenNone
Resolvedcmassaro
ResolvedDVrandecic
ResolvedLindsaykwardell
Resolvedarthurlorenzi
ResolvedNone
InvalidNone
Resolvedcmassaro
Resolvedcmassaro
Resolvedcmassaro
Resolvedcmassaro
Resolvedcmassaro
ResolvedJdforrester-WMF
Resolvedcmassaro
Resolvedcmassaro
Resolvedcmassaro
ResolvedNone
OpenNone
OpenSimoneThisDot
ResolvedSimoneThisDot
OpenNone
OpenNone
ResolvedNone
ResolvedDVrandecic
OpenNone
OpenNone

Event Timeline

DVrandecic triaged this task as Medium priority.Jan 6 2021, 5:51 PM
DVrandecic lowered the priority of this task from Medium to Low.
Jdforrester-WMF renamed this task from ZObject should have a isWellFormed method to ZObject DAO should have a isWellFormed method.Mar 10 2021, 5:44 PM
DVrandecic lowered the priority of this task from Low to Lowest.Apr 7 2021, 4:47 AM
Jdforrester-WMF changed the task status from Open to Stalled.Jun 2 2021, 4:54 PM
Jdforrester-WMF added a subscriber: Jdforrester-WMF.

To discuss if this is something we want to do.