Commit graph

2496 commits

Author SHA1 Message Date
Translation updater bot ec2429dfbd Localisation updates from https://translatewiki.net.
Change-Id: I9f4d23279002d2e93533040579a5ffa485f2b0b8
2015-12-15 22:22:34 +01:00
jenkins-bot 4c0ca5d78b Merge "Add OOUI widgets for cross-wiki bundled notifications" 2015-12-15 20:30:08 +00:00
jenkins-bot 95290e8a4e Merge "Also support continuation requests for $unreadFirst" 2015-12-15 17:32:17 +00:00
Moriel Schottlender a4659baec5 Add OOUI widgets for cross-wiki bundled notifications
* Add the ability to use bundled expandable
  notification groups
* Display bundled cross-wiki notifications following
  the design

Bug: T115419
Bug: T115423
Bug: T115422
Change-Id: I8c3eba6d627c3f06d51d74fc9774e3fc2d02915d
2015-12-14 17:22:34 -08:00
jenkins-bot 78a28d6e5a Merge "Add missing @throws tag and change Exception subclass being thrown" 2015-12-14 21:48:01 +00:00
Translation updater bot 6488cd144e Localisation updates from https://translatewiki.net.
Change-Id: I669205750e9ae0755104951848e16eadea349257
2015-12-14 22:02:13 +01:00
Kunal Mehta 8ede0bf20d Add missing @throws tag and change Exception subclass being thrown
Change-Id: I39e3cdbdf4bddc12ca2d7d6a2696b92b8b7cbd10
2015-12-14 10:41:54 -08:00
Matthias Mullie f8a483d1f8 Add filter to ApiEchoNotifications
It lets you query for read/unread/all notifications.

Bug: T119890
Change-Id: I5d09b5ff9474c77577734e9ceb0bcbcad6c99c0c
2015-12-14 17:29:52 +01:00
jenkins-bot 7f44c242a0 Merge "Fix broken and incomplete PHPDoc tags" 2015-12-14 15:57:57 +00:00
Thiemo Mättig 66d5e17a25 Fix broken and incomplete PHPDoc tags
Change-Id: I0c8928a2dbf67cb15841fae6cc55c363357ec265
2015-12-14 11:03:09 +01:00
Thiemo Mättig 27e1a986da Fix visibility of setUp methods in tests
Change-Id: Ib1c425b9934a8325a4338f160aafcf17216aa250
2015-12-14 11:02:34 +01:00
Translation updater bot edb8320d7e Localisation updates from https://translatewiki.net.
Change-Id: Ia9bc78e94fc735e2f7077da0f6bad2b8182ed9cc
2015-12-13 22:17:21 +01:00
jenkins-bot 2603f1c30a Merge "Update grunt-jsonlint to 1.0.6" 2015-12-12 01:37:10 +00:00
Translation updater bot 45425782dd Localisation updates from https://translatewiki.net.
Change-Id: I8d302b17c697e57051f4351df485f646649addda
2015-12-11 23:49:15 +01:00
Kunal Mehta cfdc6cb3d0 Unbreak notformat=text|html in the API
Just pass any unknown formats through.

Change-Id: I156b49a959b5453cd37cd4c3d58652b5420132f3
2015-12-10 15:23:57 -08:00
Translation updater bot 4a2c663867 Localisation updates from https://translatewiki.net.
Change-Id: I67ba3992e6dfee892a48973d3e2f00ca3ae7dfcc
2015-12-10 22:53:35 +01:00
jenkins-bot b8bd7c80a8 Merge "Add support for cross-wiki notifications to Schema:EchoInteraction" 2015-12-10 19:27:30 +00:00
jenkins-bot ade37b5925 Merge "Share code between EchoNotificationMapper::fetchByUser & fetchUnreadByUser" 2015-12-10 19:16:17 +00:00
Kunal Mehta 479d7a2dd9 Add support for cross-wiki notifications to Schema:EchoInteraction
Adds support in the logger code that is unused for now.

