jayvdb created this task.
jayvdb added a subscriber: jayvdb.
jayvdb added a project: Pywikibot-solve-disambiguation.py.
jayvdb changed Security from none to none.
TASK DESCRIPTION
A disambiguation page which include a disambiguation disambiguator should not be 'solved'.
i.e. a link to [[!! (disambiguation)]] is obviously an intentional link, and shouldnt be solved.
On English Wikipedia, we create [[foo (disambiguation)]] -> [[foo]] redirect pages when [[foo]] is a disambiguation page, so that [[foo (disambiguation)]] can be to be used when intentionally linking to a dab page.
TASK DETAIL
https://phabricator.wikimedia.org/T85052
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: Aklapper, jayvdb, pywikipedia-bugs
Silvonen created this task.
Silvonen added a subscriber: Silvonen.
Silvonen added a project: Pywikibot-category.py.
Silvonen changed Security from none to none.
TASK DESCRIPTION
category.py now crashes after every move. I didn't check what it is actually trying to do, but this doesn't seem to affect the end result.
Test run on fiwiki:
>category.py move
Please enter the old name of the category: Parhaan elokuvan Oscar-palkinnon voittaneet elokuvat
Please enter the new name of the category: Parhaan elokuvan Oscar-palkinnon saaneet elokuvat
Page Luokka:Parhaan elokuvan Oscar-palkinnon voittaneet elokuvat moved to Luokka:Parhaan elokuvan Oscar-palkinnon saaneet elokuvat
Page Luokka:Parhaan elokuvan Oscar-palkinnon voittaneet elokuvat is moved and no longer exist.
Getting [[Luokka:Parhaan elokuvan Oscar-palkinnon voittaneet elokuvat]] list...
Getting 60 pages from wikipedia:fi...
...
Traceback (most recent call last):
File "D:\git\pywikipedia\category.py", line 1079, in <module>
main()
File "D:\git\pywikipedia\category.py", line 1049, in main
bot.run()
File "D:\git\pywikipedia\category.py", line 512, in run
self.oldCat.delete(reason, confirm, mark=True)
File "D:\git\pywikipedia\wikipedia.py", line 3765, in delete
self._getActionUser(action='delete', sysop=True)
File "D:\git\pywikipedia\wikipedia.py", line 2018, in _getActionUser
self.site().forceLogin(sysop=sysop)
File "D:\git\pywikipedia\wikipedia.py", line 6719, in forceLogin
if not self.loggedInAs(sysop=sysop):
File "D:\git\pywikipedia\wikipedia.py", line 6713, in loggedInAs
self._load(sysop=sysop)
File "D:\git\pywikipedia\wikipedia.py", line 7772, in _load
data = query.GetData(params, self, sysop=sysop)
File "D:\git\pywikipedia\pywikibot\support.py", line 118, in wrapper
return method(*__args, **__kw)
File "D:\git\pywikipedia\query.py", line 150, in GetData
data=data)
File "D:\git\pywikipedia\wikipedia.py", line 7239, in getUrl
back_response=True)
File "D:\git\pywikipedia\pywikibot\comms\http.py", line 97, in request
if not no_hostname and site.cookies(sysop = sysop):
File "D:\git\pywikipedia\wikipedia.py", line 6797, in cookies
self._loadCookies(sysop=sysop)
File "D:\git\pywikipedia\wikipedia.py", line 6829, in _loadCookies
% (self.family.name, self.lang))
pywikibot.exceptions.NoUsername: You tried to perform an action that requires admin privileges, but you haven't
entered your sysop name in your user-config.py. Please add
sysopnames['wikipedia']['fi']='name' to your user-config.py
>python version.py
Pywikibot: [https] r-pywikibot-compat.git (925d931, g11106, 2014/11/29, 15:08:51, ok)
Release version: 1.0b1
Python: 2.7.2 (default, Jun 24 2011, 12:22:14) [MSC v.1500 64 bit (AMD64)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
TASK DETAIL
https://phabricator.wikimedia.org/T76687
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: Silvonen
Cc: Aklapper, Silvonen, pywikipedia-bugs
jayvdb created this task.
jayvdb claimed this task.
jayvdb added a subscriber: jayvdb.
jayvdb added a project: pywikibot-core.
jayvdb changed Security from none to none.
TASK DESCRIPTION
The Page save logic uses the 'cosmetic changes' script, which is not currently packaged with the Pywikibot library.
[[https://www.mediawiki.org/wiki/Requests_for_comment/pywikibot_2.0_packaging…]]
TASK DETAIL
https://phabricator.wikimedia.org/T76320
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: jayvdb
Cc: pywikipedia-bugs, jayvdb
jayvdb created this task.
jayvdb claimed this task.
jayvdb added a subscriber: jayvdb.
jayvdb added projects: pywikibot-core, Pywikibot-Cosmetic-changes.
jayvdb changed Security from none to none.
TASK DESCRIPTION
Page save uses the cosmetic changes script, which is not packaged in the core library. In T76320, the hard dependency was broken, but the functionality is missing if the script is not packaged as part of the library.
cosmetic_changes.py needs to be split, moving the toolkit into pywikibot, and leaving a script in the scripts package for adhoc usage of the toolkit (or maybe integrated as an option in touch.py?).
TASK DETAIL
https://phabricator.wikimedia.org/T76324
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: jayvdb
Cc: pywikipedia-bugs, jayvdb
jayvdb created this task.
jayvdb added a subscriber: jayvdb.
jayvdb added a project: pywikibot-core.
jayvdb changed Security from none to none.
TASK DESCRIPTION
I can reliably produce a badtoken by running the entire test suite on ar.wp or test.wd on this change:
https://gerrit.wikimedia.org/r/178453
TASK DETAIL
https://phabricator.wikimedia.org/T77965
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 claimed this task.
jayvdb added subscribers: pywikipedia-bugs, valhallasw, siebrand, Nemo_bis, jayvdb.
jayvdb added projects: Pywikibot-i18n, i18n.
TASK DESCRIPTION
JSON files have been added to pywikibot/i18n, which now has python and JSON files with the same messages. The JSON files are not used yet, as the code changes to enable JSON have exposed packaging problems that are the subject of RFC https://www.mediawiki.org/wiki/Requests_for_comment/pywikibot_2.0_packaging
We need syntax validation of these JSON files for gerrit submissions, as message changes typically need to be approved quickly (and without errors) so they can be merged and the core & compat i18n submodule updated, before the messages can be used in code changes.
TASK DETAIL
https://phabricator.wikimedia.org/T85335
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: Aklapper, valhallasw, siebrand, Nemo_bis, jayvdb, Gryllida, Shizhao, Arrbee, pywikipedia-bugs
XZise created this task.
XZise added a subscriber: XZise.
XZise added a project: pywikibot-core.
TASK DESCRIPTION
Similar to T74847 the wikibase settings are hardcoded into the family files. There is [[https://en.wikipedia.org/w/api.php?action=query&meta=wikibase|`action=query…]] which would allow to make dynamically if the API plays along. In T74847 a very nasty problem surfaced which made it at least very hard to determine the Site object parameter (basically which family and code it uses) based on the result (see T85153).
So part of this task is also to determine if this API call has the same problem so other wikibase installations in the wild should be queried (or more exact: installations which use another wikibase). At least from the result of the English Wikipedia it should be easy to get a Site object because it's possible to construct the URL similar to the interwiki map URL for which we already have an implementation.
TASK DETAIL
https://phabricator.wikimedia.org/T85331
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, pywikipedia-bugs
jayvdb created this task.
jayvdb added a subscriber: jayvdb.
jayvdb added a project: pywikibot-core.
jayvdb changed Security from none to none.
TASK DESCRIPTION
Probably caused by revision deletion of the page?
https://travis-ci.org/wikimedia/pywikibot-core/jobs/43590174
```
======================================================================
ERROR: testLogEvents (tests.site_tests.SiteUserTestCase)
Test the site.logevents() method.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/build/wikimedia/pywikibot-core/tests/site_tests.py", line 732, in testLogEvents
for entry in mysite.logevents(logtype=typ, total=3):
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py", line 1512, in __iter__
yield self.result(item)
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/data/api.py", line 1710, in result
return self.entryFactory.create(pagedata)
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/logentries.py", line 294, in create
return self._creator(logdata)
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/logentries.py", line 283, in <lambda>
self._creator = lambda data: logclass(data, self._site)
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/logentries.py", line 98, in __init__
pos = self.data['title'].find('#')
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/logentries.py", line 28, in __missing__
raise KeyError("Log entry has no '%s' key" % key, key)
KeyError: ("Log entry has no 'title' key", 'title')
```
TASK DETAIL
https://phabricator.wikimedia.org/T78152
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: Aklapper, jayvdb, pywikipedia-bugs
jayvdb created this task.
jayvdb added a subscriber: jayvdb.
jayvdb added a project: Pywikibot-tests.
jayvdb changed Security from none to none.
TASK DESCRIPTION
https://travis-ci.org/wikimedia/pywikibot-core/jobs/43953898
```
======================================================================
ERROR: test_logevents_default (tests.pagegenerators_tests.TestLogeventsFactoryGenerator)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/build/wikimedia/pywikibot-core/tests/pagegenerators_tests.py", line 414, in test_logevents_default
pages = set(gen)
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/pagegenerators.py", line 726, in LogeventsPageGenerator
yield entry.title()
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/logentries.py", line 63, in title
self._title = pywikibot.Page(self.site, self.data['title'])
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/logentries.py", line 28, in __missing__
raise KeyError("Log entry has no '%s' key" % key, key)
KeyError: ("Log entry has no 'title' key", 'title')
```
TASK DETAIL
https://phabricator.wikimedia.org/T78481
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: Aklapper, jayvdb, pywikipedia-bugs