There is -ns:not and -titleregexnot and -onlyifnot and -withoutinterwiki. We should make them behave similar.
Is better:
- -ns:not
- -titleregexnot
- -withoutinterwiki
Or anything else?
There is -ns:not and -titleregexnot and -onlyifnot and -withoutinterwiki. We should make them behave similar.
Is better:
Or anything else?
Change 499199 had a related patch set uploaded (by Dvorapa; owner: Dvorapa):
[pywikibot/core@master] [IMPR] Unify negative page generators
Change 499199 abandoned by Dvorapa:
[IMPR] Unify negative page generators
Reason:
accidentally openned
Hi @Dvorapa I would like to work on this task. I found all of those commands in this file: https://phabricator.wikimedia.org/diffusion/PWBC/browse/master/pywikibot/pagegenerators.py.
Can someone hint me what needs to be done here? Thanks!
@Dvorapa I'd like to ask for some clarification here. Are you suggesting that it'd be best to drop some negative page generator arguments in favor of a not suffix to positive arguments, i.e.:
-titleregexnot --> titleregex:not,
and
-withoutinterwiki --> interwiki:not
etc.? From the feature request and the previous name of the request, I assume this is what you want.
Also, one other pair not mentioned is grep and grepnot, I assume unification is desired here as well
Change 692755 had a related patch set uploaded (by Chris Maynor; author: Chris Maynor):
[pywikibot/core@master] pagegenerators: Unify negative page generation
@Xqt could you elaborate? I believe I've implement something pretty similar in the latest patch set, except it's 'not:<option>' instead of 'not-<option>'.
@maynorc: Per emails from Sep18 and Oct20 and https://www.mediawiki.org/wiki/Bug_management/Assignee_cleanup , I am resetting the assignee of this task because there has not been progress lately (please correct me if I am wrong!). Resetting the assignee avoids the impression that somebody is already working on this task. It also allows others to potentially work towards fixing this task. Please claim this task again when you plan to work on it (via Add Action... → Assign / Claim in the dropdown menu) - it would be welcome. Thanks for your understanding!
@Xqt, I have made the necessary changes in code for this task, however I am unable to verify it as I cannot find any method of sending the code for system testing. Any idea on that?
Also, I have raised a pull request for the same. Here's the link : https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1037477
This task mixes two kinds of things.
-withoutinterwiki corresponds to https://en.wikipedia.org/wiki/Special:WithoutInterwiki. It is not a filter, it is a generator. Let's not touch that argument.
-ns(:not) and -titleregex(not) are filters. There is also -grep(not) and -onlyif(not). If anything, these should be unified.
Change #1037477 had a related patch set uploaded (by Aklapper; author: Ssm.allrounder):
[pywikibot/core@master] Parsing the :not operator to handle titleregex:not and interwiki:not