Note that I9bf6f4bcd41d8da5 must be deployed before this can be used on
Wikimedia sites.

Bug: T120158
Change-Id: I1968f36e21139975d25231ac25c22a73dea6fd0d
2015-12-10 10:07:20 -08:00
Matthias Mullie 55cc28dd81 Also support continuation requests for $unreadFirst
Right now, it'll only respond a certain, fixed, amount,
not allowing you to paginate the list.

Note: haven't properly tested all possible cases yet!

Change-Id: I84761b13a1b9203cb8e3fcc80941d739cd28659f
2015-12-10 17:33:32 +01:00
Matthias Mullie 2a1abc0281 Share code between EchoNotificationMapper::fetchByUser & fetchUnreadByUser
The only difference at this point is that fetchByUser initializes
the EchoNotification object with $targetPages. It doesn't really
matter that it doesn't have the target pages, since fetchUnreadByUser
is currently only used in the flyout, where those target pages aren't
used. But regardless of what method was used to fetch the data, I
think the data should be the same.

And now, there's less code duplication...

Change-Id: I04c7b98794af5427a2217dd337108e7eea1e65c5
2015-12-10 17:19:46 +01:00
jenkins-bot fd8c15de1b Merge "Bump Schema:Echo to oldid=7731316" 2015-12-10 04:52:08 +00:00
Paladox eed93d18b9 Update grunt-jsonlint to 1.0.6
Change-Id: I14701a8168e98c3a10a1269324222ebc9772e328
2015-12-09 21:50:29 +00:00
Translation updater bot bae87f21f2 Localisation updates from https://translatewiki.net.
Change-Id: I0ce4be67bdfc3e345a7fe12e8d9e3eceb0ec65f5
2015-12-09 21:40:46 +01:00
Stephane Bisson 04d4da2783 Presentation model for edit-user-talk
Bug: T116843
Change-Id: Ia11f5b57747ed0be5d4b00c75925d5fcdde87c43
2015-12-09 13:35:10 -05:00
jenkins-bot 47fd3b5896 Merge "Presentation model for page-linked" 2015-12-09 18:02:15 +00:00
Kunal Mehta 7e72ac4dac Bump Schema:Echo to oldid=7731316
This adds "other" to the notificationGroup enum. This was already bumped
in wmf-config, but not in the extension itself.

Change-Id: If67754cfc40c004cebbf93d8b0e7d221d6620e61
2015-12-08 23:02:09 -08:00
jenkins-bot 84fb2e5a83 Merge "Use CentralIdLookup instead of hardcoding for CentralAuth" 2015-12-09 01:09:46 +00:00
Kunal Mehta 999c53a1c3 Use CentralIdLookup instead of hardcoding for CentralAuth
Change-Id: I5b2d23588ab6b026d1a2100b9c16a74e9aefbd73
2015-12-08 16:54:23 -08:00
Translation updater bot 02ec5fe213 Localisation updates from https://translatewiki.net.
Change-Id: I6c6dd3b4e4640fe91fa310e3de04f73875ce45bf
2015-12-08 22:22:27 +01:00
mhutti1 ea64fe4770 Redirect anonymous user to login page from Special:Notifications
Added code to redirect the user and display a short message informing
them of the need to login.

