Commons:Requests for comment/Technical needs survey/"Building block" tool to select files
"Building block" tool to select files[edit]
Description of the Problem[edit]
- Problem description: We have several tools for Commons maintenance that, as part of their action, select files or file pages (and in some cases, where it makes sense, category pages) to be acted upon. Each currently has its own selection mechanism. Each provides methods of selection that would be useful in the others.
Tools involved include at least [feel free to edit]:
- VFC:
- Can select from a category? Yes
- Can select from a search result? Yes
- Can select subcategory pages to be acted upon? No, even though at times it would make sense (e.g. to notify for a mass CfD.)
- Can select file pages to be acted upon? Yes
- Further remarks: can be a bit slow to load files for selection (which it does in batches of 100). Has some good methods to hover and see information about a file. Easy to open any given file in a new window during selection.
- Cat-a-lot:
- Can select from a category? Yes
- Can select from a search result? Yes
- Can select subcategory pages to be acted upon? Yes
- Can select file pages to be acted upon? Yes
- Further remarks: Uses the regular cat page loading to allow files/subcats to be chosen, which is a lot quicker to load than VFC, but does not allow the hovering for information; also means you can only act on the content of one page at a time (200 files).
- massrename:
- Can select from a category? Yes
- Can select from a search result? No, and this would certainly make sense
- Can select subcategory pages to be acted upon? No, and this would certainly make sense
- Can select file pages to be acted upon? Not really. Acts on all filenames that match the regex, and there is no convenient way to say "except these." In practice, you can use VFC or Cat-a-lot to add a temporary maintenance category to the files you want to act on, then act on them with massrename, then use VFC or Cat-a-lot to remove the temporary maintenance category
- Further remarks: Provides a regex-based selection of files that would be nice to be able to combine with other methods of selection.
- AWB:
- Can select from a category? Yes
- Can select from a search result? Yes
- Can select subcategory pages to be acted upon? No, and this would certainly make sense
- Can select file pages to be acted upon? Yes, but not visually. Acts on all pagenames that match the regex, and there is no convenient way to say "except these," without using the list management features or deleting pages from the list. In practice, you can use AWB, VFC, or Cat-a-lot to add a temporary maintenance category to the pages you want to act on, then act on them with AWB, then use AWB, VFC, or Cat-a-lot to remove the temporary maintenance category
- External tool, maintained on English Wikipedia. Runs on the local computer using Windows Vista and later. Very powerful using No Limits Plugin, so right to use it on Commons must be requested at COM:RFR#AutoWikiBrowser access, and rights to use it most effectively on Commons must be requested at COM:BRFA (to run unattended in bot mode) and COM:RFA (to delete files in Admin mode).
- Others?
- Proposal type: feature request
- Proposed solution:
We could have a common "building block" or component that would embrace all of the current methods of selection. Tools could then be re-implemented to take advantage of that. Or, each of the existing selection mechanisms could be abstracted, with a clean interface providing a list of selected files, allowing "mix and match" for selection method and what tool you are using.
- Phabricator ticket:
- Further remarks:
Not all methods would necessarily make sense for all tools, so there needs to be some ability to turn features on and off when using the building block.
Discussion[edit]
Proposed by - Jmabel ! talk 01:02, 4 January 2024 (UTC)
- i think, cat-a-lot can be understood as being capable of "selecting from a search result". you can do that on a special:search page.
- this building block mechanism would be really useful. it could be used for new tools like to licence review files from the same batch. RZuo (talk) 06:53, 4 January 2024 (UTC)
- Corrected Cat-a-lot + search. - Jmabel ! talk 20:06, 4 January 2024 (UTC)
Do I understand the proposal correct that you want some kind of JavaScript library for easy development of tools? Basically Pywikibot for the web browser. GPSLeo (talk) 17:15, 15 January 2024 (UTC)
- @GPSLeo: That would be helpful for those who cannot yet understand Python. — 🇺🇦Jeff G. ツ please ping or talk to me🇺🇦 10:49, 17 January 2024 (UTC)
Votes[edit]
- Support. — 🇺🇦Jeff G. ツ please ping or talk to me🇺🇦 13:12, 4 January 2024 (UTC)
- Support. - Chris.sherlock2 (talk) 03:34, 5 January 2024 (UTC)
- @Jeff G.: I don't use AWB, so this is a question from pure ignorance. For AWB, in the bullet point "Can select file pages to be acted upon?", you mention using AWB itself to add a temporary category to indicate selection for AWB. If it can do that at all well, why can't you use the same approach just to select the file pages to be acted upon? - Jmabel ! talk 19:46, 5 January 2024 (UTC)
- @Jmabel: One can use multiple passes with different tools to do different things. For instance, I once had a request special:diff/806250451 to fix the spelling "univeristy" as highlighted in this search, which showed many files including that in the filename, as well as many files including that in the wikitext. I was able to fix the filenames as described at "second renaming job" on User:Jeff G./massrename. For the wikitext, it wasn't just in file description pages, it was also in namespaces 0, 12, 14, 100, and 106, so VFC was out. I didn't categorize with that portion of that job, but I could have; instead, I just managed the internal list, making sure not to "fix" the request on my user talk page or any other talk pages, noticeboards, or archives. I documented the result at special:diff/807068043. So yes, AWB can add and remove cats, but it's not the best tool for doing that quickly in my tool chest. What I use it for nearly every day is purging the files in Category:Incomplete deletion requests - missing subpage and then that cat and pages which rely on it, because when I don't do that, files that shouldn't be there tend to linger there. — 🇺🇦Jeff G. ツ please ping or talk to me🇺🇦 19:46, 6 January 2024 (UTC)
- I'm not following that, probably because it's a tool I don't use. No need for us to discuss it further here, though. - Jmabel ! talk 01:01, 7 January 2024 (UTC)
- @Jmabel: One can use multiple passes with different tools to do different things. For instance, I once had a request special:diff/806250451 to fix the spelling "univeristy" as highlighted in this search, which showed many files including that in the filename, as well as many files including that in the wikitext. I was able to fix the filenames as described at "second renaming job" on User:Jeff G./massrename. For the wikitext, it wasn't just in file description pages, it was also in namespaces 0, 12, 14, 100, and 106, so VFC was out. I didn't categorize with that portion of that job, but I could have; instead, I just managed the internal list, making sure not to "fix" the request on my user talk page or any other talk pages, noticeboards, or archives. I documented the result at special:diff/807068043. So yes, AWB can add and remove cats, but it's not the best tool for doing that quickly in my tool chest. What I use it for nearly every day is purging the files in Category:Incomplete deletion requests - missing subpage and then that cat and pages which rely on it, because when I don't do that, files that shouldn't be there tend to linger there. — 🇺🇦Jeff G. ツ please ping or talk to me🇺🇦 19:46, 6 January 2024 (UTC)
- @Jeff G.: I don't use AWB, so this is a question from pure ignorance. For AWB, in the bullet point "Can select file pages to be acted upon?", you mention using AWB itself to add a temporary category to indicate selection for AWB. If it can do that at all well, why can't you use the same approach just to select the file pages to be acted upon? - Jmabel ! talk 19:46, 5 January 2024 (UTC)
- Support MGeog2022 (talk) 20:10, 16 January 2024 (UTC)
- Support - Jmabel ! talk 23:51, 21 January 2024 (UTC)
- Support Pi.1415926535 (talk) 23:36, 22 January 2024 (UTC)
- Support — Draceane talkcontrib. 08:18, 23 January 2024 (UTC)
- Support Jklamo (talk) 08:40, 23 January 2024 (UTC)
- yes.--RZuo (talk) 11:57, 23 January 2024 (UTC)
- Support Daniel Case (talk) 02:43, 2 February 2024 (UTC)
- Support SWinxy (talk) 03:02, 6 February 2024 (UTC)