User talk:Lucas Werkmeister/QuickCategories

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search

pending commands[edit]

@Ash Crow and Strakhov: I’ve just reset some commands in batches of yours which were stuck in the “pending” state (should be run soon, but for some reason – most likely a bug in the tool – it never happened) to the default “planned” state. Specifically, these ones:

You might want to run some of these commands again to make sure they’re properly settled – hopefully they’ll work correctly now. Sorry for the inconvenience. --Lucas Werkmeister (talk) 11:32, 1 May 2019 (UTC)

Thanks! I'll give it a look! Strakhov (talk) 11:36, 1 May 2019 (UTC)
Hi, those batches were mostly each time the previous one without the blocking line (which I treated by hand then, which permitted me to see that the problem was protected categories), so running them again is useless. -Ash Crow (talk) 07:01, 2 May 2019 (UTC)

Feature request[edit]

Hey Lucas, thank you for this awesome tool! I do have an idea, how to make it even more useful but no clue how easy or hard it would be to implement this. Since batch category jobs are quite often created with PetScan, would it be possible create a batch here using a PagePile id? That would make life so much easier. What do you think, feasible? Cheers, --MB-one (talk) 12:11, 18 May 2019 (UTC)

@MB-one: I assume you mean the actions would be the same for each page? That should be possible, though I’m not very familiar with the PagePile system – do you perhaps have an example link or something? --Lucas Werkmeister (talk) 11:34, 26 May 2019 (UTC)
Yes, the action would have to be the same for each page/file/category. Unfortunately, I can't provide much information on the inner workings of PagePile either. You can find example page piles at https://tools.wmflabs.org/pagepile/?menu=recent.
Cheers --MB-one (talk) 19:34, 26 May 2019 (UTC)
@MB-one: This is now available at toolforge:quickcategories/batch/new/pagepile, please try it out! I’ll send a pull request to Magnus to add a link from the PagePile tool as well. --Lucas Werkmeister (talk) 12:05, 1 June 2019 (UTC)
Works great. Thank you! --MB-one (talk) 13:51, 1 June 2019 (UTC)

No sort key support[edit]

This would actually be the most interesting part for me. I can query the database for possibly wrong/missing sort keys, choose new ones based on some pattern matching but I haven't got a tool to replace them. So I'm looking forward to support for this. --Matěj Suchánek (talk) 16:25, 23 May 2019 (UTC)

@Matěj Suchánek: thanks, that’s good to know! I’ve had sort key support on my to-do list for a while, but thought it wouldn’t be a very useful feature and therefore not a high priority. It’ll probably be at least a few more days before I have the time to work on it, but I can already show you what I’ve planned:
+Category:Cat#sort key
add with this sort key but only if no category link present
+Category:Cat##sort key
add with this sort key, or add sort key to existing category link if it doesn’t have one
+Category:cat###sort key
add with this sort key, or add/replace sort key of existing category link
-Category:cat#sort key
remove category link but only if it has this sort key
What do you think? I figured that the ## case would probably be the most common one (assuming that, if there already is a sort key, it might be better than what the user would add), but it sounds like you would use the ### case instead. --Lucas Werkmeister (talk) 11:29, 26 May 2019 (UTC)
Thanks for your reply. It looks great to me and I like that the user will need to explicitly specify the prerequisites. Unless I'm missing something, there should be also a possibility to remove just the sort key and leave the category with the default one.
In fact, I'm more likely to use ##. --Matěj Suchánek (talk) 12:29, 26 May 2019 (UTC)
To remove the sort key, you’d use ### without a sort key behind it (i. e. with an empty sort key). I’ll make sure the tool does the right thing in that case (i. e. not [[Category:Foo|]], because I have no idea what the pipe trick does to category links.) --Lucas Werkmeister (talk) 21:42, 27 May 2019 (UTC)
@Matěj Suchánek: Sort key support is available now! --Lucas Werkmeister (talk) 22:31, 30 May 2019 (UTC)
Very nice, thank you! I'm currently too busy to start testing and using it but I promise I will provide you with soem feedback soon. --Matěj Suchánek (talk) 15:39, 2 June 2019 (UTC)

wiki read-only[edit]

Hi @Lucas Werkmeister:, first of all, thanks for this awesome tool! I was for some time looking for something similar and was glad to find QuickCategories. Unfortunately, I caused some trouble. One status of the tasks of my job #393 was "wiki read-only", which seemed to have stopped the whole batch job. At the moment I'm not able to see which of the categories is actually affected as:

  • going to page two of the tasks causes an internal server error
  • changing the limit as per url parameter doesn't seem to be possible.

Can you help me with that? Thanks a lot, --Tomukas (talk) 16:15, 8 August 2019 (UTC)

@Tomukas: Thanks for the bug report! I’ve fixed the issue when viewing the second page – it was display-only, and the tool automatically resumed the batch after half an hour and retried the failed command (that’s why it now shows 101 commands instead of 100), so there’s nothing more you need to do :) --Lucas Werkmeister (talk) 17:43, 8 August 2019 (UTC)