Commit graph

2000 commits

Author SHA1 Message Date
Translation updater bot 970a090c56 Localisation updates from https://translatewiki.net.
Change-Id: I49d881d74b68692c8be080d2ea9e87b66ec0a955
2015-05-17 22:06:03 +02:00
umherirrender 9b02538429 Replace deprecated $wgSpecialPageGroups
$wgSpecialPageGroups is deprecated since 1.21
override SpecialPage::getGroupName instead

Change-Id: I92eee336132de57b9759ba67fed1f060bd6a881e
2015-05-15 22:41:09 +02:00
Translation updater bot 9edbbe5453 Localisation updates from https://translatewiki.net.
Change-Id: I1d837548f9f8f63cb441b93be2123cb71091ba9d
2015-05-15 21:40:30 +02:00
Translation updater bot 6a6e92be57 Localisation updates from https://translatewiki.net.
Change-Id: Ie1b869007099bb11a91f3d710930af44286bd3ae
2015-05-12 22:16:51 +02:00
Translation updater bot 4bf8ba4613 Localisation updates from https://translatewiki.net.
Change-Id: Ifa08ad40beb68714700904c17b7a86325f3ca731
2015-05-11 21:49:03 +02:00
Translation updater bot 14bbfb3358 Localisation updates from https://translatewiki.net.
Change-Id: Ie3e8d49d2deffe1ecdf9f335df17c594aa6009b9
2015-05-09 21:48:22 +02:00
jenkins-bot d157104f1a Merge "Don't repopulate cache with potentially lagging DB data" 2015-05-08 18:29:51 +00:00
Translation updater bot 79eb49ebfb Localisation updates from https://translatewiki.net.
Change-Id: Iad6aff15fc83e51aa276a93971a7dab750d623b8
2015-05-07 21:26:59 +02:00
Matthias Mullie 6bcece22cc Don't repopulate cache with potentially lagging DB data
getNotificationCount & getLastUnreadNotificationTime have an
argument $cached that allows cache to be bypassed & read from
DB. That result is then stored to cache.

In practice, it seems to be used only for cache invalidation.
getLastUnreadNotificationTime didn't allow to specify the DB
to be read from, and EchoNotificationMapper::fetchUnreadByUser
only read from slave.
So when we wanted to invalidate the cache, we would end up
immediately repopulating it with data from a (potentially and
likely) lagging slave.

I've made it accept the DB type, similar to getNotificationCount.

Bug: T98421
Change-Id: Ie4b09eeb04b9827b454cb2d92ee8c674bdd59a19
2015-05-07 14:01:56 +02:00
Translation updater bot 276b4da02e Localisation updates from https://translatewiki.net.
Change-Id: I860fbc5bc979c9a9211b23b3fe65ea4de614d9e7
2015-05-06 21:59:46 +02:00
Matthias Mullie d150625ce1 Until seentime is recorded, we should treat notifications as unseen
Since we didn't use to save seen time, it is unreliable at first.
I decided to just show them as read then, since we couldn't know
if they had or hadn't been read.
However, it would make more sense to keep them unread until we first
save the time a notifiation is seen: it is in line with the current
behavior (where the badge just stays red, always)

Also fixed a problem where I meant to .get a value but had .set
instead. It wasn't noticable because that function is currently
only called when things have just been seen, so even though it
was wrong, it produced a good result.

Bug: T94634
Change-Id: I7ee447249527feb3914c76cfffd673bbda062b75
2015-05-06 10:53:45 +02:00
Translation updater bot bd4b7e7e48 Localisation updates from https://translatewiki.net.
Change-Id: I57095cf863f2033f1fe8346244edd2991266ceb4
2015-05-05 22:40:15 +02:00
Translation updater bot 17da1f7043 Localisation updates from https://translatewiki.net.
Change-Id: Ia18fb515bc4b27ae49274bcb7491cccb3519a84e
2015-05-04 22:24:20 +02:00
Roan Kattouw 518101e495 Actually pass jscs
Removed exemptions from .jscsrc and fixed the code to make jscs still
pass.

Kept the dangling underscores exemption because leading underscores
are (for now) used as a naming convention for private functions in
this repo.

