Umherirrender
d2eb46e7b9
Migrate to IDatabase::newDeleteQueryBuilder
...
Change-Id: I516c179df464be68352809873dbff44dc3c642f1
2024-04-12 22:45:45 +02:00
Reedy
1bc5b6daf8
Namespace classes that need aliases
...
Change-Id: Ieeeaf80d04b060d6dbca1959d5e66f4c69c5a7f2
2023-08-18 19:00:41 +01:00
Aaron Schulz
c408c0ffa8
Remove MWEchoDBFactory::waitForReplicas()
...
Switch the callers to the standard Maintenance::waitForReplication() method.
Avoid using LoadBalancer::waitFor(), which will made internal soon.
Bug: T326274
Change-Id: Idf0562eb33d90ff70eb3a7d5d7f54da944423d27
2023-01-05 13:14:56 -08:00
Fomafix
096e4a709f
Use short array destructuring instead of list()
...
Introduced in PHP 7.1. Because it's shorter and looks nice.
Change-Id: I395e791aed6cc99b7ce1273f51c292e29360443a
2022-11-08 16:41:24 +00:00
Amir Sarabadani
6d0e181bf4
Run clean ups with removeOrphanedEvents in major batches
...
It's already wrapped in a small batch but if the table is large, this
would not work.
Adding a major batch to limit the rows scanned drastically makes it
faster. I have been running this in production and it works like a charm
on a table with > 300M rows
Bug: T310428
Change-Id: I7f63d2d76fea0db64e48dbcc1f95419df4492e7d
2022-08-01 16:49:13 +02:00
libraryupgrader
b3f948c59c
build: Updating composer dependencies
...
* mediawiki/mediawiki-codesniffer: 35.0.0 → 36.0.0
* php-parallel-lint/php-parallel-lint: 1.2.0 → 1.3.0
Change-Id: I4b2fb7f46b6c0a5c33a6ad25f085de8ae13eb084
2021-05-04 09:05:15 -07:00
Umherirrender
ceac7e38d7
Use Maintenance::set/getBatchSize in maintenance scripts
...
No need to define own class property
Change-Id: I9c71eaee6086b3d079648ee8dba41b7600c464a1
2020-12-18 00:28:32 +01:00
Reedy
257de880c1
Make use of BatchRow(Iterator|Writer)::setCaller
...
Bug: T261014
Change-Id: I51df93a9ed998c25e632c35b0fcc531615ddfb80
2020-09-05 03:45:55 +00:00
Umherirrender
3c53d6acb9
phpcs: Break long lines
...
Use the codesniffer default of length = 120
Change-Id: Ifbfd56b20432e54805d3a9bce22cda888c1fc74d
2020-06-27 12:05:03 +02:00
Reedy
aa702c1471
s/slave/replica/
...
Bug: T254646
Change-Id: I4de3985fd8568ce07919623efe2981bc0b6c54e5
2020-06-09 02:09:44 +01:00
Umherirrender
2fe223e45c
Pass function name to database functions
...
Useful for logging
Change-Id: I95d466224ff984653051990b540f29e243915e3f
2020-06-07 03:35:53 +02:00
Roan Kattouw
325708e536
removeOrphanedEvents.php: Also remove echo_target_page rows
...
Remove echo_target_page rows associated with the echo_event rows we're
deleting, and also add a separate pass that removes any remaining
orphaned echo_target_page rows (this can happen if the script was run on
the wiki before this logic was added).
Bug: T221261
Change-Id: Ic3b590fb3ac3de4c2e38877d26944367b177235a
2019-04-22 16:01:02 -07:00
Roan Kattouw
df068ba075
removeOrphanedEvents.php: Don't remove events waiting to be emailed
...
echo_notification isn't the only table that refers to echo_event;
echo_email_batch does too, so check it as well.
Change-Id: I6663c8bb83a991ee663eb1616583fde8eee46751
2019-04-12 15:33:57 -07:00
Max Semenik
f055f30f86
Use addDescription() instead of accessing guts directly
...
Change-Id: I767cbb9969c90b645e6a94ee49b2fe2352001fd8
2019-03-26 22:07:48 -07:00
Umherirrender
42f153caf5
Use ::class for class name resolution
...
Available since php5.5
Change-Id: I8ea594e59784bfe68911fb0b138f359a0e6b4d54
2019-03-03 15:14:15 +01:00
libraryupgrader
7a23ddf4b0
build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
...
Change-Id: I7b19fab3b1100c4973600ec95ee24160e141c5ac
2017-09-24 09:49:43 +00:00
Kunal Mehta
aaf061c725
build: Updating mediawiki/mediawiki-codesniffer to 0.9.0
...
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.ExtraParamComment
* MediaWiki.Commenting.FunctionComment.MissingParamComment
* MediaWiki.Commenting.FunctionComment.MissingParamName
* MediaWiki.Commenting.FunctionComment.MissingParamTag
* MediaWiki.Commenting.FunctionComment.MissingReturn
* MediaWiki.Commenting.FunctionComment.ParamNameNoMatch
* MediaWiki.Commenting.FunctionComment.WrongStyle
* MediaWiki.FunctionComment.Missing.Protected
* MediaWiki.FunctionComment.Missing.Public
* MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
* MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment
Change-Id: I8401abf121a7413fa191d7bc535e0ddd6cf8c3f7
2017-06-22 14:13:28 +00:00
James D. Forrester
8c810dff48
build: Update mediawiki/mediawiki-codesniffer to 0.7.1
...
Also added "composer fix" command.
Change-Id: I25cb61b3b92798f1259d1575a336e2b056d5764f
2016-12-05 15:54:30 -08:00
Justin Du
a0fe35a95d
Update Maintenance scripts to use $this->requireExtension()
...
* Also added $this->mDescription to removeInvalidNotification
Bug: T152139
Change-Id: I146405a3b6e81680b0ee1fb081486170d914a2b1
2016-12-05 15:54:30 -08:00
Roan Kattouw
4c6cadfb27
Add script to remove orphaned event rows
...
Bug: T136425
Change-Id: Id42a893be81176f37d9d5e3fd7e850d3a6d42e10
2016-06-07 23:34:53 +02:00