mediawiki-extensions-Echo/includes
Roan Kattouw 52f4b91204 Allow grouping for getBundleCount()
Presentation models that display the number of bundled notifications
typically group these by a property like agent or page ID. For example,
every edit someone makes to a user talk page generates an event,
so there could be 5 edit-user-talk events by only 2 distinct users;
in that case we want to display "Foo and 1 other user left a message",
not "Foo and 4 other users".

With this change, a presentation model that wants such behavior
can pass a callback to getBundleCount() that retursn the user ID, which
will cause getBundleCount() to return the number of distinct
users rather than the total number of notifications.

Change-Id: I79c8dd14277eff0d2ec27f155b1d13dca1e571a8
2015-12-02 08:16:19 -08:00
..
api Special:Notifications formatter 2015-11-25 10:22:04 -08:00
cache Migrate LocalCache from MapCacheLRU to HashBagOStuff 2015-11-03 06:49:50 +00:00
controller Allow presentation models to indicate a notification can't be formatted 2015-10-28 18:28:08 -07:00
exception Hygiene: Update method documentation & split exception to a file 2014-08-04 17:43:57 -07:00
formatters Allow grouping for getBundleCount() 2015-12-02 08:16:19 -08:00
gateway Update formatting 2015-10-03 23:28:54 -04:00
iterator Update formatting 2015-10-03 23:28:54 -04:00
jobs Update formatting 2015-10-03 23:28:54 -04:00
mapper EventMapper::fetchByUserBundleHash(): Always return an array 2015-11-19 10:12:43 -08:00
model Require a User object to be passed to EchoEvent::userCan() 2015-11-23 16:08:17 -08:00
special Special:Notifications formatter 2015-11-25 10:22:04 -08:00
AttributeManager.php Update formatting 2015-10-03 23:28:54 -04:00
BatchRowUpdate.php build: Enable phpcs rule 'MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment' and make pass 2015-10-29 13:06:14 +01:00
ContainmentSet.php Remove unused code and fix missing/broken documentation 2014-06-04 04:54:00 +00:00
DataOutputFormatter.php Special:Notifications formatter 2015-11-25 10:22:04 -08: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 Unstub $wgLang before passing it to DiscussionParser::getTextSnippet() 2015-11-16 10:41:51 -08:00
EchoDbFactory.php Track what wikis a user has unread notifications on 2015-11-20 15:54:11 -08:00
EmailBatch.php IDatabase::delete() does not take a fourth parameter 2015-10-30 10:49:59 -07:00
EmailBundler.php IDatabase::delete() does not take a fourth parameter 2015-10-30 10:49:59 -07:00
EmailFormatter.php Update formatting 2015-10-03 23:28:54 -04:00
EventLogging.php EventLogging: Make sure eventId is an integer 2015-10-21 11:08:50 -07:00
NotifUser.php Merge "Track what wikis a user has unread notifications on" 2015-11-21 00:05:44 +00:00
schemaUpdate.php Update formatting 2015-10-03 23:28:54 -04:00
SeenTime.php Update formatting 2015-10-03 23:28:54 -04:00
UnreadWikis.php Follow-up b85f978ddd: don't check for the non-existent CentralAuth class 2015-11-24 19:34:27 -08:00
UserLocator.php Update formatting 2015-10-03 23:28:54 -04:00