mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
52f4b91204
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 |
||
---|---|---|
.. | ||
api | ||
cache | ||
controller | ||
exception | ||
formatters | ||
gateway | ||
iterator | ||
jobs | ||
mapper | ||
model | ||
special | ||
AttributeManager.php | ||
BatchRowUpdate.php | ||
ContainmentSet.php | ||
DataOutputFormatter.php | ||
DeferredMarkAsReadUpdate.php | ||
DiffParser.php | ||
DiscussionParser.php | ||
EchoDbFactory.php | ||
EmailBatch.php | ||
EmailBundler.php | ||
EmailFormatter.php | ||
EventLogging.php | ||
NotifUser.php | ||
schemaUpdate.php | ||
SeenTime.php | ||
UnreadWikis.php | ||
UserLocator.php |