Chlod Alejandro
41d31c3076
Use revision table instead of recentchanges
...
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
2024-11-13 02:14:03 +08:00
Translation updater bot
10f5a9b1bc
Localisation updates from https://translatewiki.net .
...
Change-Id: Ida5dd2ef1e896291d0ac33a961c3b28c71001794
2024-11-12 08:18:31 +01:00
Translation updater bot
6a0c3f7c21
Localisation updates from https://translatewiki.net .
...
Change-Id: Ib09994da42f75da2cc3269cdeea3739b324ed2df
2024-11-06 08:23:26 +01:00
Translation updater bot
0f71973333
Localisation updates from https://translatewiki.net .
...
Change-Id: I1fd3fc77a91dca60a4d44f2c153a3b7c1e68d39a
2024-11-05 08:33:21 +01:00
libraryupgrader
4f695d43ca
build: Updating mediawiki/mediawiki-codesniffer to 45.0.0
...
Change-Id: I9ac48c9d1253ecaaef6d70627286bf1c0eedf400
2024-11-02 22:51:22 +00:00
Translation updater bot
c606246c41
Localisation updates from https://translatewiki.net .
...
Change-Id: I88d1802c27148c7bd5af18b9101afe051ab04953
2024-10-31 08:16:06 +01:00
Kosta Harlan
f1d53c8244
SpecialNuke: Display username next to pages for temp accounts
...
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
2024-10-28 21:06:57 +01:00
Translation updater bot
00729bdd58
Localisation updates from https://translatewiki.net .
...
Change-Id: I3676166a36c5077218b027c950793c7cdfd01e7d
2024-10-28 08:23:35 +01:00
Translation updater bot
f7df81ba02
Localisation updates from https://translatewiki.net .
...
Change-Id: If81e7bffd15f92fb9789b71821acb9096b2d04ec
2024-10-25 09:51:07 +02:00
jenkins-bot
dd5715525e
Merge "Tag deletion logs performed with Nuke"
2024-10-22 03:38:45 +00:00
Kosta Harlan
0923015f4a
SpecialNuke: Don't add actor names WHERE if no names supplied
...
Why:
- If submitting the form with no conditions, the `$actornames` variable
will be an array with a single empty string, which means the WHERE
clause won't find any matches
What:
- Only add actor names to the WHERE clause if the array contains names
to check
Bug: T342785
Change-Id: I7f407695583c1d7ebaf81d116578bd336adc5c7f
2024-10-21 14:55:54 +00:00
jsn
98aa8d9942
Enable temp account lookup by IP address
...
- 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
2024-10-21 10:18:32 +02:00
Umherirrender
a31ea99a89
Use namespaced classes
...
Changes to the use statements done automatically via script
Change-Id: I8d0663b6d5c79c2177f8c6bee4fa97efe4f958de
2024-10-20 09:31:41 +02:00
Kgraessle
e42a881976
Tag deletion logs performed with Nuke
...
Bug: T366068
Change-Id: I3455fab45698884d0b32f0065aaaf9fe7c0c6916
2024-10-17 08:53:59 -05:00
Kosta Harlan
802f137751
build: Add phan config loading for CheckUser
...
See Ib0e90d1231117c7d6a0bb326832dfcd4575f4f1c for CI config change
Bug: T342785
Change-Id: I7d046759ae1937659e253a9f8e17af42c5e7a307
2024-10-17 13:27:43 +02:00
Kosta Harlan
3bc28520af
HooksTest: Add missing service argument to SpecialContributions
...
Change-Id: Ic071120172bf139af9c9d32a7966cd8b0b57cc7c
2024-10-17 13:25:18 +02:00
Translation updater bot
46c6b8b088
Localisation updates from https://translatewiki.net .
...
Change-Id: I2cb252238be0a903eff4242d68d3dbac4b6cfdee
2024-10-10 09:22:02 +02:00
Translation updater bot
61610bd2e6
Localisation updates from https://translatewiki.net .
...
Change-Id: Ia9ef97709b6ba79199341107fdd8ddab35905b19
2024-09-25 09:18:18 +02:00
Translation updater bot
f1e07d7c2e
Localisation updates from https://translatewiki.net .
...
Change-Id: I2c71b158e54478ddb635988bd5def108a4656fe7
2024-09-23 09:22:08 +02:00
Translation updater bot
b70c00db87
Localisation updates from https://translatewiki.net .
...
Change-Id: I66f8a25f5fee5f9ab70bff82d4bc4a31729597e7
2024-09-17 09:28:04 +02:00
Translation updater bot
fd303fcafb
Localisation updates from https://translatewiki.net .
...
Change-Id: I53157484b7514ac03f30310d4e9ff40e7884f4ff
2024-09-02 09:21:09 +02:00
Translation updater bot
d25640a199
Localisation updates from https://translatewiki.net .
...
Change-Id: I9d7557c159a559373717e7af02616dc2ca83002c
2024-08-28 09:39:23 +02:00
libraryupgrader
cac4fd9e42
build: Updating micromatch to 4.0.8
...
* https://github.com/advisories/GHSA-952p-6rrq-rcjv
Change-Id: I45188dcd4275a1a932d5aafd26b33f4ed532dab1
2024-08-25 06:47:08 +00:00
Translation updater bot
af1b98779a
Localisation updates from https://translatewiki.net .
...
Change-Id: Ifdb1a5758fa33e40b048bd6b3f071995630921c9
2024-08-19 09:24:12 +02:00
Translation updater bot
75ca30cfac
Localisation updates from https://translatewiki.net .
...
Change-Id: I55332435f3d580768a420a7edb8ee581deae42c3
2024-08-16 09:28:50 +02:00
Translation updater bot
c8cad23e2b
Localisation updates from https://translatewiki.net .
...
Change-Id: I76399179af1a1468f5a98edf9e9ed6c78ee41c3a
2024-08-15 09:20:48 +02:00
Translation updater bot
be6879f7f4
Localisation updates from https://translatewiki.net .
...
Change-Id: I64f42cf031124601ba9c96ed35cb919898e34b99
2024-08-13 09:51:35 +02:00
libraryupgrader
9562362c4f
build: Updating mediawiki/mediawiki-codesniffer to 44.0.0
...
Change-Id: Idd10f067e245721250183fb5c99e63f1ea748703
2024-08-12 17:03:49 +00:00
Matěj Suchánek
68269df6ea
Use SpecialPageFactory in SpecialNukeTest
...
Core's SpecialLog is not @newable, therefore the constructor
may change without notice (which has apparently happened
in 07db710).
Change-Id: I91964bcd787201c89c5eb6f623daba86d8d28d3e
2024-08-12 18:59:44 +02:00
Translation updater bot
bad287793a
Localisation updates from https://translatewiki.net .
...
Change-Id: I8bdcd28bb169caf2d627e974386570188d97f06b
2024-08-12 09:22:58 +02:00
Translation updater bot
0ce11c533f
Localisation updates from https://translatewiki.net .
...
Change-Id: I41b59f0e7e1ff0346037f2dc13407294b1ddb1f2
2024-08-08 09:20:17 +02:00
Translation updater bot
8e16152da0
Localisation updates from https://translatewiki.net .
...
Change-Id: Iec4bf2056ae10b6835fe046eb7a637d387b745a1
2024-08-05 09:25:29 +02:00
Translation updater bot
926f1380ca
Localisation updates from https://translatewiki.net .
...
Change-Id: I16066b66e218c50ef2c2a9b650ee7789be32fac3
2024-07-29 09:27:53 +02:00
Translation updater bot
63e222f97c
Localisation updates from https://translatewiki.net .
...
Change-Id: I98a99efc1385902a09c8f1a001cfbb4a40ca3618
2024-07-22 09:25:23 +02:00
Bartosz Dziewoński
44005c405e
Use stable andExpr() / orExpr() methods
...
Change-Id: Iacabf4a896d2c8460d84fa3d0a57aa640794e5c7
2024-07-11 16:38:34 +00:00
Translation updater bot
adad3699cd
Localisation updates from https://translatewiki.net .
...
Change-Id: I89cc83f67cec8fb0426040c59e34225059ae2a0b
2024-07-08 09:33:31 +02:00
Translation updater bot
f68a04ee8d
Localisation updates from https://translatewiki.net .
...
Change-Id: Iaf8ddd2bfd9cf2ecec46c372f165da4e449681e2
2024-07-03 09:27:01 +02:00
Translation updater bot
aef3720ad5
Localisation updates from https://translatewiki.net .
...
Change-Id: I527fe1676f436010e70c3c11232b4e3ccb784c36
2024-06-21 09:42:38 +02:00
libraryupgrader
3feb077eca
build: Updating npm dependencies
...
* eslint-config-wikimedia: 0.28.0 → 0.28.2
* grunt-stylelint: 0.20.0 → 0.20.1
* stylelint-config-wikimedia: 0.17.1 → 0.17.2
Change-Id: I6e210c749dcab252db3b4d76f1b58a00bab59569
2024-06-21 05:52:05 +00:00
Translation updater bot
5b4b45c09b
Localisation updates from https://translatewiki.net .
...
Change-Id: I39f375567d3f67e143539821fee27e4f339ca874
2024-06-17 09:32:01 +02:00
Translation updater bot
48ba2820df
Localisation updates from https://translatewiki.net .
...
Change-Id: Id9ac55ba0c332c6f4ccea62821d9d527bec13157
2024-06-13 09:28:45 +02:00
Translation updater bot
34b9bec36a
Localisation updates from https://translatewiki.net .
...
Change-Id: Ie22b50e518450fad47a1377e0b25743053d84d58
2024-06-12 09:22:33 +02:00
Translation updater bot
91a1adb511
Localisation updates from https://translatewiki.net .
...
Change-Id: Iaae674a39d47f71dbec44c23ebbe7be90efc16b6
2024-06-11 09:55:06 +02:00
Umherirrender
faea05e4d1
Use namespaced HTMLForm class
...
Change-Id: Ifeac10c6d07d492e42a5a20fbc3b93a396329650
2024-06-09 18:58:16 +02:00
libraryupgrader
d77264eea8
build: Updating npm dependencies
...
* eslint-config-wikimedia: 0.27.0 → 0.28.0
* grunt-stylelint: 0.19.0 → 0.20.0
* stylelint-config-wikimedia: 0.16.1 → 0.17.1
Change-Id: I4cbff7ef3f28a3478c40927a7d09f6e9f4a88b5b
2024-06-08 01:30:02 +00:00
Translation updater bot
a0f210db8a
Localisation updates from https://translatewiki.net .
...
Change-Id: Ifddb1a439dfbb5d9b8c7932c79411993e021ead4
2024-06-05 09:23:32 +02:00
Translation updater bot
8fc7ee314c
Localisation updates from https://translatewiki.net .
...
Change-Id: I5485874d591bb9a555533d1e665219c9e58b48b8
2024-06-03 09:32:22 +02:00
Translation updater bot
7beba6d2c8
Localisation updates from https://translatewiki.net .
...
Change-Id: I800b56ccc6dc2b0d8cf8ed1775ddd2182583af9d
2024-05-27 09:29:32 +02:00
Chlod Alejandro
a0eb145847
Add tests for hook handler
...
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
2024-05-22 01:25:05 +08:00
jenkins-bot
2794f04b35
Merge "Add more tests"
2024-05-20 20:18:10 +00:00