jenkins-bot
bd0f5fda49
Merge "Fix and disable some phpcs exclusions"
2022-11-18 18:23:38 +00:00
Bartosz Dziewoński
3ddc5c201d
Use buildComparison() instead of raw SQL
...
Bug: T321422
Change-Id: If9ad9268d3bd7d62c3b4af4274d3d579cdd47db3
2022-11-15 12:06:04 +01:00
Reedy
a101ce674c
Fix and disable some phpcs exclusions
...
Change-Id: I2ecaf71c8836d627f20629d667b78ffbf420e4ee
2022-11-12 17:58:13 +00:00
Reedy
5611662f06
Namespace Model
...
Depends-On: Id28792658de950b99a8786f881563476def59eba
Change-Id: Ib57ea2db947285946f31fa9912b37181044df9d3
2022-11-10 14:25:42 -07:00
Reedy
69139e663e
Forward Event namespacing
...
Change-Id: Iddb4a5d4057f9c6ed00f754d2e3cd79cd873f212
2022-11-10 14:24:42 -07:00
Reedy
310128fa28
NotificationServiceClient: Don't call Message::serialize() directly
...
Change-Id: I9cfe98376dcce5233afb7571ea1fc26b29dd3e48
2022-11-10 14:24:11 -07:00
thiemowmde
cfa424f16b
Make use of the ?? and ??= operators where it makes sense
...
?? is an older PHP 7.0 feature.
??= was added in PHP 7.4, which we can finally use.
Change-Id: If4145c48eb374aa8e5deeb38aecb27c6c8905382
2022-11-09 14:40:52 +01:00
jenkins-bot
ef5f45d3bd
Merge "Use short array destructuring instead of list()"
2022-11-09 13:04:45 +00:00
thiemowmde
9ab1d92c9c
Fix PHP 8.1 compatibility issue in ForeignNotifications
...
Passing null to functions that expect a string is no longer allowed.
Here in this code it can apparently only happen in test scenarios.
That's why I use a very minimal workround that still calls the same
code. The lookup will return an empty string and trigger the expected
code path below.
Bug: T311448
Change-Id: If04924a22b82ae29b8f9327668e8965d6d2a490d
2022-11-08 20:56:48 +01: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
Reedy
5c596d2d1b
Namespace Special
...
Change-Id: If194554d8af60369699b057af5b4a2e5dab4897e
2022-11-05 16:53:56 +00:00
Alexander Vorwerk
5bd08e95ee
Update job name to match $wgJobClasses key
...
The key must match what is specified in the constructor of the
EchoNotificationDeleteJob.
The job specify their name in the constructor through __CLASS__, which
means that with the class rename this key also needs to be updated.
Bug: T322342
Change-Id: Id1eebb0cc3ddcdabe31c5531cd32f032ed52a69c
2022-11-05 16:33:27 +01:00
Reedy
c85fe25fe7
Namespace Mapper
...
Change-Id: I8a02082466ef39db32ffa7562b02db61929346cd
2022-11-04 18:05:34 +00:00
Reedy
0f0c6c4fa6
Namespace Iterator
...
Change-Id: I87fa703da9e7725370d72c58fc40eb204a309e67
2022-11-02 16:51:39 -06:00
Reedy
3609edf153
Namespace Cache
...
Change-Id: I8ead3ee485528f08f71c21cf401880bf369dbeac
2022-11-02 16:37:48 -06:00
Reedy
6046c48593
Namespace Jobs
...
Change-Id: Ib8870284465e00308f475fe492fa579babe23d79
2022-11-02 14:52:32 -06:00
Reedy
d3cc06cc6a
Namespace Controller
...
Change-Id: Ice356e774c153c353eb6ed71b8a02afd1ad1e654
2022-11-02 14:52:29 -06:00
Reedy
fb4478454d
Namespace Gateway
...
Change-Id: I7501be6e57cec92b2b4175b8772d213c7fd031d4
2022-11-02 14:52:04 -06:00
Reedy
8aa42e0946
Namespace Exception
...
Change-Id: I71a995adb8000ec32de3d99c7bf33bf0fa7d0176
2022-11-02 14:03:10 -06:00
thiemowmde
44eb02cae8
Fix incompatible type null vs. string failing in PHP 8.1
...
This is not allowed to be null. It was always forcefully cast to an
empty string anyway.
Change-Id: I4134da00014d84818751f68b2c85dbc28b042034
2022-11-02 12:31:26 +01:00
Reedy
7619a76877
Namespace Echo Formatters
...
Change-Id: I5bf398cdb76a577543f6526ac1bee4a73897103d
2022-11-01 21:20:06 -06:00
Reedy
bd062137bb
formatters: Minor cleanup
...
* Fix some indenting
* Remove some unnecessary temporary variables
Change-Id: I2330238a090b7f5ccd14d8e44aeaff10d731352e
2022-11-01 15:39:23 -06:00
jenkins-bot
f74cee0b4f
Merge "MWEchoEventLogging: Use $revId of -1 for Echo* schemas"
2022-11-01 21:11:43 +00:00
Reedy
adba9cbfcd
Convert 10 hook subscribers to HookHandlers
...
Bug: T315938
Change-Id: I734ad484b049a90e579e712d1d38f07922f189de
2022-10-31 17:16:48 -06:00
Reedy
a7ef347530
Convert 5 hook subscribers to HookHandlers
...
Bug: T315938
Change-Id: I6e967524d0327043c6eed4a18861e96c20aaecf6
2022-10-31 17:16:04 -06:00
Reedy
56dfaea949
Convert 9 hooks subscribers to HookHandlers
...
Bug: T315938
Change-Id: I4d061216da8a492fd0d28518d55e67f92e38ee78
2022-10-31 17:15:17 -06:00
jenkins-bot
5e048d083e
Merge "Fall back to local notification count when no global user is found"
2022-10-26 10:49:31 +00:00
Umherirrender
b34e2c0697
Fall back to local notification count when no global user is found
...
When MWEchoNotifUser::getGlobalMemcKey does not find a global user,
MWEchoNotifUser::getCountsAndTimestamps can return null for 'global' key
Just fall back to the local count/timestamp
Bug: T317330
Change-Id: Ie11b0c93c0a45fb1f873bd26788beaa3d0c6a9d7
2022-10-26 10:33:02 +00:00
jenkins-bot
f88c75c2e9
Merge "Add PreferencesGetIconHook"
2022-10-20 16:53:18 +00:00
jenkins-bot
391ebd4b8b
Merge "Api: Minor code updates"
2022-10-15 18:04:22 +00:00
jenkins-bot
7b68f3328b
Merge "Namespace Api classes"
2022-10-15 18:04:20 +00:00
suecarmol
97209c3330
Add PreferencesGetIconHook
...
Added PreferencesGetIconHook to add an icon on the Special:Preferences section.
Bug: T317419
Depends-On: I6d5730d47e7595b1705787995fe5db2fe734d7f5
Change-Id: Ia5eefad09f533f4654bbda123b4588f246bc1ace
2022-10-13 20:00:13 -05:00
libraryupgrader
4835b6b1cb
build: Updating mediawiki/mediawiki-phan-config to 0.12.0
...
Change-Id: Id35b9a47ce7ad7c96e70f43b2f4fe0933e12a9d4
2022-10-10 21:03:50 +00:00
Reedy
a83e588549
Api: Minor code updates
...
Change-Id: Iea3c38d6c9ddcb9b03886f4fdab3db9fb03bc462
2022-10-03 00:05:53 +01:00
Reedy
38a9330753
Namespace Api classes
...
Change-Id: I414234f10c16b8ccaa7ddbaf8e9033e70dfceab8
2022-10-03 00:05:21 +01:00
Jon Robson
e9d656e1cd
Add icon definitions to Echo badges
...
This should result in no visual change to Echo, but allows
us to change the Vector implementation here.
Removes all styling when vectorvisualenhancementnext=1
is enabled.
Bug: T257143
Change-Id: Ice602ba246b51252ff0527a531aa4d5d3baee64e
2022-09-23 17:34:13 +00:00
Sam Smith
844a64ff9a
MWEchoEventLogging: Use $revId of -1 for Echo* schemas
...
EventLogging::logEvent() overwrides the $revId parameter when the schema
has been migrated to the Event Platform. Add a note and use a $revId of
-1 to make this consistent with other calls to EventLogging::logEvent()
for schemas that have been migrated to the Event Platform [0].
[0] https://codesearch.wmcloud.org/search/?q=%3A%3AlogEvent%5C (%20%27%5Cw%2B%27%2C%20-1
Bug: T318263
Change-Id: I5fa515d853326307619b044d25c2f672bcb6de63
2022-09-23 12:15:12 +01:00
jenkins-bot
691c79072b
Merge "WatchlistChange: Include namespace in presentation"
2022-08-24 05:38:27 +00:00
jenkins-bot
d8df7743ae
Merge "Simplify linking to fragments of Special:Preferences"
2022-08-22 00:13:55 +00:00
Umherirrender
90639411fa
schema: Remove IF EXISTS from DROP FOREIGN KEY
...
It is not supported by mysql, but supported by mariadb
Use one of the new index to detect, if the schema update was not running
yet
https://dev.mysql.com/doc/refman/8.0/en/alter-table.html
https://dev.mysql.com/doc/refman/8.0/en/create-index.html
https://dev.mysql.com/doc/refman/8.0/en/drop-index.html
Bug: T314779
Follow-Up: I4bd29a6d0f9515e1a678c2a967799b90ef22f7b9
Change-Id: I820d79285afee854f086ca8c1590948393f496bc
2022-08-08 21:25:33 +02:00
Umherirrender
f837f5663e
Simplify linking to fragments of Special:Preferences
...
Change-Id: I0950000edd402020a1e0179b8e4829640ad33835
2022-08-06 00:54:37 +02:00
jenkins-bot
1c812bddc0
Merge "EchoPlainTextEmailFormatter: correctly handle getPrimaryLink() returning false"
2022-07-19 20:03:13 +00:00
Umherirrender
3536de166e
postgres: Convert timestamp in EchoUnreadWikis
...
The compare with DEFAULT_TS_DB does not work, because postgres using
different timestamp format on the database
Bug: T244898
Change-Id: I81fe88f78d94499ae9082a4fb6b1191bd432f977
2022-07-16 16:33:40 +00:00
jenkins-bot
327239d8bf
Merge "Remove some repetition in EchoGetBundleRules hook handler"
2022-07-14 23:03:41 +00:00
jenkins-bot
c7f6c1daad
Merge "Convert to abstract schema"
2022-07-13 15:50:40 +00:00
jenkins-bot
a3af2dcf89
Merge "schema: Drop foreign keys from table echo_push_subscription"
2022-07-13 15:50:37 +00:00
jenkins-bot
c75396d7f3
Merge "schema: Move all sql files to own folder"
2022-07-13 15:26:25 +00:00
jenkins-bot
aae35b8344
Merge "Bump minimum required version for upgrade to 1.31"
2022-07-13 15:24:16 +00:00
Mark A. Hershberger
43d004fc3d
Make interface compatible with RecursiveIterator
...
Seen when running phpunit tests.
Bug: T289879
Change-Id: I6f05b2cf21cd7c51b6d3234e6e0356c8a563202a
2022-07-09 22:48:39 -04:00
Kunal Mehta
4cc56d1b26
Remove some repetition in EchoGetBundleRules hook handler
...
I kept the "watchlist-change" and "minor-watchlist-change" rules
separate for now since while those are the same pattern the $bundleString
prefix isn't exactly the event type.
Change-Id: I360849870793d7730385dec0f57c92cdabf549d1
2022-07-09 17:31:22 -07:00