Page MenuHomePhabricator

Huggle 3 should not add pages I revert to my watchlist
Closed, ResolvedPublic

Description

Huggle 2.1.23 doesn't do that, and MediaWiki's rollback doesn't do it either. If HG3 is using the edit API
https://www.mediawiki.org/w/index.php?title=API:Edit#Editing_pages
there is the option to set 'watchlist' to 'nochange'.

See also bug 66215.


Version: 3.0.1
Severity: normal

Details

Reference
bz66273

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:21 AM
bzimport added a project: Huggle.
bzimport set Reference to bz66273.

This still happens after I updated to Version: 3.0.1 build: 1575 3.0.1-55-ga347836 without python support, compiled using QT 4.8.6 Running on QT 4.8.6

maybe a bug in mediawiki? how you rollback things? using rollback or SR, edit queries are appending the string you provided in this bug report so either you provided wrong one or it's a problem of mediawiki, you can run huggle with multiple -vvvvvvv options to see exactly what api's it uses

For the edit
https://pt.wikipedia.org/w/index.php?diff=prev&oldid=39112166
the logs were like this:
seg jun 9 15:03:43 2014 DEBUG[6]: Finished request https://pt.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=ids%7Cflags%7Ctimestamp%7Cuser%7Cuserid%7Csize%7Csha1%7Ccomment&rvlimit=20&titles=Rio%20Nilo&format=xml
seg jun 9 15:03:43 2014 DEBUG[1]: Rolling back Rio Nilo
seg jun 9 15:03:43 2014 DEBUG[6]: Processing api request https://pt.wikipedia.org/w/api.php?action=rollback&format=xml
seg jun 9 15:03:43 2014 DEBUG[5]: IRC User wikichanges-b7e0006c-747b-4079-9618-f7eb695fa615 quit: Excess Flood
seg jun 9 15:03:45 2014 DEBUG[6]: Finished request https://pt.wikipedia.org/w/api.php?action=rollback&format=xml
seg jun 9 15:03:45 2014 DEBUG[5]: IRC User wikistream-wmflabs quit: Excess Flood
seg jun 9 15:03:45 2014 DEBUG[6]: Processing api request https://pt.wikipedia.org/w/api.php?action=query&prop=revisions&rvlimit=1&rvprop=timestamp%7Cuser%7Ccomment%7Ccontent&titles=Usu%C3%A1rio%28a%29%20Discuss%C3%A3o%3A201.80.140.237&format=xml
seg jun 9 15:03:46 2014 DEBUG[6]: Finished request https://pt.wikipedia.org/w/api.php?action=query&prop=revisions&rvlimit=1&rvprop=timestamp%7Cuser%7Ccomment%7Ccontent&titles=Usu%C3%A1rio%28a%29%20Discuss%C3%A3o%3A201.80.140.237&format=xml
seg jun 9 15:03:46 2014 DEBUG[2]: Message to 201.80.140.237 with parameters: &createonly=1
seg jun 9 15:03:46 2014 DEBUG[6]: Processing api request https://pt.wikipedia.org/w/api.php?action=edit&format=xml
seg jun 9 15:03:47 2014 DEBUG[6]: Finished request https://pt.wikipedia.org/w/api.php?action=edit&format=xml
seg jun 9 15:03:47 2014 Successfully delivered message to: 201.80.140.237
seg jun 9 15:03:56 2014 DEBUG[5]: IRC User wikichanges-b7e0006c-747b-4079-9618-f7eb695fa615 quit: Excess Flood
seg jun 9 15:03:58 2014 DEBUG[5]: IRC User wikistream-wmflabs quit: Excess Flood

ok that means you are using rollback which seems to do a same, is there a documentation for mediawiki regarding that, I can't see that at https://www.mediawiki.org/wiki/API:Rollback

When I use the "[rollback more than 10 edits]" buttons in a page like
https://pt.wikipedia.org/w/index.php?diff=39114241&uselang=en
which points to
https://pt.wikipedia.org/w/index.php?title=Wikip%C3%A9dia:P%C3%A1gina_de_testes/1&action=rollback&from=200.164.64.145&token=3e6057f6f4ac178e1cc28cf1681790b3%2B\
the page is not added to my watchlist. Similarly, if I use
https://github.com/he7d3r/mw-gadget-AjaxRollbackLinks
and click in the same link, the page is not added to my watchlist either.

The API seems to be working in the following situation: I went to
https://pt.wikipedia.org/wiki/Especial:ApiSandbox#action=rollback&format=json&title=Wikip%C3%A9dia%3AP%C3%A1gina%20de%20testes%2F3&user=189.102.95.123&token=9d7071d4bcef40af391ad968fcea9858%2B\&summary=API%20TEST&markbot=&watchlist=nochange
and filled the parameters

  • title: Wikipédia:Página de testes/3
  • user: 189.102.95.123
  • token: 9d7071d4bcef40af391ad968fcea9858+\
  • summary: API TEST
  • markbot: [x]
  • watchlist: nochange

and submitted to make this rollback:
https://pt.wikipedia.org/w/index.php?title=Wikip%C3%A9dia%3AP%C3%A1gina_de_testes%2F3&diff=39117211&oldid=39101463

The API response was
{

"rollback": {
    "title": "Wikip\u00e9dia:P\u00e1gina de testes/3",
    "pageid": 3416004,
    "summary": "API TEST",
    "revid": 39117211,
    "old_revid": 39101463,
    "last_revid": 39097451
}

}
and the page was not added to my watchlist.

The token I provided was obtained from
https://pt.wikipedia.org/w/api.php?action=query&prop=revisions&rvtoken=rollback&titles=Wikip%C3%A9dia:P%C3%A1gina%20de%20testes/3

I was able to revert the edits
https://pt.wikipedia.org/w/index.php?diff=39125372
https://pt.wikipedia.org/w/index.php?diff=39125465
without having the pages added to my watchlist!

So it seems to be working now :-)

PS: What did you change?

On the other hand, the user page was added to my watchlist when I sent a warning
https://pt.wikipedia.org/w/index.php?diff=39125373