Page MenuHomePhabricator

🎆 Validate the patched descriptions
Closed, ResolvedPublic

Description

  • Don't try to reuse anything from existing PatchedDescriptionsValidator or the patched labels validator just yet. We'll do that after all of them are done.
  • Handle all cases where the patched JSON structure cannot be deserialized into a valid descriptions TermList (empty description, description too long, description containing invalid characters, language code)
  • Collision detection (checking that no other property has the same combination of label and description in any changed language)
  • Check that no changed description is now the same as the label in any changed language

Event Timeline

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

[mediawiki/extensions/Wikibase@master] REST: Validate patched property descriptions

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

Change 977249 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Validate patched property descriptions

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