Commit graph

5532 commits

Author SHA1 Message Date
Roan Kattouw b2f816d0af Use GET rather than POST for action=markseen
This seems strange, because markseen sounds like a write action, but it
writes to the seentime cache rather than the database. For multi-DC
support, we need writes to the seentime cache to happen in the local
data center, and the easiest way to do that is to make it a GET request
rather than a POST request.

It would be nice if marking as seen could be consolidated into the GET
request for fetching notifications, but I didn't do that because the
code for those fetches is pretty complicated, and some fetches (like
polling) should not mark as seen.

Bug: T222851
Change-Id: If4c504a9dc562b1d4e626e155fba8ebb5cdb0579
2020-01-10 16:12:18 -08:00
Jack Phoenix a628ef641e Remove unused index echo_notification_user_hash_timestamp also from the canonical SQL file
Change-Id: I53f895ef4ff77c3e77b4a6cbe9ee810a704d5444
Follow-up: 91465ef753
2020-01-10 21:04:03 +02:00
Translation updater bot bf4d612eca Localisation updates from https://translatewiki.net.
Change-Id: I0f2c776fed27d822076cf77da08ec7109d7b0bb3
2020-01-10 08:34:19 +01:00
Translation updater bot 971d7b3891 Localisation updates from https://translatewiki.net.
Change-Id: I3c535d6002fc86fe3589e53a79484ec0a40dbc15
2020-01-09 08:28:54 +01:00
jenkins-bot 8f5fc3d6ee Merge "Set apihelp message for wikis parameter of echomarkread" 2020-01-08 09:09:51 +00:00
Roan Kattouw e771f57af8 Hide "system" categories in notification preferences
Make sure that the system-noemail and system-emailonly categories are
hidden, the way the system category is, by setting their no-dismiss
setting to "all". This should be unnecessary, because e.g.
system-noemail doesn't allow email, so just setting no-dismiss to "web"
should suffice, but
EchoAttributeManager::isCategoryDisplayedInPreferences() isn't smart
enough to see that. Doing it this way is also more future-proof for if
we ever add more notification methods in addition to web and email.

Change-Id: I00641d43a4eb1d3e2d3ea285682cf900733b1855
2020-01-06 10:59:51 -08:00
Translation updater bot 6653a20811 Localisation updates from https://translatewiki.net.
Change-Id: I7c579a9c71afd70098ea2f8eccf05b84c5c15893
2020-01-06 08:48:55 +01:00
jenkins-bot 1f96009221 Merge "Use document.body instead of 'body' as jQuery selector" 2020-01-05 23:33:24 +00:00
Matěj Suchánek e16ff3a939 Remove dead code from EchoHooks.php
Change-Id: Ie1ff4977a61b9c0350b2c8891ce26b6fa8cf49e5
2020-01-05 14:38:26 +00:00
Translation updater bot 3ab81adff5 Localisation updates from https://translatewiki.net.
Change-Id: I1a59c6335a43cf11b48bdc9c59a824c228d5846b
2020-01-03 08:45:27 +01:00
Matěj Suchánek d4a18d15b7 Remove redundant check in MentionPresentationModel.php
Pages in user talk namespace are always talk pages, so
no need to check for this.

