Commit graph

2746 commits

Author SHA1 Message Date
Matthias Mullie 9fe71a1182 Get rid of old flyout formatter code
This code is completely useless:
* for format=flyout, the new EchoFlyoutFormatter.php will be run
* and even that one has already been deprecated as it was replaced
  by format=model (flyout html is now built in client)

Change-Id: Iea23abb66397ecc4efb575fe33fdbedc5b4e0f70
2016-02-05 06:56:15 +00:00
Justin Du 2c90793c41 Use new trash icon
*On deletion-related notifications

Bug: T125785
Change-Id: I9c23898ddc7bab70b069a03a2633c750a08a1740
2016-02-04 22:45:43 -06:00
Translation updater bot e3e454afb3 Localisation updates from https://translatewiki.net.
Change-Id: Ibb21c8bed76056ae0f3e40c238025429785b6a1f
2016-02-04 22:12:59 +01:00
Matthias Mullie 1be7039660 Use current HTML formatter (for special page) instead of previous
The existing "html" formatter was used for the special page & is now
superseeded by the new-style "special" formatter. Previous "html"
notifications are no longer used & could even be broken.
Instead of keeping the old "html" formatter around, we should let it
use the new formatter (and eventually just kill that redundant format
in the API)

Change-Id: Ibbd40aafa9eee718b196ad62f6edc99629b263b4
2016-02-04 20:03:19 +00:00
Matthias Mullie 4f097b02d0 Get rid of $legacyMapping
We now have 'special' in $formatters, there's no need to keep
the mapping to the legacy formatter around.

Change-Id: I66f330e8c84a50858658361caef521a3e5717d58
2016-02-04 19:57:06 +00:00
jenkins-bot d5ec5d0d92 Merge "Deprecate ApiEchoNotifications.php format params flyout & html" 2016-02-04 19:55:34 +00:00
Matthias Mullie c94c8abb53 Deprecate ApiEchoNotifications.php format params flyout & html
Change-Id: Ib1db9dbec7a0980b10ba4dc1b3f62ea468437390
2016-02-04 12:38:19 +00:00
Matthias Mullie cc11b3c81a Allow certain users to be excluded
Right now, if certain users should be excluded, that would have
to be part of the user-locators already. This is annoying because
it's hard to write "generic" user locators when you want to exclude
just a couple of people in certain cases.
In Flow, for example, we have user-locators for users watching a
board or topic. We don't want to send the notification to people
that have also been mentioned in that post (they'll get a separate
notification). We could build that exception into those
user-locators, but then we couldn't re-use them in other places...
This basically means we couldn't use EchoUserLocator::locateUsersWatchingTitle,
we would have to roll our own that also excludes mentioned users.

Instead, this lets you add 'user-filters' (that functionality
actually exists already, but is not currently exposed), which
lists users to not send the notification to, even though they could
be in a user-locator.

Bug: T125428
Change-Id: Ifa0e2d3283f57624af4c5ec264f9f66223508e83
2016-02-04 11:20:59 +01:00
jenkins-bot cb86b3cd43 Merge "Bring back user-rights lego messages" 2016-02-03 22:13:33 +00:00
Translation updater bot a664973d01 Localisation updates from https://translatewiki.net.
Change-Id: I9601308236c3c4df3b0ff856165f59383bffcd80
2016-02-03 23:05:05 +01:00
jenkins-bot d57ff6ea2b Merge "Update mediawiki_selenium Ruby gem to version 1.6.5" 2016-02-03 18:22:04 +00:00
Željko Filipin 06dd06e886 Update mediawiki_selenium Ruby gem to version 1.6.5
Bug: T125532
Change-Id: Id82892a360c180efebb1c806ec0fa3d139f2b51e
2016-02-03 18:03:20 +01:00
jenkins-bot a0469efbc3 Merge "Rephrase user rights change messages" 2016-02-03 13:44:34 +00:00
Stephane Bisson 1e105a88d9 Bring back user-rights lego messages
'notification-user-rights-add' and 'notification-user-rights-add'
were removed in I8386429a36182dbc44b45990506a42cbeef115ad
but they are still used by the email formatter.

