Last modified: 2014-08-06 12:03:38 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 T62871, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60871 - Migrate https://toolserver.org/~erwin85/randomarticle.php to Tool Labs
Migrate https://toolserver.org/~erwin85/randomarticle.php to Tool Labs
Status: RESOLVED FIXED
Product: Tool Labs tools
Classification: Unclassified
Erwin's tools (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: Andre Koopal
:
Depends on:
Blocks: 58865
  Show dependency treegraph
 
Reported: 2014-02-05 11:03 UTC by Magnus Manske
Modified: 2014-08-06 12:03 UTC (History)
5 users (show)

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


Attachments

Description Magnus Manske 2014-02-05 11:03:19 UTC
Code is already on Labs, "just" needs to be fixed to run there. Please join the tool "erwin85" there and help!

http://tools.wmflabs.org/erwin85/
Comment 1 Silke Meyer (WMDE) 2014-06-04 13:35:09 UTC
Am I right in thinking the tool is working in Tool Labs? If so, I would ask Nosy to create a redirect as erwin85's toolserver account has expired anyway...
Comment 2 Nemo 2014-06-23 13:52:00 UTC
(In reply to Silke Meyer (WMDE) from comment #1)
> Am I right in thinking the tool is working in Tool Labs?

No, it's not working, even without recursion: "Fatal Error: Database query failed." https://tools.wmflabs.org/erwin85/randomarticle.php?lang=it&family=wikiquote&namespaces=0&categories=Da+controllare&subcats=1&d=0&action=0&submit=Submit

Magnus, can we redirect the users to bawolff's Special:RandomInCategrory on the target wiki where &d=0 ?

Raising priority because this is in the top 15 or so most visited non-migrated tools.
http://lists.wikimedia.org/pipermail/toolserver-l/2014-June/006559.html
Comment 3 Andre Koopal 2014-06-25 19:24:14 UTC
Now it is, fix was simple, use the correct database, same as with related_changes. Only this one is also not working with commons, one I don't understand.
Comment 4 Silke Meyer (WMDE) 2014-06-26 10:08:51 UTC
When I try it now, it also seems to work for commons. How exactly can I see what isn't working?
Comment 5 Andre Koopal 2014-06-26 17:11:57 UTC
What are you exactly filling in? If I choose commons, and either leave the box before that empty or fill in commons as well, and choose some category (I picked windmills), I get database errors.

Can you pick as action 'show link to' and provide that link?
Comment 6 Silke Meyer (WMDE) 2014-06-27 08:52:27 UTC
I picked project = commons, all namespaces, categories = wildmills, include subcategories = yes, depth = 0, I am redirected to either a windmill or a category of windmills.
https://tools.wmflabs.org/erwin85/randomarticle.php?lang=commons&family=wikipedia&namespaces=-1&categories=windmills&subcats=1&d=0&action=1&submit=Submit
Comment 7 Andre Koopal 2014-06-27 10:53:30 UTC
ahh, you leave family (the dropdown box) to wikipedia. Strange that works, I will debug a bit more later. Not sure if I manage quickly, otherwise it is for the hackathon at wikimania.
Comment 8 merl 2014-07-02 11:01:42 UTC
I am creating a replacement tools at http://tools.wmflabs.org/random

Welcome site and instruction still missing but redirecting to a radom page of the whole subtree already works using url

http://tools.wmflabs.org/random/redir/article/[dbname]/[category]

example:
http://tools.wmflabs.org/random/redir/article/dewiki/Informatik

This tools is using redis as cache and will also work if labs database is down.
Comment 9 This, that and the other (TTO) 2014-07-02 11:47:38 UTC
It's been migrated [1], and appears to work.

However, the "simple" version [2], linked from the introductory text of the normal version, doesn't work. 

[1] https://tools.wmflabs.org/erwin85/randomarticle.php
[2] https://tools.wmflabs.org/erwin85/randomarticle.simple.php
Comment 10 Andre Koopal 2014-07-02 23:35:01 UTC
Commons is working now as well.

Had a quick look at 'simple', changed the database calls there as well, but that was not enough, need more investigations.
Comment 11 Andre Koopal 2014-08-06 12:03:38 UTC
I tried today, and the simple version is working now as well. Not sure if something changed, but closing off this one.

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


Navigation
Links