Commit graph

6692 commits

Author SHA1 Message Date
lens0021 5943b13b5b
Handle the missing 'all' type as specified in the doc
The text for 'type' in the documentation of the parent describes the
notification type can be 'all', following 'message' and 'alert'. That is
actually used, for instance inside of
mw.echo.Controller.markLocalNotificationsRead() function. The gap
between doc and implementation results in bugs. This resolves the gap.

Bug: T270879
Change-Id: I546aa42e927a05a5426db90153901ae632b97e36
2022-04-20 21:57:12 +09:00
jenkins-bot 75b3a92fd9 Merge "updater: Improve updater for table echo_unread_wikis" 2022-04-19 20:11:00 +00:00
Umherirrender b442f100cd updater: Improve updater for table echo_unread_wikis
Follow-Up: I227801f850bb9d60488b5dd8b1f84c4c22708f5d
Change-Id: Idcc577a86045ffb2ea3f11d990b324ce6ab91cef
2022-04-19 21:27:11 +02:00
Translation updater bot 1a44500829 Localisation updates from https://translatewiki.net.
Change-Id: Iec2e2f7bbc1c9a8d2247a97cabcab874391eb2d0
2022-04-18 10:05:59 +02:00
jenkins-bot 047d92d059 Merge "Drop unused zero class" 2022-04-17 22:07:11 +00:00
Translation updater bot 4950bb3664 Localisation updates from https://translatewiki.net.
Change-Id: I3522678d437bf74c293448d943662ebae9d75786
2022-04-14 08:26:25 +02:00
Translation updater bot 3e8c531c78 Localisation updates from https://translatewiki.net.
Change-Id: I3c9bbf462b127cc122b5c83f356b9d5049159733
2022-04-13 08:32:14 +02:00
Umherirrender 42a61c84a6 Bump minimum required version for upgrade from 1.28 to 1.29
Remove sql patches, mention the gerrit change to check version
- Drop field etp_user in Ib57510e6b0e9202a7e035f8ea59955dca8a0b24a
- Add index echo_notification_event in
I99fc31a62b37259d7000577583c8e8a599e400f9
- Maintenance script RemoveOrphanedEvents in
Id42a893be81176f37d9d5e3fd7e850d3a6d42e10
- Add field event_deleted in Iacd098573efd92bb1e3fcd7da4cd40cea9522f15
- Add index echo_notification_user_read_timestamp in
Iacd098573efd92bb1e3fcd7da4cd40cea9522f15
- Add index echo_target_page_page_event in
Iacd098573efd92bb1e3fcd7da4cd40cea9522f15
- Add index echo_event_page_id in
I15abd7c901df58f7eb9e5476d58a1bc12835645e

Change-Id: I227801f850bb9d60488b5dd8b1f84c4c22708f5d
2022-04-12 16:20:19 +01:00
jenkins-bot e22fcaf65d Merge "Don't use '#' for comments in .sql files" 2022-04-12 12:31:24 +00:00
Matěj Suchánek 50e6b7d6f3 Don't use '#' for comments in .sql files
Fails for sqlite. Needed for Wikimedia CI when an extension loads Echo.

Change-Id: Ia7572f1610aa765f34ec94f2609eb747fa48ac38
2022-04-12 13:47:21 +02:00
Translation updater bot 59e8ca5c27 Localisation updates from https://translatewiki.net.
Change-Id: I1519bdd329fea0fa22fa39f53b562888344a31f3
2022-04-12 08:14:10 +02:00
jenkins-bot 7d54187ce0 Merge "Call IDatabase::timestamp before inserting echo_unread_wikis" 2022-04-11 23:28:32 +00:00
jenkins-bot ad0d9d64a0 Merge "Call IDatabase::timestamp before inserting notification_read_timestamp" 2022-04-11 23:14:42 +00:00
Umherirrender c650698ac5 Call IDatabase::timestamp before inserting echo_unread_wikis
The default timestamp of 00000000000000 cannot represent as timestamp,
because it gets a negative timestamp -00011130000000

This is needed for proper cross-RDBMS support

This reapply a change from I46206e0b3a687dff3168a81cf0020e669133e876,
reverted with I1c8c409b7820512b3e31246a7f3d8c1cf4db209c.

