DNations.jp created this task.
DNations.jp added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
Steps to Reproduce:
Use a repo to a site and find an Item with referenced claims. The first time
you index a claim and run .getSources() it will produce a claim of its own.
After that it will only ever produce an empty list, even if you run it on a
difference referenced claim on the same Item. You can run it once per Item but
after it only ever returns an empty list.
Actual Results:
[OrderedDict([('P28 <https://phabricator.wikimedia.org/P28>',
[Claim.fromJSON(DataSite("komorido", "komorido"), {'snaktype': 'value',
'property': 'P28 <https://phabricator.wikimedia.org/P28>', 'datatype':
'wikibase-item', 'datavalue': {'value': {'entity-type': 'item', 'numeric-id':
21}, 'type': 'wikibase-entityid'}, 'hash':
'1eff422c8858dd02c904b0fae03e042baffee67e'})])])]
[ ]
Expected Results:
[OrderedDict([('P28 <https://phabricator.wikimedia.org/P28>',
[Claim.fromJSON(DataSite("komorido", "komorido"), {'snaktype': 'value',
'property': 'P28 <https://phabricator.wikimedia.org/P28>', 'datatype':
'wikibase-item', 'datavalue': {'value': {'entity-type': 'item', 'numeric-id':
21}, 'type': 'wikibase-entityid'}, 'hash':
'1eff422c8858dd02c904b0fae03e042baffee67e'})])])]
[OrderedDict([('P28 <https://phabricator.wikimedia.org/P28>',
[Claim.fromJSON(DataSite("komorido", "komorido"), {'snaktype': 'value',
'property': 'P28 <https://phabricator.wikimedia.org/P28>', 'datatype':
'wikibase-item', 'datavalue': {'value': {'entity-type': 'item', 'numeric-id':
21}, 'type': 'wikibase-entityid'}, 'hash':
'1eff422c8858dd02c904b0fae03e042baffee67e'})])])]
TASK DETAIL
https://phabricator.wikimedia.org/T268321
WORKBOARD
https://phabricator.wikimedia.org/project/board/87/
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: DNations.jp
Cc: Aklapper, DNations.jp, pywikibot-bugs-list, JohnsonLee01, SHEKH, Dijkstra,
Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa,
Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs