Last modified: 2014-02-05 17:26:00 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 T54195, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52195 - wm-bot doesn't notice when request pages are deleted
wm-bot doesn't notice when request pages are deleted
Status: RESOLVED FIXED
Product: Utilities
Classification: Unclassified
WM-Bot (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Peter Bena
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-28 17:52 UTC by Tim Landscheidt
Modified: 2014-02-05 17:26 UTC (History)
0 users

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


Attachments

Description Tim Landscheidt 2013-07-28 17:52:05 UTC
At the moment, wm-bot reports:

| Warning: There are 2 users waiting for shell, displaying last 2:
|          Jimi1337 (waiting 4514 minutes) MKar (waiting 1482 minutes)

However, these requests have already been deleted, but wm-bot seems to cache them on its own indefinitely.

SMW provides lists of request pages via the API (Emacs Lisp syntax):

| (concat
|  "https://wikitech.wikimedia.org/w/api.php"
|  "?action=ask"
|  "&query=" (url-hexify-string "[[Category:Shell Access Requests]] [[Is Completed::No]]|?Shell Request User Name")
|  "&format=json")

and:

| (concat
|  "https://wikitech.wikimedia.org/w/api.php"
|  "?action=ask"
|  "&query=" (url-hexify-string "[[Category:Tools Access Requests]] [[Is Completed::No]]|?Tools Request User Name")
|  "&format=json")
Comment 1 Peter Bena 2013-08-22 07:49:41 UTC
SMW is too slow and JSON is too bleh, but I will try to make some function that checks if the page was deleted. Right now it display the pages as long as they are not flagged as processed (when you delete it before you flag it as processed, it is in fact, never processed)

A simple workaround is to flag pages as processed instead of deleting them (and eventually delete them after few minutes)
Comment 2 Tim Landscheidt 2013-08-22 14:05:43 UTC
(In reply to comment #1)
> SMW is too slow and JSON is too bleh, but I will try to make some function
> that
> checks if the page was deleted. Right now it display the pages as long as
> they
> are not flagged as processed (when you delete it before you flag it as
> processed, it is in fact, never processed)

Eh, what?  The query above returns in 0.868 s.  From Tools, I get responses in between 0.387 s and 0.063 s.  JSON is just one example, the API supports other formats.

I know how wm-bot processes the requests currently, that's why I filed this bug.

> A simple workaround is to flag pages as processed instead of deleting them
> (and
> eventually delete them after few minutes)

This problem exists also for moved pages leaving redirects behind.

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


Navigation
Links