Bug: T244898
Change-Id: I109b783de0a8d60ccb161b280ce5fa09e145017b
2022-04-11 23:12:02 +00:00
Translation updater bot 5991441d79 Localisation updates from https://translatewiki.net.
Change-Id: I4e2ee74a1d03f04f37e5ba90f5f44e4c393883bd
2022-04-11 08:13:58 +02:00
Translation updater bot c7ccc8ab35 Localisation updates from https://translatewiki.net.
Change-Id: I6e8dc8dd1d9f7516a6ea9511ca2188530e7925d0
2022-04-05 08:25:23 +02:00
Taavi Väänänen 30306fd923 SECURITY: Send original client info on x-wiki requests
Bug: T285116
Change-Id: I0551fe64042676f8a2b35afb82a3b4e9c09ea673
2022-04-04 15:42:18 -05:00
Jon Robson 5350bba546 Drop unused zero class
Not used anywhere.

Change-Id: I848650e4e3497664d712537437d8a10b22d6afb1
2022-04-04 18:20:27 +00:00
Translation updater bot 70e0d4a281 Localisation updates from https://translatewiki.net.
Change-Id: I88c95a4424316f2e5e6efad636411a1ba279a40c
2022-04-04 09:34:21 +02:00
gerritbot 49696ea763 Fix usage of ApiBase::PARAM_* deprecated constants
The ones that are replaced with ParamValidator

Bug: T275455
Change-Id: I6a096fa34fbd543d0ee4354f5487c73b8b3d37c7
2022-04-04 00:14:28 +00:00
gerritbot d9a082373d Replace deprecated ApiBase::PARAM_ with IntegerDef ones
The rest of ApiBase::PARAM_  will be done in separate patches

Bug: T275455
Change-Id: I897f02f9bae8a53b720a5a35e9689679c003c714
2022-04-03 22:14:48 +02:00
Translation updater bot dc7dfd6b30 Localisation updates from https://translatewiki.net.
Change-Id: I07a6a4078ff434de59be35e483984f6044ca6c26
2022-04-01 08:26:41 +02:00
jenkins-bot 9c14f7b821 Merge "MarkRead: Remove redundant setAction()" 2022-03-31 12:41:51 +00:00
Translation updater bot f2e177fb88 Localisation updates from https://translatewiki.net.
Change-Id: If826da93fcdd5429f363c5c49750629d5f05d0ce
2022-03-31 08:35:44 +02:00
Translation updater bot 94e5406860 Localisation updates from https://translatewiki.net.
Change-Id: I735a0a18800c1d9bde0428115c4085117119982f
2022-03-29 08:05:40 +02:00
jenkins-bot 61d1a2d5d4 Merge "Set all icons used in EchoNotificationIcons to 30x30" 2022-03-28 22:36:19 +00:00
Translation updater bot 70c1c4e83d Localisation updates from https://translatewiki.net.
Change-Id: I52e3aa1e280066686bfd1d185373447dc4e9373d
2022-03-28 08:20:52 +02:00
Func 8e13fddf35 MarkRead: Remove redundant setAction()
Using setTitle() should be enough.

Change-Id: I1ec8f2db0bd6781ac13b558da031c1809dcbc459
2022-03-27 21:03:43 +08:00
Ed Sanders 73d563cad9 Tweak primary button action styles in emails
Make buttons match the style guide a bit more closely:
* Use bold text
* Add border-radius
* Tweak padding

Change-Id: Idc929f2b7846c71c9a3011376402aaee65b32dcf
2022-03-26 23:29:18 +00:00
Ed Sanders 2c8c9e5b82 Split email CSS over multiple lines
Change-Id: I539f91b98ca833158b851b9ce826286c02141a8f
2022-03-26 23:29:15 +00:00
Ed Sanders e7ac2a8966 Set all icons used in EchoNotificationIcons to 30x30
This will cause them to be rasterized as the correct size
when used in emails. When used on the web (as SVGs) they have
their dimensions set by CSS.

