Page MenuHomePhabricator

🏗️ Respond patched-property-label-description-same-value if patched property has the same label and description in any language after patching
Closed, ResolvedPublic

Description

  • align the validate method signature of PropertyLabelValidator and PropertyDescriptionValidator with those of the corresponding item label/description validators
  • after that, the (Item|Property)(Labels|Descriptions)ContentsValidators implementations should look more or less identical and the same test can be reused: extensions/Wikibase/repo/rest-api/tests/phpunit/Application/Validation/LabelsAndDescriptionsContentsValidatorTest.php
  • extensions/Wikibase/repo/rest-api/tests/mocha/api-testing/PatchPropertyTest.js already has a skipped test for this case

Event Timeline

Change #1027227 had a related patch set uploaded (by Muhammad Jaziraly; author: Muhammad Jaziraly):

[mediawiki/extensions/Wikibase@master] REST: Align validate method signature

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

Hello @Jakob_WMDE
I worked on this during the weekend but couldn't know why the 3 e2e tests failed.
I'm off tomorrow, so I just wanted to give a heads-up for you if you want to check it 👍

Change #1027227 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Respond patched-property-label-description-same-value in PatchProperty use case

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