mediawiki-extensions-Echo/includes
Stephane Bisson d7845da3f6 resetNotificationCount() from replica with no lag
When notifications are being moderated, the unread count
for affected users has to be recalculated.

It was initially done using DB_SLAVE but it was leading
to inconsistent data since that database did not know
about recently deleted notifications.

It was changed to DB_MASTER but it potentially led
to too many queries on master.

This patch tries to wait for the replica to have
caught up with those changes and use it to update
the unread count for the affected users.

Bug: T93673
Change-Id: Ib4a845e82f686dd7ed807ab21a28490014b56604
2016-09-12 19:59:02 +00:00
..
api Make seen/unseen badge more consistent across wikis 2016-09-08 12:40:15 -07:00
cache Migrate LocalCache from MapCacheLRU to HashBagOStuff 2015-11-03 06:49:50 +00:00
controller resetNotificationCount() from replica with no lag 2016-09-12 19:59:02 +00:00
exception Hygiene: Update method documentation & split exception to a file 2014-08-04 17:43:57 -07:00
formatters Merge "Make PresentationModel::getPrimaryLinkWithMarkAsRead() final" 2016-09-12 13:28:05 +00:00
gateway Dynamic bundles 2016-06-27 09:49:13 -04:00
iterator Get rid of pre-5.4 CallbackFilterIterator implementation 2016-02-12 14:20:16 -08:00
jobs Remove etp_user 2016-09-09 09:32:28 -04:00
mapper Remove etp_user 2016-09-09 09:32:28 -04:00
model Remove etp_user 2016-09-09 09:32:28 -04:00
ooui No-JS special page: One-click mark as read 2016-05-27 17:23:29 -07:00
special Clean up Special:Notifications output 2016-09-01 13:38:06 -07:00
AttributeManager.php Display special: Add which section (curr. Alert v. Msg.) each type's in 2016-04-28 20:33:52 +00:00
Bundleable.php Dynamic bundles 2016-06-27 09:49:13 -04:00
Bundler.php Dynamic bundles 2016-06-27 09:49:13 -04:00
ContainmentSet.php Switch $wgMemc usage to proper cache/stash usage 2016-04-22 11:58:03 -07:00
DataOutputFormatter.php Moderate notifications 2016-08-19 22:20:04 +00:00
DeferredMarkAsDeletedUpdate.php Moderate notifications 2016-08-19 22:20:04 +00:00
DiffParser.php build: Enable phpcs rule 'PSR2.Methods.MethodDeclaration.StaticBeforeVisibility' and make pass 2015-10-29 13:06:43 +01:00
DiscussionParser.php Provide title when parsing wikitext 2016-09-01 16:48:56 -04:00
EchoDbFactory.php Track what wikis a user has unread notifications on 2015-11-20 15:54:11 -08:00
EmailBatch.php Merge "Dynamic bundles" 2016-06-28 19:34:42 +00:00
EmailFormat.php HTML email formatter using presentation model 2016-05-12 09:29:24 -04:00
EmailFrequency.php HTML email formatter using presentation model 2016-05-12 09:29:24 -04:00
EventLogging.php Fix special page visit logging 2016-08-22 16:35:50 -04:00
ForeignNotifications.php Always cap notification count based on MWEchoNotifUser::MAX_BADGE_COUNT 2016-09-09 17:15:15 -07:00
ForeignWikiRequest.php Fix typo (canUseCentralAuthl -> canUseCentralAuth) 2016-07-19 10:16:57 -07:00
Notifier.php Don't send empty emails 2016-06-28 09:19:01 -04:00
NotifUser.php Always cap notification count based on MWEchoNotifUser::MAX_BADGE_COUNT 2016-09-09 17:15:15 -07:00
ResourceLoaderEchoImageModule.php Add a rasterized email icons to Echo modules for email 2016-08-16 00:21:13 +00:00
schemaUpdate.php Clean up and fix updateEchoSchemaForSuppression.php 2016-06-06 23:56:28 +02:00
SeenTime.php Make seen/unseen badge more consistent across wikis 2016-09-08 12:40:15 -07:00
UnreadWikis.php backfillUnreadWikis: Skip updateCount if race condition detected 2016-07-18 20:58:48 -04:00
UserLocator.php Replace EchoBatchRowUpdate with BatchRowUpdate 2015-12-16 16:36:59 +00:00