- 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
Description
Description
Details
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Ifrahkhanyaree_WMDE | T347394 🏗️ Modify data of a property | |||
Resolved | • Muhammad_Yasser_Jazirahly_WMDE | T363824 🏗️ Respond patched-property-label-description-same-value if patched property has the same label and description in any language after patching |
Event Timeline
Comment Actions
Change #1027227 had a related patch set uploaded (by Muhammad Jaziraly; author: Muhammad Jaziraly):
[mediawiki/extensions/Wikibase@master] REST: Align validate method signature
Comment Actions
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 👍
Comment Actions
Change #1027227 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] REST: Respond patched-property-label-description-same-value in PatchProperty use case