Change-Id: Ideac85cfaddb65f4758fe00be028dd6d067e0d72
2020-01-02 15:42:23 +00:00
Matěj Suchánek 2d6472ff61 Remove unused variable
Change-Id: I43b83972fe818f236c10522bdaaecbb2def88903
2020-01-02 10:49:35 +01:00
jenkins-bot 30ed6adb92 Merge "build: Updating mediawiki/mediawiki-phan-config to 0.9.0" 2020-01-02 08:59:53 +00:00
Translation updater bot 25d0e85c8a Localisation updates from https://translatewiki.net.
Change-Id: I6dea07592108a0e6cc61ad1fd48323bd1f92a884
2020-01-02 08:58:16 +01:00
jenkins-bot aa0ee66966 Merge "Move test-only classes to new TestAutoloadClasses declaration" 2020-01-01 23:25:26 +00:00
jenkins-bot e003778095 Merge "Removed comment out debug code from EchoDiscussionParser" 2020-01-01 22:46:59 +00:00
Umherirrender c25962ce47 Move test-only classes to new TestAutoloadClasses declaration
Bug: T196090
Change-Id: I1348c07c688cce6e9cd65669c824561bac1a1eff
2019-12-31 00:23:54 +01:00
Translation updater bot 0369c3999d Localisation updates from https://translatewiki.net.
Change-Id: I753f93213a3770686e1ec167f8bf72026919a226
2019-12-29 20:40:29 +01:00
Umherirrender 317246762c Removed comment out debug code from EchoDiscussionParser
Change-Id: I0f5823253e7dbad6aabcc85f3f1e0c2196874f66
2019-12-29 16:08:15 +01:00
libraryupgrader ef3d2b886d build: Updating mediawiki/mediawiki-phan-config to 0.9.0
Change-Id: I03333636654eff80d4fe7fa543ac9e6c321af891
2019-12-29 11:59:32 +00:00
Thiemo Kreuz (WMDE) 65700e6c0e Revert "Make method parseNonEditWikitext public"
This reverts commit b4fdb685cb.

Change-Id: I33abe899f34903cfcc24c7a4f45e70aaab3f0abb
2019-12-28 20:16:38 +00:00
Paladox b4fdb685cb Make method parseNonEditWikitext public
It's used by the Comments extension.

Change-Id: If69b1706067a0c80420e427a453da965f226aa75
2019-12-23 01:54:53 +00:00
Translation updater bot 72fd486374 Localisation updates from https://translatewiki.net.
Change-Id: Ibe48f2a33075a462aacd99079b1506d584cfaeef
2019-12-22 17:40:42 +01:00
jenkins-bot f6df96a8e5 Merge "Style improvements to Echo OOUI dialog in desktop Minerva" 2019-12-20 22:41:27 +00:00
jdlrobson 5b628b5109 Style improvements to Echo OOUI dialog in desktop Minerva
* Make sure the badge for desktop when initialised points to the
right thing
* Make sure the dialog takes up the full screen and the Clippable bug
does not interfere with the display of the pane

Bug: T241090
Change-Id: I6c5588ee689633cef413ef27449aeeea341d7a97
2019-12-20 20:38:36 +00:00
Translation updater bot b1c36dcf05 Localisation updates from https://translatewiki.net.
Change-Id: If601cb67dd171458cc9a923fdeedd56934abbb3e
2019-12-18 09:25:16 +01:00
Translation updater bot af011120c2 Localisation updates from https://translatewiki.net.
Change-Id: Ib26402079392ce36cb6476259c9397f06acea6b2
2019-12-17 10:07:31 +01:00
libraryupgrader a54887eb0f build: Updating mediawiki/minus-x to 0.3.2
Change-Id: I3f1b4eb10173cb4df111f9ca630152bdcafdd935
2019-12-16 21:15:12 +00:00
jenkins-bot 24dd8dce66 Merge "Document message "echo-blacklist"" 2019-12-16 11:36:08 +00:00
Translation updater bot a5a5224e49 Localisation updates from https://translatewiki.net.
Change-Id: I035783a03f121182ceb69e98e60f331c95bb5bc8
2019-12-16 12:13:14 +01:00
Fomafix 99dc512ef8 Use document.body instead of 'body' as jQuery selector
Also use the shorter .appendTo() instead of .append().

Change-Id: I1e0aaff4790a6ca5c9e5d2f6e5926e15f8574cee
2019-12-16 11:51:03 +01:00
Umherirrender 4c991af59f Use WebRequest::getInt for limit parameter
This avoids that the default value is casted to string
and than back to int

Change-Id: I66ef8bc3a8e89b43aa5eff79bc371659e86af174
2019-12-13 22:29:07 +01:00
Raymond a22a916e14 Document message "echo-blacklist"
This way it shows up on [[Special:AllMessages]]

