Last modified: 2014-11-02 12:51:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T69528, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67528 - touch.py should not add pages to the user's watchlist
touch.py should not add pages to the user's watchlist
Status: PATCH_TO_REVIEW
Product: Pywikibot
Classification: Unclassified
Other scripts (Other open bugs)
core-(2.0)
All All
: Normal enhancement
: ---
Assigned To: xqt
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-04 10:45 UTC by Helder
Modified: 2014-11-02 12:51 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Helder 2014-07-04 10:45:57 UTC
Steps to reproduce:
(0. Remove page "X" from your watchlist)
1. Run python pwb.py scripts/touch.py -page:"X"
2. The page will be added to your watchlist

Please disable this watch feature by default, or allow one to set something like -watchlist:"nochange"[1] in the command line.

[1] https://www.mediawiki.org/w/index.php?title=API:Edit#Parameters
Comment 1 Helder 2014-07-04 10:55:02 UTC
It seems "page.save" doesn't support the API's "nochange" option
https://github.com/wikimedia/pywikibot-core/blob/master/pywikibot/page.py#L867-L872
which is supported by "site.editpage"
https://github.com/wikimedia/pywikibot-core/blob/master/pywikibot/site.py#L2784
Comment 2 xqt 2014-07-06 09:05:37 UTC
You may unhide the preferences settings of your bot at "Add pages and files I edit to my watchlist"
Comment 3 Gerrit Notification Bot 2014-07-06 11:07:18 UTC
Change 144354 had a related patch set uploaded by Xqt:
(bug 67528) touch.py should not add pages to the user's watchlist

https://gerrit.wikimedia.org/r/144354

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links