Change-Id: I18964f8469f52c294276527d92cb6bf9f48c2576
2015-05-04 19:28:01 +00:00
Translation updater bot ae2c2f6e25 Localisation updates from https://translatewiki.net.
Change-Id: Ia0bb5a8330757eaf8bc5138ba88c36f584408f7d
2015-05-03 21:50:23 +02:00
Translation updater bot 2453d6047e Localisation updates from https://translatewiki.net.
Change-Id: I8116c1265890bb1b589ec1b6aeadc9cc0308ed6f
2015-05-02 22:03:15 +02:00
Roan Kattouw 5aefeb3f2e Add Grunt infrastructure for CI
* Update package.json based on Flow's
* Add Gruntfile.js based on Flow's
* Add .csslintrc and .jscsrc with rules to silence errors for now

Change-Id: Ia8e23537d8dccbcff9ee336f667dc463590c0235
2015-05-01 20:35:23 -07:00
jenkins-bot df9de05c68 Merge "Start tests for the built-in notification types" 2015-05-01 20:51:50 +00:00
jenkins-bot 07ba07d649 Merge "Add fallback for enotiftalk in generateEventsForRevision" 2015-05-01 20:49:16 +00:00
Translation updater bot 29a886f2c4 Localisation updates from https://translatewiki.net.
Change-Id: I239cf1bf9b6e232c10a2ab952d6da5be8936d8e1
2015-05-01 22:02:35 +02:00
jenkins-bot fce9b5065f Merge "Display red badge based on time of notifications vs last time panel was opened" 2015-05-01 18:42:19 +00:00
Matthias Mullie da07893647 Display red badge based on time of notifications vs last time panel was opened
I tried to stick as close to the existing code as possible.

Special:Notifications is slightly different from the overlay,
however. I made it add .mw-echo-unread class for consistency,
but that JS doesn't record seen time (it only loads older
entries), not does the CSS fadeout apply there (it marks
everything as read as soon as it's displayed, so different
behavior from overlay)

PS: I'm not sure about browser compat for the fadeout. But
even if some obscure browsers don't support this, meh. It's
not an "important" feature that can't be missed.

Bug: T94634
Change-Id: Ibb201823fb52ef8a3d5eaa39b0b724ede8d271d1
2015-05-01 11:39:45 -07:00
Translation updater bot 712170df7b Localisation updates from https://translatewiki.net.
Change-Id: I39b0119a40b4e6ed4544f179178aa7a8fd6b81a8
2015-04-29 22:32:17 +02:00
jenkins-bot 4079fd0914 Merge "Explicitly define module position" 2015-04-28 19:45:55 +00:00
Translation updater bot 508dae8014 Localisation updates from https://translatewiki.net.
Change-Id: I48e41458c2a5116bb909236142b0c0f8987e79e9
2015-04-28 21:25:38 +02:00
Gilles Dubuc 001572b510 Explicitly define module position
Style modules currently added through addModuleStyles default
to being in the head ("top" position). This is an unhealthy default,
since only critical styles that are needed at pageload should be
in the head. In order to be able to switch the default to "bottom",
existing module positions have to be defined explicitly.

Bug: T97410
Change-Id: Id972c96526a32dc4ca332e973f6bd752601c2d5f
2015-04-28 15:46:03 +02:00
jenkins-bot 9c72bc84b1 Merge "More explicit type matching in detectSectionTitleAndText()" 2015-04-28 06:53:19 +00:00
Translation updater bot c9bffcba39 Localisation updates from https://translatewiki.net.
Change-Id: Ief650e253e2bb5727f9b72f2419fc16cfaef45d0
2015-04-27 22:12:47 +02:00
Translation updater bot 659609e702 Localisation updates from https://translatewiki.net.
Change-Id: Iec4e486a94abe2f1432abaf268b3dc15e528d67a
2015-04-26 22:29:39 +02:00
Federico Leva aa3d1afda3 Add fallback for enotiftalk in generateEventsForRevision
Link the bottom of the talk page and use the edit summary as text
if the parser failed to find something. This is what core's enotif
does already.