Bug: T118873
Change-Id: I2145bc1502dbd19d660302d9f19e0d4a2ad5ad50
2015-12-08 11:55:15 -08:00
Stephane Bisson a9f307ceab Presentation model for page-linked
Bug: T116843
Change-Id: Id9894b98a0dd7554a529ff763aaf0f719e36152b
2015-12-08 14:02:19 -05:00
jenkins-bot 7898576e88 Merge "Follow-up 65638384: update calls to normalizer functions" 2015-12-08 01:43:02 +00:00
Roan Kattouw ece6e3f80a Follow-up 65638384: update calls to normalizer functions
Change-Id: Id6352b133e88827047dac85423b6914b83e71909
2015-12-07 16:49:24 -08:00
Translation updater bot dc631c2c30 Localisation updates from https://translatewiki.net.
Change-Id: Ib4970b553112e0bc472c17a9fa5213ca294869b5
2015-12-07 23:12:54 +01:00
matejsuchanek c4b41a3f60 Add Czech alias of Special:Notifications
Change-Id: I63ae5316d4493798907ef995b091feb2e304c453
2015-12-07 17:21:16 +01:00
Translation updater bot 0e72980c55 Localisation updates from https://translatewiki.net.
Change-Id: I1b027cdb662e93abb9822d59446425841460260c
2015-12-06 21:43:04 +01:00
Translation updater bot f225059d5f Localisation updates from https://translatewiki.net.
Change-Id: I9422137fb1430fd4fdfc05cdc741cdc36356af14
2015-12-05 23:10:19 +01:00
Stephane Bisson e0cf7ea74c Balance brackets in en.json
The problem was introduced by I1cd7caa7bfe811bab89a0c6950c1aeaf1739aac6

Change-Id: I81def611127f0f438764f8aea19e7f2d5c47d969
2015-12-05 11:57:32 -05:00
Stephane Bisson 14b842bd34 Add gender support for the viewing user for mention notification
Bug: T119321
Change-Id: I1cd7caa7bfe811bab89a0c6950c1aeaf1739aac6
2015-12-04 16:53:11 -05:00
Stephane Bisson 65638384fc Normalize links in Special:Notifications formatter
Change-Id: I35354a3b27a59ee9740c6330bb3df22a8f7d6093
2015-12-03 11:11:15 -05:00
jenkins-bot b813835907 Merge "Allow grouping for getBundleCount()" 2015-12-02 21:56:04 +00:00
Translation updater bot 993a221bff Localisation updates from https://translatewiki.net.
Change-Id: I8da2bdf15e3d8ec29eec8c9b5f6fab0e6ebda526
2015-12-02 21:55:22 +01:00
Roan Kattouw 52f4b91204 Allow grouping for getBundleCount()
Presentation models that display the number of bundled notifications
typically group these by a property like agent or page ID. For example,
every edit someone makes to a user talk page generates an event,
so there could be 5 edit-user-talk events by only 2 distinct users;
in that case we want to display "Foo and 1 other user left a message",
not "Foo and 4 other users".

With this change, a presentation model that wants such behavior
can pass a callback to getBundleCount() that retursn the user ID, which
will cause getBundleCount() to return the number of distinct
users rather than the total number of notifications.

Change-Id: I79c8dd14277eff0d2ec27f155b1d13dca1e571a8
2015-12-02 08:16:19 -08:00
Translation updater bot ac316bdb47 Localisation updates from https://translatewiki.net.
Change-Id: Ia84b43f60fcc9edb046aae3de736cca9a57f5714
2015-12-01 21:32:53 +01:00
jenkins-bot 434a034120 Merge "Special:Notifications formatter" 2015-11-30 21:30:05 +00:00
Translation updater bot 948a73db24 Localisation updates from https://translatewiki.net.
Change-Id: I7fa863505528c440a66431972d4c8432d61a3667
2015-11-30 21:33:34 +01:00
jenkins-bot 7dc40bc160 Merge "Get bundled notifications count" 2015-11-30 20:12:38 +00:00
Translation updater bot f9ae56803b Localisation updates from https://translatewiki.net.
Change-Id: I6813e6317091afed8869bba04892790be92e465a
2015-11-28 21:44:21 +01:00
Stephane Bisson 259effc235 Get bundled notifications count
Utility functions to get the count of bundled notifications
for display and plural purposes.

Change-Id: I74d5ad244dec337a94e59c2118c33e474cd76797
2015-11-27 14:28:35 -05:00