Bug: T275936
Change-Id: Id7b76cf13bf9ebb88776d9c7eebc3944732ae743
2022-03-25 13:18:07 +00:00
Translation updater bot d2266fdfb3 Localisation updates from https://translatewiki.net.
Change-Id: I11ec4c025beb4fb899d149af539a2009b9e709b4
2022-03-25 08:34:48 +01:00
Translation updater bot 1dc0241c63 Localisation updates from https://translatewiki.net.
Change-Id: I186a3bc3886d477093ec5df23f17ab7583eeed66
2022-03-24 08:34:19 +01:00
Umherirrender 592e53a925 Call IDatabase::timestamp before inserting notification_read_timestamp
This is needed for proper cross-RDBMS support

This reapply a change from I46206e0b3a687dff3168a81cf0020e669133e876,
reverted with I1c8c409b7820512b3e31246a7f3d8c1cf4db209c.

Bug: T244898
Change-Id: I8b1387aff18d88088a993bc099165e9882658ac0
2022-03-23 22:09:19 +01:00
Translation updater bot d4a714aa95 Localisation updates from https://translatewiki.net.
Change-Id: Iae70b466a1978c0146962270153bdf775490a64d
2022-03-23 08:25:15 +01:00
jenkins-bot 3ce93e3368 Merge "Revert "Call IDatabase::timestamp before inserting rows"" 2022-03-21 14:02:39 +00:00
Hashar 9433b83f2d Revert "Call IDatabase::timestamp before inserting rows"
This reverts commit 4eb8fa23e4.

Reason for revert:

 Wikimedia\Timestamp\ConvertibleTimestamp::getTimestamp:
 The timestamp cannot be represented in the specified format

Bug: T304307
Change-Id: I1c8c409b7820512b3e31246a7f3d8c1cf4db209c
2022-03-21 13:28:37 +00:00
Translation updater bot d422a4845f Localisation updates from https://translatewiki.net.
Change-Id: Ic760b7006be3055c55108c58b4fcb77a6423585b
2022-03-21 08:14:39 +01:00
jenkins-bot 0acd3fea47 Merge "Call IDatabase::timestamp before inserting rows" 2022-03-18 13:56:59 +00:00
Translation updater bot 1ecdb3d52d Localisation updates from https://translatewiki.net.
Change-Id: I8ba194eb5aee9a1b145a46f208a7f1ae182d6976
2022-03-16 08:07:33 +01:00
Amir Sarabadani ea21714241 Remove mocking of numRows
Deprecated and to be deleted

Bug: T286694
Change-Id: Id678f8366e7a9c18696083b2e331d2dce7d8a8eb
2022-03-15 17:36:29 +00:00
Translation updater bot 8d35823643 Localisation updates from https://translatewiki.net.
Change-Id: I356e6e3ca52f392bc5924e74e64b310f3d4ea294
2022-03-15 08:25:12 +01:00
Translation updater bot 2e6eaa17f8 Localisation updates from https://translatewiki.net.
Change-Id: Iaf5c3b204a0f82fd011cba114a69b9995e5c9d33
2022-03-14 08:13:53 +01:00
jenkins-bot 011cb2dec5 Merge "Make some DiscussionParser methods public instead of private for reusability" 2022-03-11 12:21:29 +00:00
Translation updater bot 3ee930d28c Localisation updates from https://translatewiki.net.
Change-Id: Idbf662d50920a1f69f75c5ef85f9a941dbef45d9
2022-03-11 08:32:31 +01:00
Translation updater bot 928006b561 Localisation updates from https://translatewiki.net.
Change-Id: I8c11715aa3884f01856abcc6fe88c315da846dd2
2022-03-08 09:01:35 +01:00
Translation updater bot 68039f9358 Localisation updates from https://translatewiki.net.
Change-Id: I245fee8f2b968c8a299f66994d38c25818a8eba8
2022-03-07 08:10:55 +01:00
Reedy 0efcb843dd Use namespaced EventLogging class
Change-Id: I42affe2633f39a3be02a78e4a6b5dd32b23ff7bd
2022-03-06 16:11:17 +00:00
jenkins-bot 586e1291bf Merge "Clicking Echo badge should close ULS dialog" 2022-03-05 06:09:41 +00:00
Jon Robson 0c074ec91a Clicking Echo badge should close ULS dialog
Bug: T295796
Change-Id: I3a7f33cad4e08ce22b6e640901c965d764c9156b
2022-03-04 22:47:23 +00:00