We have this
The file page displays all qualifiers that have been associated with the statements, regardless of their data types.
We want this
It must be possible to delete qualifiers with unsupported data types so that we can fight vandalism.
Acceptance Criteria
Test case set up at https://commons.wikimedia.beta.wmflabs.org/wiki/File:T220617.png
- statement with a qualifier with unsupported data type can be put into edit mode
- statement with a qualifier whose property has an unsupported data type can be changed to a property with a supported data type, and a value submitted
- qualifier with unsupported data type can be deleted
- qualifier with unsupported data type is gone completely after submitting deletion & refreshing page
Note: ideally, deletion can only be tested once - after that, it's gone...
To add anew, execute this from JS console, while logged in:
(new mw.Api()).postWithEditToken({ action: 'wbsetclaim', format: 'json', claim: JSON.stringify({"type":"statement","mainsnak":{"snaktype":"value","property":"P245962","datavalue":{"type":"wikibase-entityid","value":{"id":"Q427329"}}},"id":"M64627$f49ddd72-4bb4-5e41-f132-6819d56773f3","qualifiers":{"P740":[{"snaktype":"value","property":"P740","datavalue":{"type":"globecoordinate","value":{"latitude":36.025155,"longitude":-113.788809,"globe":"http://www.wikidata.org/entity/Q2","precision":0.000001}}}]},"qualifiers-order":["P740"],"rank":"normal"}) });
QA Results
AC | Status | Details |
1 | ✅ | T220617#5222938 |
2 | ❓ | T220617#5222938 |
3 | ✅ | T220617#5222938 |
4 | ✅ | T220617#5222938 |