Wikipedia:Bots/Requests for approval/QEDKbot: Difference between revisions
Marcocapelle (talk | contribs) |
→Discussion: re |
||
Line 78: | Line 78: | ||
*::Perfect. [[User:Ivanvector|Ivanvector]] (<sup>[[User talk:Ivanvector|Talk]]</sup>/<sub>[[Special:Contributions/Ivanvector|Edits]]</sub>) 17:36, 10 February 2020 (UTC) |
*::Perfect. [[User:Ivanvector|Ivanvector]] (<sup>[[User talk:Ivanvector|Talk]]</sup>/<sub>[[Special:Contributions/Ivanvector|Edits]]</sub>) 17:36, 10 February 2020 (UTC) |
||
* Question: what will happen when an editor adds an article to the category ''after'' the category has been added to [[:Category:Empty categories awaiting deletion]]? [[User:Marcocapelle|Marcocapelle]] ([[User talk:Marcocapelle|talk]]) 22:53, 10 February 2020 (UTC) |
* Question: what will happen when an editor adds an article to the category ''after'' the category has been added to [[:Category:Empty categories awaiting deletion]]? [[User:Marcocapelle|Marcocapelle]] ([[User talk:Marcocapelle|talk]]) 22:53, 10 February 2020 (UTC) |
||
*:{{re|Marcocapelle}} Even after the list is fetched via the API, the bot performs two checks for each category: 1) "does the page exist?" 2) "does the category have no members?", failing either of which, the bot simply skips doing any action on the page. --<span style="font-family:'Trebuchet MS',Geneva,sans-serif">[[User:QEDK|qedk]] ([[User talk:QEDK|t]] <span style="color:#fac">桜</span> [[Special:Contributions/QEDK|c]])</span> 07:57, 11 February 2020 (UTC) |
Revision as of 07:57, 11 February 2020
Operator: QEDK (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 17:04, Saturday, February 8, 2020 (UTC)
Function overview: Deleting and nominating empty categories under WP:CSD#C1.
Automatic, Supervised, or Manual: Automatic
Programming language(s): Python (mostly Pywikibot and mwAPI)
Source code available: Not yet, will release on GitHub once deployed
Links to relevant discussions (where appropriate): See Wikipedia:Bots/Requests for approval/AnkitAWB 2, a previous version of this task run using AWB but tagged for deletion instead of deleting. Test runs were succesful, with one out of all nominated categories not being deleted (not due to a bot error).
Edit period(s): Weekly
Estimated number of pages affected: ~90k (<140k) (excludes hiddencats and includes all other categories with 0 members, even category redirects and possibly empty categories)
Namespace(s): Categories
Exclusion compliant (Yes/No): Yes
Adminbot (Yes/No): Yes
Function details:
General:
- The bot will go over all categories with no members.
- If the category does not exist, it will skip the page (this is necessary due to a lag in DB replicas).
Tagging:
- If the category is a category redirect, it will check for backlinks.
- If it has a talkpage and 1 backlink or if it has no talkpage and 0 backlinks, it adds the category Category:Empty categories with no backlinks, which can be assessed for CSD#G6 by other editors. A lot of these cat-redirects of these nature are implausible typos (which if in the article namespace would be eligible for R3) or meant for utility where this is none.
- If the category is tagged with
{{Db-c1}}
,{{Possibly empty category}}
,{{Disambiguation category}}
or its redirecting templates, it will skip the page. - If the category is not any of the above, it will nominate it for deletion under CSD#C1.
Deletion:
- It will check the Category:Empty categories awaiting deletion category.
- If the latest revision is from 7 days ago, and does not meet any above criteria (of being possibly empty or a redirect category), it will delete the page.
If possible, I'd like a split trial where we nominate a fixed number of categories and delete a fixed number of categories.
Discussion
- Note: This bot appears to have edited since this BRFA was filed. Bots may not edit outside their own or their operator's userspace unless approved or approved for trial. AnomieBOT⚡ 18:40, 8 February 2020 (UTC)
- @QEDK: Does "nominate it for deletion" mean nominate it for WP:CFD? Also note what the bot above me said. Jo-Jo Eumerus (talk) 18:47, 8 February 2020 (UTC)
- @Jo-Jo Eumerus: No, the bot will nominate it for CSD#C1. Apologies for the error above, all reverted now, and logging in userspace only. --qedk (t 桜 c) 18:49, 8 February 2020 (UTC)
- Preliminary testing here: User:QEDKbot/Catlog, looks good to me. Once, the deletion bit is set up, will log that too. --qedk (t 桜 c) 12:19, 9 February 2020 (UTC)
- Category redirects are not eligible for C1. Where is the community approval for this task as required by WP:ADMINBOT? — JJMC89 (T·C) 21:02, 9 February 2020 (UTC)
- @JJMC89: It does not nominate any redirect, disambiguation, CSD-nominated or non-empty category for deletion - only sorts them into a tracking category and nominates the rest for deletion which would meet C1. --qedk (t 桜 c) 21:14, 9 February 2020 (UTC)
- Either way, posted to AN. --qedk (t 桜 c) 21:20, 9 February 2020 (UTC)
- I know it doesn't, but you say the purpose of the tracking category is for
assess[ment] for CSD#C1 by other editors
. Assessment for C1 isn't needed since they are never eligible for C1. — JJMC89 (T·C) 21:33, 9 February 2020 (UTC)- @JJMC89: All category redirects aren't useful and can be deleted under G6 (if not C1), that's also what the
{{Category redirect}}
template says. --qedk (t 桜 c) 21:39, 9 February 2020 (UTC)- Assessment of category redirects should be done through WP:RFD, like all redirects. If there is a consensus that G6 can be applied to delete category redirects, please post a link to the discussion. C1 does not apply as category redirects are not categories, empty or otherwise. WP:G8 can apply if the target has been deleted. Ivanvector (Talk/Edits) 16:24, 10 February 2020 (UTC)
- I'm unsure what you're talking about, category redirects are categories, even if they are soft redirects to other categories. Assessment of all pages in the category namespace are done through WP:CFD, this is also evidenced from a lot of these category redirects which have backlinks to CFD (none to RFD afaik), where they were discussed and redirected in lieu of deletion. WP:CATRED is a subsection of CfD. --qedk (t 桜 c) 16:36, 10 February 2020 (UTC)
- Also, regarding the last bot run for categories, a lot of them were deleted under C1 or G6. G6 applies for all technical deletions or uncontroversial maintanence tasks, thus including deleting category redirects that are not useful. --qedk (t 桜 c) 16:40, 10 February 2020 (UTC)
- Well, they do come up at WP:RFD from time to time. Probably getting off-topic to your bot now, but (IMO) G6 shouldn't be used where another criterion applies. "Category redirects that are not useful" seems like a subjective criterion to me (who determines they're not useful?) but a redirect that points to a deleted page already qualifies for G8 deletion, that's what I meant. More specifically, a redirect that points at an empty category would be deleted (G8) when the category is deleted (C1), so determining the redirect's utility is a moot point. Ivanvector (Talk/Edits) 17:36, 10 February 2020 (UTC)
- Well, it would still be administrator discretion, the bot does not delete or tag for CSD, any category redirects, it is true that there's multiple routes it could go to. --qedk (t 桜 c) 19:19, 10 February 2020 (UTC)
- Well, they do come up at WP:RFD from time to time. Probably getting off-topic to your bot now, but (IMO) G6 shouldn't be used where another criterion applies. "Category redirects that are not useful" seems like a subjective criterion to me (who determines they're not useful?) but a redirect that points to a deleted page already qualifies for G8 deletion, that's what I meant. More specifically, a redirect that points at an empty category would be deleted (G8) when the category is deleted (C1), so determining the redirect's utility is a moot point. Ivanvector (Talk/Edits) 17:36, 10 February 2020 (UTC)
- Assessment of category redirects should be done through WP:RFD, like all redirects. If there is a consensus that G6 can be applied to delete category redirects, please post a link to the discussion. C1 does not apply as category redirects are not categories, empty or otherwise. WP:G8 can apply if the target has been deleted. Ivanvector (Talk/Edits) 16:24, 10 February 2020 (UTC)
- @JJMC89: All category redirects aren't useful and can be deleted under G6 (if not C1), that's also what the
- @JJMC89: It does not nominate any redirect, disambiguation, CSD-nominated or non-empty category for deletion - only sorts them into a tracking category and nominates the rest for deletion which would meet C1. --qedk (t 桜 c) 21:14, 9 February 2020 (UTC)
- I am aware of many maintenance categories which are tagged as such but not as {{empty category}} (in fact, one of which I removed from a page recently at [1]), as the already-provided category templates communicate mostly duplicate information. --Izno (talk) 04:15, 10 February 2020 (UTC)
- From preliminary testing, such categories are mostly not empty and should otherwise be eligible under C1? --qedk (t 桜 c) 05:48, 10 February 2020 (UTC)
- I didn't see it from the task list you posted at AN, but will your bot disregard maintenance categories that are intended to be empty? Ivanvector (Talk/Edits) 16:24, 10 February 2020 (UTC)
- @Ivanvector: As far as I am aware, maintanence categories that can be empty at a given time are tagged with
{{Possibly empty category}}
, so the bot will skip all of them. --qedk (t 桜 c) 16:30, 10 February 2020 (UTC)- Perfect. Ivanvector (Talk/Edits) 17:36, 10 February 2020 (UTC)
- @Ivanvector: As far as I am aware, maintanence categories that can be empty at a given time are tagged with
- Question: what will happen when an editor adds an article to the category after the category has been added to Category:Empty categories awaiting deletion? Marcocapelle (talk) 22:53, 10 February 2020 (UTC)
- @Marcocapelle: Even after the list is fetched via the API, the bot performs two checks for each category: 1) "does the page exist?" 2) "does the category have no members?", failing either of which, the bot simply skips doing any action on the page. --qedk (t 桜 c) 07:57, 11 February 2020 (UTC)