Commit graph

2729 commits

Author SHA1 Message Date
Kunal Mehta 7f981670a3 Have EventPresentationModel implement JsonSerializable
Change-Id: I25a9ba9371ccf6c246de21fbb2c880441e051090
2016-02-12 14:15:23 -08:00
James D. Forrester 5031539327 Introduce congratulatory notifications for reaching edit thresholds
Bug: T124003
Change-Id: I21c6570e178fd03d969a516bdb31a6da9735d242
2016-02-12 14:11:21 -08:00
jenkins-bot 9f526ca72a Merge "Add thank icon" 2016-02-12 22:02:11 +00:00
Translation updater bot a63ff6e84f Localisation updates from https://translatewiki.net.
Change-Id: I75976848803f3bb77cbc95551ea1cb1964acb589
2016-02-12 22:08:11 +01:00
Stephane Bisson 09928f1ed2 Add email body preview to emailuser notification
when the subject line is left with the default
generated value, we take the begining of the
email content to add a preview in the
notification.

Bug: T121831
Change-Id: Ib7c646f6709c7100ef51186f84fe14807d6a211a
2016-02-12 14:50:17 -05:00
Stephane Bisson 88b16a0c81 Generate bundled page-linked notifications in test script
Change-Id: I6414c920e3a29ea5048819433aa86f41d8f54e69
2016-02-12 14:45:32 -05:00
jenkins-bot 9c7c869a29 Merge "Generate CX notifications in maintenance script" 2016-02-12 19:38:12 +00:00
jenkins-bot 34e8fc03b7 Merge "Bold pages and sections in notifications" 2016-02-12 19:23:46 +00:00
Translation updater bot c4f19d541a Localisation updates from https://translatewiki.net.
Change-Id: I6638dce3036029b583d120e1d9e5b21160d3905e
2016-02-11 21:38:31 +01:00
jenkins-bot 202afb8227 Merge "Truncate usernames to 20 char in notifications" 2016-02-11 19:02:21 +00:00
jenkins-bot c89700e255 Merge "Comparing User objects is unreliable" 2016-02-11 18:54:14 +00:00
Stephane Bisson 91f6798474 Bold pages and sections in notifications
Bug: T121724
Change-Id: Ifb7e5ec9e6a938d34112c6aff698697814c7eedb
2016-02-11 12:57:44 -05:00
jenkins-bot 35c8225485 Merge "Hide 'mark as read' secondary button from foreign x-wiki bundles" 2016-02-11 15:44:34 +00:00
Matthias Mullie 799d4de339 Comparing User objects is unreliable
Objects can be different instances (and for User, they can contain
very different data) in which case they wouldn't be recognized even
if they were the same user.
Let's find by ID instead.

Bug: T124803
Change-Id: Ia166fd4190f264354cea83d98047c62c7e0714ea
2016-02-11 14:48:29 +01:00
jenkins-bot a381a74f24 Merge "Convert secondary actions to their own class" 2016-02-11 13:25:17 +00:00
Roan Kattouw 6554ed00a3 Crush trash.svg
Change-Id: I1232100d56afbc1ce930e2a1588a0bcb6e45f34d
2016-02-10 14:15:16 -08:00
jenkins-bot f0ca5a5f0d Merge "If user only has foreign messages, the messages badge should not be suppressed" 2016-02-10 21:02:15 +00:00
jenkins-bot 17dda0c827 Merge "Add subject to email notification body" 2016-02-10 20:22:01 +00:00
Moriel Schottlender 3937857bd8 Convert secondary actions to their own class
This makes the actions more consistent, and also allows for separating
the two behaviors: The one where we need a link to a destination
(User page, diff, etc) and one where we have an action the code needs
to take care of ("Mark as read" or, in the future, volume control, etc)

Also, this allows for adding descriptions to the secondary links in
the dotdotdot menu.

It also fixes the bug where the links did not work.

Bug: T125160
Change-Id: I0ebf3fc62425f86e2e7f1e96b67f8dc34db83efb
2016-02-10 20:12:58 +00:00
Translation updater bot ce46a28aac Localisation updates from https://translatewiki.net.
Change-Id: I661d74b783f64e6f1ee86df62db011de58ec89e5
2016-02-10 21:09:04 +01:00
Stephane Bisson 442f812774 Add subject to email notification body
Bug: T121831
Change-Id: Ib1a9212202d2c84de8d968d043f65e24b2d94fae
2016-02-10 12:34:26 -05:00
Matthias Mullie b9f2d026a6 If user only has foreign messages, the messages badge should not be suppressed
Bug: T124372
Change-Id: Id9699c56e9b8c6af77e74cbfc48b6e4e3464b3a5
2016-02-10 13:25:50 +01:00
Translation updater bot a2563fe587 Localisation updates from https://translatewiki.net.
Change-Id: I964ba0ecae160a0688212fc53778523d20ac0bd4
2016-02-09 21:40:05 +01:00
Stephane Bisson 961968ff56 Truncate usernames to 20 char in notifications
Bug: T121822
Change-Id: Ie9650b5c72f2224dc6d26b3bfc45f29cbbd23397
2016-02-09 13:46:39 -05:00
jenkins-bot ccebb42186 Merge "Get rid of old flyout formatter code" 2016-02-09 18:34:36 +00:00
jenkins-bot f9b8202f4f Merge "Use current HTML formatter (for special page) instead of previous" 2016-02-09 18:22:33 +00:00
jenkins-bot 35d51085d6 Merge "Use new trash icon *On deletion-related notifications" 2016-02-09 18:08:23 +00:00
Translation updater bot fec3efcc01 Localisation updates from https://translatewiki.net.
Change-Id: Ic296ceea0eca01cff79e98dcdb7fb065362d1fe4
2016-02-08 22:12:32 +01:00
Stephane Bisson 08cc9f34e2 Add thank icon
Bug: T125693
Change-Id: I5578f176024063584cda452b26436bc59c37fee8
2016-02-08 15:47:13 -05:00
Stephane Bisson 522a79393d Generate CX notifications in maintenance script
Change-Id: Iec2f4b9d0815da1bf8ccdd5610f403133eeb4262
2016-02-08 10:37:49 -05:00
Stephane Bisson f7b0637d59 Fix 'user-rights' notification messages
Bug: T121661
Change-Id: I5b73001f2f748a39c3b28f6b571f076a51f8f785
2016-02-08 08:45:10 -05:00
Translation updater bot 01ad22e60e Localisation updates from https://translatewiki.net.
Change-Id: I62a23888e68851261e58eb6591c79cd44d72deec
2016-02-07 22:15:02 +01:00
Translation updater bot b483740ca2 Localisation updates from https://translatewiki.net.
Change-Id: I5eef58d224108665d8201a9daea0694e2c0bddc6
2016-02-05 21:50:52 +01:00
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