rcshow filters are documented as being exclusive:
https://www.mediawiki.org/wiki/API:RecentChanges#query+recentchanges:rcshow
but (at least) rcshow=redirect now includes non-redirects as well
Introduced by T407087: Refactor WatchedItemQueryService::getWatchedItemsWithRecentChangeInfo and ApiQueryRecentChanges, specifically rMW6d717a5fb9fa: recentchanges: Migrate ApiQueryRecentChanges to ChangesListQuery
Original Bug report:
C:\pwb\GIT\core>py -3.13 -m pwb -site:wikipedia:test site_generators_tests -v TestRecentChanges.test_flags
tests: max_retries reduced from 15 to 3
test_flags (__main__.TestRecentChanges.test_flags)
Test the site.recentchanges() with boolean flags. ... FAIL
======================================================================
FAIL: test_flags (__main__.TestRecentChanges.test_flags)
Test the site.recentchanges() with boolean flags.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\pwb\GIT\core\tests\site_generators_tests.py", line 989, in test_flags
self.assertIn('redirect', change)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
AssertionError: 'redirect' not found in {'type': 'log', 'ns': 2, 'title': 'User:Kharlan test acctcreation 12412214211', 'pageid': 0, 'revid': 0, 'old_revid': 0, 'rcid': 943337, 'user': 'Kharlan test acctcreation 12412214211', 'oldlen': 0, 'newlen': 0, 'timestamp': '2025-10-29T08:39:25Z', 'comment': '', 'logid': 437789, 'logtype': 'newusers', 'logaction': 'create', 'logparams': {'userid': 71102}, 'tags': []}
----------------------------------------------------------------------
Ran 1 test in 4.574s
FAILED (failures=1)The API result contains wrong entries with redirect: False.
There is also a counterpart behaviour on test-wiki:
https://integration.wikimedia.org/ci/job/pywikibot-core-tox-deeptest-py313/194/console
I found the same problem with missing redirect on beta-wiki