They should be removed when the emails are formatted
using the presentation models.

Bug: T125584
Change-Id: I1453c9b0c05bf898c72d098dfb6d2d07135d3fac
2016-02-03 08:38:52 -05:00
Translation updater bot 5593d907cc Localisation updates from https://translatewiki.net.
Change-Id: I3afbace4f331dc00e16d24a31b639ac518e2f4f2
2016-02-02 21:30:36 +01:00
Matthias Mullie 9390089579 Rephrase user rights change messages
Bug: T121661
Change-Id: I9ea489527907a4435695bbcbe0f1464b8b58507b
2016-02-02 09:38:25 +01:00
jenkins-bot 0231c6e000 Merge "Make sure to use array_values for group names in user-rights notifications" 2016-02-02 07:18:33 +00:00
Translation updater bot aef2c13ed7 Localisation updates from https://translatewiki.net.
Change-Id: I00a40912f6cacdeeee40c4298856b248e7288250
2016-02-01 21:53:13 +01:00
Stephane Bisson ffc4365b08 Make sure to use array_values for group names in user-rights notifications
Bug: T125279
Change-Id: I49b5fe5cf27aef5b710a5d95a064b09b08612667
2016-02-01 13:30:25 -05:00
jenkins-bot 79ab2c805f Merge "Generate sample notifications" 2016-02-01 10:08:09 +00:00
jenkins-bot 59fc1b6f85 Merge "Add snippet to mention notification" 2016-02-01 09:10:05 +00:00
jenkins-bot 34d909e0b5 Merge "Gender support for viewing user in user-rights notifications" 2016-02-01 08:09:41 +00:00
Translation updater bot da48b7b297 Localisation updates from https://translatewiki.net.
Change-Id: I9cdd9eaa459300425c3733adbabd813791424df0
2016-01-31 21:38:59 +01:00
Translation updater bot 9d6ee662e2 Localisation updates from https://translatewiki.net.
Change-Id: I53c5f7f49c32fce4fc3c3938864650e3a8b697ad
2016-01-30 22:47:36 +01:00
Translation updater bot 5e6ba2f472 Localisation updates from https://translatewiki.net.
Change-Id: I3a7cc8ccbb04ab49e720ceda5d40b2ff464ae71d
2016-01-29 22:41:05 +01:00
Stephane Bisson a4b91ebef8 Gender support for viewing user in user-rights notifications
Bug: T125251
Change-Id: Iadd341a3bb555c91152528bbddaf2a660b8dcc77
2016-01-29 16:07:39 -05:00
jenkins-bot 44ae5aefae Merge "Support GENDER in mention-on-user-talk messages" 2016-01-29 16:47:23 +00:00
jenkins-bot e750abdf43 Merge "Fix lego messages in 'user-rights' notification" 2016-01-29 16:30:06 +00:00
Stephane Bisson 475d724b45 Support GENDER in mention-on-user-talk messages
Also refactored getHeaderMessageKey for grep-ability

Bug: T56433
Change-Id: Ia844c3e0008c7ed24dcc093e3eab41decbcaeb2a
2016-01-29 11:19:12 -05:00
Stephane Bisson 779b7030d9 Truncate usernames, titles and excerpts in notifications
Bug: T121822
Change-Id: Ia0a52926133ab7e04d7d9c2a095ef8f9d0871a49
2016-01-29 07:04:23 -05:00
Stephane Bisson cd7edf0378 Rephrase mention notifications
Split mentions into 4 cases:
 - Mentioned on article talk page
 - Mentioned on agent's talk page
 - Mentioned on another user's talk page
 - Mentioned on any other page

Adjust secondary link
  icon: article or talk
  text: without namespace for article and article talk