Change-Id: I19ae033b8972029d32018a55e0724a1afbd8e61c
2019-12-13 17:28:38 +01:00
Jon Harald Søby 72963d4167 Add PLURAL to new messages
These new messages should have {{PLURAL}} in the English original
even though the number will be larger than 1. For other languages (like
Russian) the plurals work differently, so having the {{PLURAL}} in the English
message even though it won't have any effect there works as a guide to
the translators (just like the {{GENDER}} does).

Change-Id: I925818bbf3da95e2ffdb629f448f54911752e346
2019-12-13 13:01:59 +01:00
Translation updater bot d834e9fb86 Localisation updates from https://translatewiki.net.
Change-Id: I5deb6a653bae5b5d19966618053f10a0897b568b
2019-12-13 09:28:15 +01:00
jenkins-bot 19d88be6cf Merge "build: Update linters" 2019-12-12 17:52:35 +00:00
Ed Sanders 80ddee3956 build: Update linters
Change-Id: I713aafb891306fc21a776a7d4622c6a039798753
2019-12-12 11:20:49 +00:00
jenkins-bot 8b6efb51bb Merge "Add preference to not receive digests about read notifications" 2019-12-12 11:14:30 +00:00
Translation updater bot d504fe7965 Localisation updates from https://translatewiki.net.
Change-Id: Icf5d1f7d8d6a8ce282909abe3f230d4fad530148
2019-12-12 09:56:36 +01:00
Ben Houghton 9ae45afdfd Add preference to not receive digests about read notifications
Allows users to opt out of receiving daily or weekly digests containing notifications
they have already marked as read on the web.

Bug: T169386
Change-Id: Ib47248678f88095492fb6896530be5a9f5bb43ca
2019-12-12 06:30:13 +00:00
jenkins-bot e6ed60ee1d Merge "Add support for watchlist events" 2019-12-11 23:19:36 +00:00
Pppery db78c1552e Add support for watchlist events
Bug: T203941
Change-Id: I9bcd13cb0a547393696dde0e977b7761cc1fea68
2019-12-11 16:39:02 -05:00
Translation updater bot 448f6f1ba0 Localisation updates from https://translatewiki.net.
Change-Id: I0c21bbf81df1a8d2ddfb52a145e5f85f0d018da0
2019-12-10 09:29:35 +01:00
Translation updater bot 99b2105158 Localisation updates from https://translatewiki.net.
Change-Id: I76e7376e359fdad25b5d1f788f10cd5e40136b01
2019-12-09 09:35:11 +01:00
Translation updater bot 259db7d3bf Localisation updates from https://translatewiki.net.
Change-Id: I2a567e99fa5ed778916eae8725e5b151fb7092a3
2019-12-04 09:24:06 +01:00
Ben Houghton aeafb09d80 Allow marking all as read from popout window
Clicking 'mark all as read' would only mark the notifications you are viewing as read
instead of all of them - now it will mark all of them as read.

Bug: T156425
Change-Id: If46a85f91dfddd4ac158e5c3a4f942c9c3d9aac1
2019-12-03 20:08:35 +00:00
Translation updater bot 0704644ee0 Localisation updates from https://translatewiki.net.
Change-Id: I4fbe0c28e664851490b158b477a32f72bf6ab162
2019-11-29 09:28:16 +01:00
Roan Kattouw d85252b97d DiscussionParser: Fix type hint fatal from getUserLinks()
Instead of returning false when no links in the user namespace are
found, return an empty array. They're both falsey, but this way we don't
break the type hint in generateMentionEvents(), which is the only thing
that getUserLinks() is used for anyway.

Bug: T239275
Change-Id: I93b320be07cfdae68c5e296b2caa62ea4fae5ff2
2019-11-26 17:57:16 -08:00
jenkins-bot 4b8eb663df Merge "build: Updating mediawiki/mediawiki-phan-config to 0.8.0" 2019-11-25 21:01:26 +00:00
Translation updater bot d90ea5ce0e Localisation updates from https://translatewiki.net.
Change-Id: Ibb1b3b96dd8dd4047b9f7ffb09b370c0e483601d
2019-11-25 09:10:09 +01:00