Last modified: 2013-11-09 09:19:55 UTC
When you use the API to protect a non-existent page with protections=create=sysop and watchlist=preferences, it seems to use the value of the "Add pages I create and files I upload to my watchlist" (wpWatchCreations) preference to decide whether or not to add the page to your watchlist. Since no page is actually being created, this seems inappropriate.
This is easy to fix, but I'm just not sure what it should be changed to use... my gut feeling is to make watchlist=preferences behave like watchlist=no in this case. The other option would be to add a new pref (= sadness).
The correct behavior would be to match that of the web UI, which uses 'watchdefault' ("watch pages I edit") for this situation.
Change 94399 had a related patch set uploaded by Anomie: Cleanup watchlist preference usage https://gerrit.wikimedia.org/r/94399
Change 94399 merged by jenkins-bot: Cleanup watchlist preference usage https://gerrit.wikimedia.org/r/94399
Was successfully merged