Change-Id: Iadc7011ea2627e00f0c51472da7aad1355afeddb
2015-04-26 15:52:57 +02:00
Federico Leva fd532b82ca More explicit type matching in detectSectionTitleAndText()
Change-Id: I22c8dc5235f8b4b531c5bbd3ec98c19df7f449a6
2015-04-26 15:37:59 +02:00
Translation updater bot 658706c280 Localisation updates from https://translatewiki.net.
Change-Id: I0f6f55d2dd6a001e1e3a418aa73258157efa4578
2015-04-25 23:01:24 +02:00
Translation updater bot a5f14ce0bd Localisation updates from https://translatewiki.net.
Change-Id: I17ee14736bf921dddc8f48191462eda63fd5b5b0
2015-04-23 23:34:04 +02:00
jenkins-bot 63c3005d31 Merge "Update 'notification-page-linked-email-subject' message" 2015-04-22 22:54:04 +00:00
Translation updater bot a22133440c Localisation updates from https://translatewiki.net.
Change-Id: I9a004834f901b1cdc2def695e8cbc749078625f1
2015-04-21 22:10:52 +02:00
jenkins-bot cf8bda70fe Merge "Unreachable code in Echo hooks" 2015-04-20 21:28:13 +00:00
Tony Thomas 89b88ce61f Unreachable code in Echo hooks
Removed function EchoHooks::getDefaultNotifiedUsers

Change-Id: I5a2d219c3daea87705776f76744a8e7753e01fac
2015-04-20 21:51:23 +05:30
jenkins-bot ed3f9587ad Merge "Made Echo respect $wgEnableEmail = false;" 2015-04-20 16:15:12 +00:00
jenkins-bot e3d87f8a9d Merge "Made EchoNotificationDeleteJob flush transactions so the slave wait works" 2015-04-20 16:03:54 +00:00
Translation updater bot 3ead1932d6 Localisation updates from https://translatewiki.net.
Change-Id: I34d5a59eb1d44de7596ca6be2345706cad892622
2015-04-19 21:21:22 +02:00
Tony Thomas f208548f83 Made Echo respect $wgEnableEmail = false;
Bug: T96143
Change-Id: I09f7cadb98633e171c23072f7282fecf377cd648
2015-04-18 19:16:47 +05:30
Aaron Schulz 992dc41f10 Made EchoNotificationDeleteJob flush transactions so the slave wait works
Change-Id: I18df9b973365cbcd7ef7f1abb816c31d0f5e2212
2015-04-17 19:55:37 -07:00
Translation updater bot 952b2958a4 Localisation updates from https://translatewiki.net.
Change-Id: I34355f08535ed0dc6770420935d36aa9c379b1c6
2015-04-17 22:21:33 +02:00
Translation updater bot af6fbc3294 Localisation updates from https://translatewiki.net.
Change-Id: I810c20fe7a1411bd58a9e3600a94a49d3d655078
2015-04-16 21:27:42 +02:00
Matthew Flaschen 0dbf078f8d Make sure eventId is int for client-side events.
Bug: T95169
Change-Id: Ic15b963a3656f8886532d1b990befe327159d56e
2015-04-15 00:18:38 -04:00
jenkins-bot 2625108d9e Merge "Remove unused default value" 2015-04-14 00:51:22 +00:00
Erik Bernhardson f21dd442e7 Remove unused default value
The default value is never used, it is overridden in the constructor.
Having it here just misleads someone looking at the code to think it
might pull all columns by default.

Change-Id: I0e743c371d4bd2fab5b89740ba1e0f082512ec34
2015-04-13 13:56:38 -07:00
Translation updater bot 32415b3be1 Localisation updates from https://translatewiki.net.
Change-Id: I8c86e3894a9c23b7ebfa23c385a9b70ef165230a
2015-04-13 22:32:21 +02:00
Translation updater bot bafc089373 Localisation updates from https://translatewiki.net.
Change-Id: I82680380f63feed9b0e3efa3ff5766b9df8ecf0f
2015-04-12 21:52:35 +02:00
Translation updater bot 7c3ee35836 Localisation updates from https://translatewiki.net.
Change-Id: Ia4aff38362c113fcac31c0fc8c3392e96a510a36
2015-04-11 21:30:47 +02:00