Last modified: 2014-10-07 07:47:11 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 T63555, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61555 - Check for new messages on wiki during bot run
Check for new messages on wiki during bot run
Status: NEW
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-19 20:08 UTC by Merlijn van Deen (test)
Modified: 2014-10-07 07:47 UTC (History)
2 users (show)

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


Attachments

Description Merlijn van Deen (test) 2014-02-19 20:08:43 UTC
At the moment (at least for core, and probably also for compat), new messages are only seen if the bot is restarted. For long-running bots, it's sensible to break/pause/stop editing on a certain wiki when a talk page is edited.

Getting the info from the wiki is easy -- just add meta=userinfo&uiprop=hasmsg to the api query. Afterwards, meta=notifications can be used for details.

Added bonus: every api query returns a check whether the user is still logged in correctly.
Comment 1 Ricordisamoa 2014-03-16 03:06:28 UTC
(In reply to Merlijn van Deen from comment #0)

Every n seconds? Or every x edits?
Comment 2 Gerrit Notification Bot 2014-06-06 19:07:54 UTC
Change 137980 had a related patch set uploaded by Ricordisamoa:
PROOF-OF-CONCEPT: check own talk, a custom page, and notifications

https://gerrit.wikimedia.org/r/137980
Comment 3 Merlijn van Deen (test) 2014-06-11 15:07:32 UTC
Just a quick note -- when tracing the http calls made by pywikibot, I noticed it already does a lot of 'check user status' calls, including a check for talk page messages. I haven't traced where these calls come from, though, and AFAIK the bot also doesn't respond to the information.
Comment 4 John Mark Vandenberg 2014-10-07 07:47:11 UTC
no code to review yet

(In reply to Merlijn van Deen from comment #3)
> Just a quick note -- when tracing the http calls made by pywikibot, I
> noticed it already does a lot of 'check user status' calls, including a
> check for talk page messages. I haven't traced where these calls come from,
> though, and AFAIK the bot also doesn't respond to the information.

Ive only seen that in the log init code, which we have a bug & patch about.

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


Navigation
Links