Bug: T56433
Change-Id: Ibf965dad4f9cc468fdd4321b2450d6eaec0ac1d7
2016-01-29 07:04:23 -05:00
Moriel Schottlender 3ece6b00c2 Hide 'mark as read' secondary button from foreign x-wiki bundles
Bug: T125155
Change-Id: I89a5eeb87ccfb875fa33dfac6d0a6b4df62699d3
2016-01-28 15:07:10 -08:00
Translation updater bot 85df4c2a64 Localisation updates from https://translatewiki.net.
Change-Id: I32d5aa7de2ef19ff83a4add1dd43549de0399a6f
2016-01-28 21:07:47 +01:00
Stephane Bisson 2c7136ecb7 Fix lego messages in 'user-rights' notification
Bug: T121661
Change-Id: I8386429a36182dbc44b45990506a42cbeef115ad
2016-01-28 11:43:04 -05:00
Stephane Bisson cbe602ee64 Generate sample notifications
Maintenance script that generates sample
notifications for Echo.

Change-Id: I5c88920a417a04cfd06d281f23b4c77368091776
2016-01-28 10:45:57 -05:00
jenkins-bot d0425ac746 Merge "Fix bundled header message for 'page-linked' notification" 2016-01-28 07:25:20 +00:00
Stephane Bisson 6960b18c21 Fix bundled header message for 'page-linked' notification
Followup to Ie875f105230c8364291a918b869b9c26dbdf1e83

Bug: T121812
Change-Id: I43f2fca36e5c6e4b8a5ca03f2877095672aa082b
2016-01-28 07:16:17 +00:00
Translation updater bot cfc8c2a13a Localisation updates from https://translatewiki.net.
Change-Id: I55f661cb10ed16667272b8fcf1e4879e78bc3921
2016-01-27 21:40:05 +01:00
Bryan Davis 3f7436c959 Wrap CallbackFilterIterator in a condition check
Wrap the CallbackFilterIterator backport class in a conditional check
for PHP runtimes that include the class natively. This really should
only be needed for linting as the class is loaded via an autoloader
and thus should not be loaded if the runtime already has it
available.

Bug: T124828
Change-Id: I39d27385186d4693a8babdd2b818e6b4bc16255a
2016-01-26 14:57:18 -07:00
jenkins-bot e28a912c3b Merge "Add 'mark as read' as secondary action to unread notifications" 2016-01-26 16:37:11 +00:00
Translation updater bot 61363eaa61 Localisation updates from https://translatewiki.net.
Change-Id: I4b9989264cd1652fcb64ff7d3675f406ada7f821
2016-01-25 22:29:13 +01:00
jenkins-bot 73623d88b0 Merge "Truncate notification action button text" 2016-01-25 20:13:38 +00:00
Translation updater bot 2098c207a6 Localisation updates from https://translatewiki.net.
Change-Id: Ia880b389ddb5aa898015b13636721563b2110431
2016-01-24 21:19:59 +01:00
Translation updater bot cff9caffc7 Localisation updates from https://translatewiki.net.
Change-Id: Ifad9b0b6844873647abf14d375cc66bb57ae862c
2016-01-23 22:25:16 +01:00
Moriel Schottlender df3417e49c Fix table layout width for bundled notifications
Bug: T124023
Change-Id: I9b49ce5f066d93a6572c2dc5a859284a4ab182d4
2016-01-21 17:04:58 -08:00
Moriel Schottlender a85561d3d8 Create a specific message for CORS failure in cross-wiki API request
Bug: T123797
Change-Id: I877c826a5571fb1f664af496b9b3469aa24884f6
2016-01-21 15:03:39 -08:00
Moriel Schottlender 79ac8be7fd Truncate notification action button text
Bug: T123657
Change-Id: I995c3383e7b465849773e4deaaa0d4a14524f6ac
2016-01-21 13:18:28 -08:00
Translation updater bot 97d5a3f293 Localisation updates from https://translatewiki.net.
Change-Id: I5cc52c183f84331e431f97b67eff34865dbe5d18
2016-01-21 21:54:39 +01:00
jenkins-bot ff5c8b4172 Merge "Revert "Follow-up 88d6f01c33: postpone greying out notification bodies for now"" 2016-01-21 19:57:14 +00:00
Moriel Schottlender 5c67c9110f Add 'mark as read' as secondary action to unread notifications
Bug: T121935
Change-Id: I0dda7335ba00492c5dc5a6f0e9f2faea1da612bc
2016-01-21 11:34:27 -08:00