jayvdb added a comment.
I think we have solved the first part of the problem: pywikibot.exceptions.NoPage: Page [[wikidata:-1]] doesn't exist. It should now give a useful NoPage error message.
But I am pretty sure that the second part of the problem isnt solved: pywikibot.data.api.APIError: invalid-snak-value: Q14854094 not found
https://phabricator.wikimedia.org/tag/testme/
TASK DETAIL
https://phabricator.wikimedia.org/T64261
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb
Cc: jayvdb, pywikipedia-bugs
jayvdb added a comment.
I have added some Wikidata microtasks; while these are not tightly related to the project, an understanding of Wikidata is crucial to this project, and these tasks will demonstrate sufficient ability to code in python to be able to undertake this task.
TASK DETAIL
https://phabricator.wikimedia.org/T89416
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb
Cc: Halfak, NiharikaKohli, Evanontario, jayvdb, Qgil, Bawolff, Aklapper, Jsalsman, Svick, jeremyb, pywikipedia-bugs
jayvdb created this task.
jayvdb added a subscriber: jayvdb.
jayvdb added a project: Pywikibot-Wikidata.
jayvdb changed Security from none to none.
TASK DESCRIPTION
Similar errors occur in addClaim, addSource, etc .. but here is the backtrace for editEntity updating an item.
Welcome to the Pywikibot interactive shell!
>>> import pywikibot
>>> datasite = pywikibot.site.DataSite('test', 'wikidata', None, None)
>>> item = pywikibot.page.ItemPage(datasite, 'Q68')
>>> item.get()
Found 4 wikidata:test processes running, including this one.
{'claims': {u'P115': [<pywikibot.page.Claim instance at 0xb611b5ac>]}, 'labels': {u'en': u'Test123'}, 'sitelinks': {}, 'descriptions': {}, 'aliases': {u'en': [u'1417625792.03']}}
>>> item.editEntity(data=item.toJSON())
Logging in to wikidata:test as JVbot
Should be logged in now
SIMULATION: wbeditentity action blocked.
Traceback (most recent call last):
File "<console>", line 1, in <module>
File ".../pywikibot/page.py", line 3035, in editEntity
self.lastrevid = updates['entity']['lastrevid']
KeyError: 'entity'
TASK DETAIL
https://phabricator.wikimedia.org/T76694
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: jayvdb
Cc: Aklapper, jayvdb, pywikipedia-bugs
jayvdb created this task.
jayvdb assigned this task to Halfak.
jayvdb added subscribers: Halfak, pywikipedia-bugs, jayvdb, Aklapper, Evanontario.
jayvdb added a project: pywikibot-core.
TASK DESCRIPTION
the wikimedia-utilities Revision class has functionality than the pywikibot Revision class does not have.
https://bitbucket.org/halfak/wikimedia-utilities/src/cb1177b18ad757210e14dd…
It would be great if Aaron could copy his logic into the pywikibot Revision class to maintain attribution.
If not, pywikibot should re-implement it with the same signature.
TASK DETAIL
https://phabricator.wikimedia.org/T89764
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Halfak, jayvdb
Cc: Evanontario, Aklapper, jayvdb, Halfak, pywikipedia-bugs
jayvdb added a comment.
This is rightly under 'Needs Discussion'; @Jsalsman is currently looking into whether Indonesian language would be suitable; if so, I'll talk to that community. @qgil, when do you want community buy-in finalised?
Earlier (https://phabricator.wikimedia.org/T89416#1038096), I proposed that this project could be a pure 'tech' project to refine the Wikidata import algorithms, which is a fall back position if we dont obtain buy-in from a suitable language community.
TASK DETAIL
https://phabricator.wikimedia.org/T89416
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb
Cc: NiharikaKohli, Evanontario, jayvdb, Qgil, Bawolff, Aklapper, Jsalsman, Svick, jeremyb, pywikipedia-bugs
XZise created this task.
XZise added a subscriber: XZise.
XZise added projects: MediaWiki-API, pywikibot-core.
XZise changed Security from none to none.
TASK DESCRIPTION
Multiple `friprop` values have been removed from `meta=filerepoinfo` including `articlepath` and `server`. I haven't been able to find a mail on the api-announce list so I guess this is not intentional?
Especially `articlepath` and `server` are useful because they are like the URLs from the interwikimap so the code used by #pywikibot-core could be reused.
If it's not intentional it would be helpful to update the documentation of [[https://www.mediawiki.org/wiki/API:Meta#filerepoinfo_.2F_fri|API:Meta#filer… / fri]] and [[https://en.wikipedia.org/w/api.php?action=help&modules=query%2Bfilerepoinfo…, so that I know which property I need to use for future versions.
TASK DETAIL
https://phabricator.wikimedia.org/T85153
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise
Cc: Aklapper, XZise, jayvdb, Anomie, Legoktm, pywikipedia-bugs