This adds the following to the post-delete page:
* Number of pages queued for deletion (or deleted immediately)
* Username, talk page link, and Special:Block link for the target
(if the target is a user)
* Number of pages not queued for deletion (i.e. skipped)
* List of pages not queued for deletion
This adds relevant tests, and also modifies the "uploadTestFile"
utility function, which now randomizes file name to ensure that
files uploaded by users regardless of title are also deleted.
Bug: T364223
Bug: T364225
Change-Id: I60cf1a1c54cdaa3ae4570b4d2bef7e7cf39b47e5
Adds `tag-nuke` and `tag-nuke-description` messages for user in
Special:Tags and changes the canonical tag name to "nuke" instead
of "Nuke".
Bug: T379168
Change-Id: Ic8846781cdac3bf08c6733f39d0cc5988fb09f6a
This switches Nuke over to using the `revision` table instead
of `recentchanges`, allowing a wider timespan of pages to be
deleted. As a DoS prevention measure, this adds the
`$wgNukeMaxAge` config option (defaulted to the value of
`$wgRCMaxAge`) and a max execution time for the SELECT
(set to `$wgMaxExecutionTimeForExpensiveQueries`).
This also adds a relevant test.
Partially based off of I6c2b7e6b695d58a7dcba93ccaeba9ed35d81cf80.
Bug: T379147
Co-Authored-by: Kgraessle <kgraessle@wikimedia.org>
Change-Id: I5d68d2663751783bcc773799e951f74866ceb722
Why:
- When deleting pages created by temporary accounts via inputting an IP
address, it's useful to see which temporary accounts were involved in
creating the pages. This is currently not displayed because
$row->rc_user_text is not set
What:
- Fetch the actor_name field unconditionally
- Display the page using the actor_name field
- Update tests for the change
Bug: T342785
Change-Id: Ic4112985874343ede78c4571bdfccc58977c5345
- Adds a soft dependency on CheckUser
- Lists pages created by IP user or temp acccounts associated with IP
address when the lookup is available
Bug: T342785
Depends-On: I45a18f1fcf1a17bdaeefabebcd2f67a946a2cc2e
Change-Id: Idcdd7d787180e8e99fdcbe856e4fc237d9721824
Core's SpecialLog is not @newable, therefore the constructor
may change without notice (which has apparently happened
in 07db710).
Change-Id: I91964bcd787201c89c5eb6f623daba86d8d28d3e
This *should* get Nuke to 100% line coverage now.
Also moves SpecialNukeTest to an integration/ subfolder, and makes
applicable changes, since there's now two integration tests.
Follow-Up: Ic15d4431dc8509ac2732ebce7517522e27d8f5a3
Change-Id: I4355b12647cb1a4cc163467d23166d7fa1aade9e
- Add tests to reach 100% coverage
- Ignore some methods which are simple enough
- Change some tests to fit with the new ones
Change-Id: Ic15d4431dc8509ac2732ebce7517522e27d8f5a3
The search is against the MediaWiki-DB-encoded title (with '_' for space
and initial uppercase letter): these constraints are converted in this
patch to let the user use MediaWiki-displayed titles if they want.
It was taken care about of the configuration-specific case where some
namespaces are first-case-insensitive but other namespaces are first-case-
sensitive, by partitioning the namespace space into to distinct spaces.
Bug: T234726
Co-authored-by: Chlod Alejandro <chlod@chlod.net>
Change-Id: Id83832c256660b691a896113c98641700ed02707
Add a basic unit test for HookRunner to improve coverage and
validate arguments between hook runner and hook interfaces.
Change-Id: I3cb332abf9aefbb1cb435188cbf5938f4bcda0c5