Page MenuHomePhabricator

Migrate https://toolserver.org/~erwin85/randomarticle.php to Tool Labs
Closed, ResolvedPublic

Description

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/


Version: unspecified
Severity: normal

Details

Reference
bz60871

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:56 AM
bzimport added a project: Tool-Erwin's-tools.
bzimport set Reference to bz60871.
Magnus created this task.Feb 5 2014, 11:03 AM
silke added a comment.Jun 4 2014, 1:35 PM

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...

(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

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.

When I try it now, it also seems to work for commons. How exactly can I see what isn't working?

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?

silke added a comment.Jun 27 2014, 8:52 AM

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

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.

Merl added a comment.Jul 2 2014, 11:01 AM

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.

TTO added a comment.Jul 2 2014, 11:47 AM

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

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.

I tried today, and the simple version is working now as well. Not sure if something changed, but closing off this one.