jenkins-bot
93c477d4b8
Merge "Move parser classes to a dedicated namespace"
2020-12-09 10:48:36 +00:00
Daimona Eaytoy
97cf7df3fa
migrateAflFilter: Add missing quotes to raw value in a DB query
...
Change-Id: I365407eaa02bc57a25db9fa64157c3f3f54398e0
2020-12-09 09:26:43 +01:00
jenkins-bot
ee93ee7ded
Merge "Remove more BC code"
2020-12-09 02:11:40 +00:00
Daimona Eaytoy
8b21c994fd
Remove more BC code
...
Bug: T187153
Change-Id: I0c74b855893c7da8ab531e67a0aac298aed32c2c
2020-12-09 02:40:55 +01:00
Daimona Eaytoy
d16dde9a74
migrateAflFilter: fix DB substring usage
...
Indexes are 1-based for all DBMSs we support.
Change-Id: Ida4b2bf972d224b386b65d84807d532d33db8c95
2020-12-09 02:30:27 +01:00
Daimona Eaytoy
da1c71ec4c
Move parser classes to a dedicated namespace
...
Names were kept for now.
Change-Id: Ib2eb5d7b523a64f2a0f72fdcdde2043a76cc9a37
2020-12-09 01:30:20 +00:00
Daimona Eaytoy
f41fe76df7
Kill $wgUser
...
Depends-On: Iadbce7501e42971901f6d9efcb2810ae42be51d8
Depends-On: I624610cb2372db200995c8d01d62b1d74efca19e
Change-Id: I51d99c30fbc0e87c038013bf5b8c27b1c735e977
2020-12-08 23:23:13 +00:00
Daimona Eaytoy
ca3f652cd7
Almost kill the last use of wgUser
...
This is the last use, and it was a bit harder to remove because it was
buried inside AFComputedVariable. Starting with
I4444cada720ab62d187f2dd0c4760697e465f2ff, we can freely change the
parameters to AFComputedVariable without breaking old log entries.
Note, we still need a fallback for other extensions calling this
method...
Bug: T246733
Depends-On: I4444cada720ab62d187f2dd0c4760697e465f2ff
Change-Id: I5d786a518ef88fad9c8d9c25ef4553a0bf30b2b2
2020-12-08 23:28:24 +01:00
jenkins-bot
5de037dea6
Merge "Simplify User handling in AFComputedVariable"
2020-12-08 20:58:30 +00:00
Daimona Eaytoy
815ef6051c
Split afl_filter in afl_filter_id and afl_global
...
Add a script to migrate the columns (which can also
be executed in dry run), and a config option with the migration stage
(defaults to SCHEMA_COMPAT_OLD).
Some of the script-related code is stolen from
Ic755526d5f989c4a66b1d37527cda235f61cb437.
Bug: T220791
Change-Id: I7460a2d63f60c2933b36f8383a8abdbba8649e12
2020-12-08 18:31:27 +00:00
Daimona Eaytoy
e91ab70175
Simplify User handling in AFComputedVariable
...
This is some more back-compat code that we can get rid of after cleaning
old entries.
Change-Id: I374fc4496c27cf50e6960a9ab07b9c80431b4a3a
2020-12-08 17:51:08 +00:00
Daimona Eaytoy
1c625eeae4
Drop back-compat code
...
This should be merged once T246539 is done.
Bug: T213006
Change-Id: I4444cada720ab62d187f2dd0c4760697e465f2ff
2020-12-08 17:15:47 +00:00
jenkins-bot
9a77dd91ea
Merge "Fix Special:AbuseLog not to throw when global filters are not available anymore"
2020-12-08 12:56:37 +00:00
Translation updater bot
c5d6373a7a
Localisation updates from https://translatewiki.net .
...
Change-Id: I333c4b26c9ed599441d3256ce1d079888a895a89
2020-12-08 08:20:06 +01:00
Matěj Suchánek
08db320afe
Fix Special:AbuseLog not to throw when global filters are not available anymore
...
There is a try-catch block but the same call was also done
unconditionally after it, making it throw when global filters
are disabled.
Change-Id: Ic8032592799756521a59ee23c0e76cb03a510b94
2020-12-07 20:12:06 +01:00
Translation updater bot
ffa2d1b401
Localisation updates from https://translatewiki.net .
...
Change-Id: Ifc5c727df7e94f65ced00d537acb45b57e5168e3
2020-12-07 08:41:47 +01:00
jenkins-bot
fe4a79bdd4
Merge "Add a hook for extensions to add custom actions"
2020-12-06 14:37:52 +00:00
libraryupgrader
9fbcbf0140
build: Updating mediawiki/mediawiki-codesniffer to 34.0.0
...
Change-Id: I4508b1b736ca52684335549353f46a14505ef450
2020-12-05 19:54:47 +00:00
Daimona Eaytoy
600f1735f2
Add a hook for extensions to add custom actions
...
The global is now deprecated, and it will be removed soon.
Bug: T265794
Change-Id: I4e6c9b143744cb72c441017921bac9cd1960609c
2020-12-04 16:10:44 +00:00
jenkins-bot
1c8eb3963e
Merge "Always take into account custom actions"
2020-12-04 14:07:09 +00:00
jenkins-bot
edd998f532
Merge "Move API modules to separate namespace and rename them"
2020-12-04 12:33:05 +00:00
jenkins-bot
6d678cb271
Merge "Add ConsequencesRegistry"
2020-12-04 11:29:20 +00:00
Translation updater bot
5e311ca34d
Localisation updates from https://translatewiki.net .
...
Change-Id: Ia894f311329e37174ea9e265b61f78c491952e5b
2020-12-04 08:32:05 +01:00
Daimona Eaytoy
af8c237559
Move API modules to separate namespace and rename them
...
Change-Id: I436e8fed4a1cbe4f1b36a16b213ede7976e871ba
2020-12-03 22:11:09 +00:00
Daimona Eaytoy
d351d7150b
Always take into account custom actions
...
$wgAbuseFilterActions shouldn't be used normally, as it excludes actions
registered by other extensions.
Note: mw:Extension:AbuseFilter#Integration_with_other_extensions should
be updated after merging.
Bug: T239348
Change-Id: I89b3f0228eacdf145e8f2dd2a5602d0c7ce75a86
2020-12-03 21:39:35 +00:00
Daimona Eaytoy
c786c4adc6
Add ConsequencesRegistry
...
Change-Id: I91f4f28e09fa46b9ab2457b2a241b6f105320bdd
2020-12-03 22:39:25 +01:00
jenkins-bot
a7670f2bb5
Merge "Move pagers to their own namespace"
2020-12-03 20:26:59 +00:00
jenkins-bot
c560217865
Merge "Use 'default' as default group when reading filters from history"
2020-12-03 18:04:34 +00:00
jenkins-bot
d02b10db97
Merge "Improve type safety of filter ids"
2020-12-03 17:50:31 +00:00
jenkins-bot
6f7a9965a0
Merge "Add UpdateHitCountWatcher"
2020-12-03 17:46:37 +00:00
Thiemo Kreuz
e45ce1f5bd
Mark two private methods as such
...
Not used anywhere else:
https://codesearch.wmcloud.org/search/?q=stringifyActions
https://codesearch.wmcloud.org/search/?q=normalizeBlocks
This patch also moves that [ '' ] fallback out of a method
where it was misplaced. That fallback is very specific for
the diff algorithm, but not something one would expect from
a method called "stringifyActions".
Change-Id: I458eef61c6b6741bbd433ea26a012aaeb01cea3f
2020-12-03 16:52:17 +01:00
Thiemo Kreuz
34968d783e
Simplify a few pieces of code
...
… mostly by inlining pieces, instead of assigning them to
a variable first.
Change-Id: Ibc432ed05f7b853a44fc1a301ef820984facb067
2020-12-03 16:50:55 +01:00
DannyS712
0fb033775f
Use 'default' as default group when reading filters from history
...
This was NULL for old entries, because no default was added
in I758795f01eaf3ff56c5720d660cd989ef95764a7 (see T263324)
Bug: T269314
Change-Id: I5af8b0d3a9d7b6d2570cf79bbbe8b5b170ba1230
2020-12-03 15:16:17 +00:00
Daimona Eaytoy
1a3bd4b2b3
Move pagers to their own namespace
...
Change-Id: I5d3da5e51bbc54179c0618f1877f2eabb8302542
2020-12-03 14:17:09 +00:00
Matěj Suchánek
de997fe98e
Improve type safety of filter ids
...
Also fix a bug in FilterProfiler. It would attempt to reset
stats for global filters but we do not record them (yet?).
Change-Id: I0228d8c85dab146deb877dfce506f1e8e7711a9f
2020-12-03 14:58:51 +01:00
Daimona Eaytoy
ed1195ea23
Add UpdateHitCountWatcher
...
Change-Id: I61c40312022c1037abb03819d06e5e220dd07e15
2020-12-03 13:47:10 +00:00
Daimona Eaytoy
22dc4af459
Create an AbuseLogger service
...
For now this is just moving code around.
Change-Id: Ie61a1c122b4e93a74b465eb781f9cbf49f0b32e6
2020-12-03 14:46:57 +01:00
Matěj Suchánek
0f062fca06
Move AbuseFilterView classes to separate namespace
...
Change-Id: I569281b13ec81d9f35038c7ef17a2d98f16f9b5c
2020-12-03 13:06:53 +01:00
Matěj Suchánek
a1ba43f586
DI for AbuseFilterView and subclasses
...
Also add a test to ensure all views can be instantiated without problem.
Change-Id: Iedd7a5dca240efab1077fa51a3522c983b0ba4fa
2020-12-03 13:04:35 +01:00
jenkins-bot
53d1501f7e
Merge "Update a few unspecific PHPDoc comments"
2020-12-03 10:54:00 +00:00
Thiemo Kreuz
e17e1b7e01
Remove comments that literally repeat what the code says
...
Such comments don't add anything.
Change-Id: I7530d6693293fbdd06ca3ee077c6e783fd9a4ac1
2020-12-03 09:50:56 +01:00
Thiemo Kreuz
7047dba1f1
Update a few unspecific PHPDoc comments
...
Change-Id: I363d7f854c550654c5d4345f381e3731de6f2d3c
2020-12-03 09:50:09 +01:00
Translation updater bot
ce3e8163ab
Localisation updates from https://translatewiki.net .
...
Change-Id: Id94fb17266f156e6a107e055c10cd875209a2257
2020-12-03 08:31:30 +01:00
jenkins-bot
753a0dc482
Merge "Add ConsequencesLookup"
2020-12-02 15:49:33 +00:00
Translation updater bot
e19905cd8c
Localisation updates from https://translatewiki.net .
...
Change-Id: I67f103963663a3185d4275dda8ec72f1170dc77f
2020-12-02 08:31:29 +01:00
Translation updater bot
7c0bdecf44
Localisation updates from https://translatewiki.net .
...
Change-Id: I423a8af0d0acd50b8b2d336a1b7ecd31b78b767b
2020-12-01 08:22:16 +01:00
Translation updater bot
7d3aec3dcc
Localisation updates from https://translatewiki.net .
...
Change-Id: I1116d64f0762cd58358a059b7b90a84a0e932965
2020-11-30 08:45:28 +01:00
DannyS712
ace8a613a4
Consequences cleanup, should be a no-op
...
Reduce use of User objects in favor of UserIdentity
Use `use` statements
Change-Id: Icdd1b8be2d1345a8dd48b8d5d3af8781c6658c7c
2020-11-30 01:12:25 +00:00
Reedy
95d8278b58
Clean up SchemaChangeHandler
...
* Move all SQL files into db_patches (or below)
** Remove db type from filename
* Remove a lot of duplicated code and simplify
Change-Id: If22f2a2c46a59ac24c89ce612c74d169f053ab26
2020-11-29 19:14:24 +00:00
Matěj Suchánek
db87a68260
Remove unused variable and comment
...
Change-Id: I76f1d08aadda89dc9ba22eb35469c33cf9c86a33
2020-11-29 11:11:39 +01:00