mediawiki-extensions-Echo/tests
Roan Kattouw 0807c3c5ad NotifUser: Refactor getNotificationCount() and friends, add caching for global counts
Previously, getNotificationCount() only looked at local notifications,
and foreign notifications were added in separately by getMessageCount()
and getAlertCount(). This didn't make any sense and resulted in
counter-intuitive things like I4d49b543.

Instead, add a $global flag to getNotificationCount(). If $global=false,
the local count is returned as before, but if $global=true, the
global count (=local+foreign) is returned. If $global is omitted,
the user's cross-wiki notification preference determines which is returned.

Update getLastUnreadNotificationCount() in the same way, since it had
the same issues.

Also add caching for global counts and timestamps, using a global
memc key.

Bug: T133623
Change-Id: If78bfc710acd91a075771b565cc99f4c302a104d
2016-05-02 16:16:57 -07:00
..
browser Do not run broken Selenium test in CI 2016-04-26 15:51:15 +00:00
phpunit NotifUser: Refactor getNotificationCount() and friends, add caching for global counts 2016-05-02 16:16:57 -07:00
qunit Stop counting notifications objects on the client 2016-03-25 15:31:00 -04:00
bootstrap.php build: Enable phpcs rule 'Squiz.WhiteSpace.LanguageConstructSpacing.Incorrect' and make pass 2015-10-29 12:56:33 +01:00
echo.suite.xml Directory reshuffle, add dev tools 2014-08-01 22:38:41 +00:00
NotificationsTest.php Fix visibility of setUp methods in tests 2015-12-14 11:02:34 +01:00