mediawiki-extensions-Echo/includes/api
Roan Kattouw 792de35994 Gracefully handle outdated echo_unread_wikis rows
Adds $wgEchoSectionTransition and $wgEchoBundleTransition.
If either of these settings is enabled, we will disbelieve
the alert/message counts in the euw table and obtain them
using server-side cross-wiki API queries instead.

This affects both ApiEchoNotifications (for generating the cross-wiki
summary entry) and the count and timestamp computation in NotifUser.

In bundle transition mode, we trust that notifications are classified
correctly between alerts and messages, but we don't trust the
counts in the table. In section transition mode, we trust that
the sum of the alert and message counts is the correct count,
but we don't trust the alert and message counts individually.
If both modes are enabled, we mistrust anything that's mistrusted
by either mode and only trust what's trusted by both modes.
In any event, we do trust that only the wikis with rows in the
euw table have unread notifications.

Bug: T132954
Change-Id: Ibcc8ac102dac3cf06916d67427b42457fdb93db6
2016-06-20 16:21:03 +01:00
..
ApiCrossWikiBase.php Gracefully handle outdated echo_unread_wikis rows 2016-06-20 16:21:03 +01:00
ApiEchoMarkRead.php NotifUser: Refactor getNotificationCount() and friends, add caching for global counts 2016-05-02 16:16:57 -07:00
ApiEchoMarkSeen.php API: Remove pre-1.25 compat code 2015-10-26 08:41:57 -07:00
ApiEchoNotifications.php Gracefully handle outdated echo_unread_wikis rows 2016-06-20 16:21:03 +01:00
ApiEchoUnreadNotificationPages.php ApiEchoUnreadNotificationPages: Only count bundle bases 2016-06-13 20:19:32 +01:00