Page MenuHomePhabricator

🏷️🐼 Validate the patched labels
Closed, ResolvedPublic

Description

Handles all cases where the patched JSON structure cannot be deserialized into a valid label TermList (empty label, label too long, label containing invalid characters, language code)

Event Timeline

Change 918498 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] REST: Extract label text validation

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

Change 918520 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] REST: Validate each label text after patching

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

Change 919152 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] REST: Handle empty patched label

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

Change 918498 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Extract label text validation

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

Change 918520 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Validate label text after patching

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

Change 919152 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Handle empty patched label

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