mediawiki-extensions-Echo/includes
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
..
api Gracefully handle outdated echo_unread_wikis rows 2016-06-20 16:21:03 +01:00
cache Migrate LocalCache from MapCacheLRU to HashBagOStuff 2015-11-03 06:49:50 +00:00
controller Remove overwritten $notifyTypes array 2016-05-20 11:43:48 +01:00
exception Hygiene: Update method documentation & split exception to a file 2014-08-04 17:43:57 -07:00
formatters Merge "Allow the primary link to set all bundled notifications as read" 2016-06-14 15:42:35 +00:00
gateway Let EchoUserNotificationGateway return a different notification count 2016-03-22 14:22:15 +01:00
iterator Get rid of pre-5.4 CallbackFilterIterator implementation 2016-02-12 14:20:16 -08:00
jobs Get rid of email bundling 2016-05-17 16:24:16 -04:00
mapper Merge "ApiEchoNotificatons: Add nottitles parameter" 2016-06-16 12:09:46 +00:00
model Avoid exceptions when event_extra can't be unserialized 2016-05-13 16:39:17 -07:00
ooui No-JS special page: One-click mark as read 2016-05-27 17:23:29 -07:00
special Merge "Fix notification pager" 2016-06-01 22:23:31 +00:00
AttributeManager.php Display special: Add which section (curr. Alert v. Msg.) each type's in 2016-04-28 20:33:52 +00:00
ContainmentSet.php Switch $wgMemc usage to proper cache/stash usage 2016-04-22 11:58:03 -07:00
DataOutputFormatter.php Server-side crosswiki requests 2016-05-03 17:45:45 -07:00
DeferredMarkAsReadUpdate.php Allow presentation models to indicate a notification can't be formatted 2015-10-28 18:28:08 -07:00
DiffParser.php build: Enable phpcs rule 'PSR2.Methods.MethodDeclaration.StaticBeforeVisibility' and make pass 2015-10-29 13:06:43 +01:00
DiscussionParser.php Cleanup DiscussionParser 2016-05-31 17:01:32 -07:00
EchoDbFactory.php Track what wikis a user has unread notifications on 2015-11-20 15:54:11 -08:00
EmailBatch.php Merge "Avoid exceptions when event_extra can't be unserialized" 2016-05-14 00:45:56 +00:00
EmailFormat.php HTML email formatter using presentation model 2016-05-12 09:29:24 -04:00
EmailFormatter.php Bring back messages used by old email formatter system 2016-05-17 10:37:39 -04:00
EmailFrequency.php HTML email formatter using presentation model 2016-05-12 09:29:24 -04:00
EventLogging.php EventLogging: Make sure eventId is an integer 2015-10-21 11:08:50 -07:00
ForeignNotifications.php Link project labels in xwiki bundle to their Special:Notifications page 2016-05-16 13:33:18 -07:00
ForeignWikiRequest.php Factor out cross-wiki API request code 2016-06-08 22:35:57 +02:00
Notifier.php Get rid of email bundling 2016-05-17 16:24:16 -04:00
NotifUser.php Gracefully handle outdated echo_unread_wikis rows 2016-06-20 16:21:03 +01:00
schemaUpdate.php Replace EchoBatchRowUpdate with BatchRowUpdate 2015-12-16 16:36:59 +00:00
SeenTime.php Update formatting 2015-10-03 23:28:54 -04:00
UnreadWikis.php Delete rows in echo_unread_wikis if there are no unread notifs 2016-02-23 16:21:28 +01:00
UserLocator.php Replace EchoBatchRowUpdate with BatchRowUpdate 2015-12-16 16:36:59 +00:00