Aram created this task. Aram added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION Hi, I noticed some issues in category_redirect.py <https://gerrit.wikimedia.org/g/pywikibot/core/+/HEAD/scripts/category_redirect.py> that need improvement: - Running `python pwb.py -simulate -family:wikipedia -lang:ckb category_redirect -category:"دیاردە سروشتییەکان"` currently triggers `Checking hard-redirect category pages.` However, since a specific category is provided, there is no need to check hard and soft redirects separately. The script should process the given category immediately, regardless of the redirect type. - The command above only moves subcategories but does not move articles. I have not tested file movements. - There should be an additional option to specify the type of redirects to process. A new optional argument, `-type:hard`, could be used to work only with hard redirects, and `-type:soft` for soft redirects. If the option is not provided, the script should continue handling both cases as it does currently, but If the `-type:` added to the script, we don't need `Continue with soft category redirects` prompt anymore. Would appreciate any improvements on this! Thanks! TASK DETAIL https://phabricator.wikimedia.org/T385496 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Aram Cc: Aklapper, pywikibot-bugs-list, Aram, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, Hannolans, mys_721tx, Xqt, jayvdb, Masti, Alchimista
_______________________________________________ pywikibot-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
