Page MenuHomePhabricator

Check for local ZObject well-formedness
Closed, ResolvedPublic

Description

ZObject, before being stored, must be well-formed.

A well-formed ZObject must:

  • be a String

OR

  • be an array of well-formed ZObjects

OR

  • be an object AND
  • have the first key be Z1K1 AND
  • have all keys be of the form (Zn)Km AND
  • have the keys be sorted first by n and the by m (if no n, then assume n being last)
  • all values must be well-formed ZObjects

Event Timeline

DVrandecic triaged this task as Medium priority.Jul 26 2020, 8:33 PM
DVrandecic raised the priority of this task from Medium to High.Jul 26 2020, 8:42 PM
DVrandecic lowered the priority of this task from High to Medium.Jul 26 2020, 8:45 PM
DVrandecic updated the task description. (Show Details)

Change 616859 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/WikiLambda@master] Require ZObjects to follow (local-only for now) form

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

Change 616859 merged by jenkins-bot:
[mediawiki/extensions/WikiLambda@master] Require ZObjects to follow (local-only for now) form

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

DVrandecic closed this task as Resolved.EditedAug 13 2020, 12:25 AM
DVrandecic claimed this task.
DVrandecic closed subtask T258893: Set up Wikilambda repo as Resolved.

Yes, we can. Thank you!

Moved the sorting of the keys to canonicalization task T259932