mediawiki-extensions-Echo/modules
Roan Kattouw 7f079b7d4f Fix duplicate impression logging
We have a wrapper around logInteraction() called logNotificationImpressions()
that logs impressions uniquely (i.e. logs each notification impression only once),
but in addition to calling that (from NotificationsWidget), we were also manually
calling logInteraction() to log impressions from NotificationBadgeWidget
and NotificationGroupItemWidget. This resulted in two impression events
for every notification, each with different data, one of which is logged
only once and one of which can be logged multiple times.

Remove the manual logImpression() calls and route everything through
logNotificationImpressions(), which is called from only one place:
NotificationsWidget. Add support for logging foreign wikis to
logNotificationImpressions(), as it was previously missing.

This causes us to lose the notification type information in these
events, but that can also be derived after the fact by looking
up the event_id in the echo_event table.

Whether impression logging is even useful is another question,
but it certainly isn't useful if we log duplicate impression
events with different data.

Change-Id: I19b76a4ce796b21e9347dd9392af24918db82e18
2016-03-09 10:21:09 -08:00
..
api Echo API layer 2016-03-03 23:40:12 +00:00
icons Revert "Compress PNGs with zopflipng" 2016-03-03 19:57:02 +00:00
logger Fix duplicate impression logging 2016-03-09 10:21:09 -08:00
nojs Increase space between notification header and body 2016-02-15 15:56:59 -05:00
ooui Fix duplicate impression logging 2016-03-09 10:21:09 -08:00
special Revert "Compress PNGs with zopflipng" 2016-03-03 19:57:02 +00:00
viewmodel build: Enable jscs rule 'requireVarDeclFirst' and make pass 2016-03-07 11:57:31 +00:00
echo.mixins.less Truncate usernames, titles and excerpts in notifications 2016-01-29 07:04:23 -05:00
echo.variables.less Adjust group bundle styles 2016-02-29 20:16:42 +00:00
echo.variables.monobook.less Separate skin specific styles and improve Monobook appearance 2015-11-10 17:57:44 -08:00
echo.variables.vector.less Separate skin specific styles and improve Monobook appearance 2015-11-10 17:57:44 -08:00
ext.echo.init.js Merge "Add a short abbreviation for timestamps in notifications" 2016-03-04 02:52:22 +00:00
hooks.txt Add overlay hook for user scripts. 2013-06-13 21:27:26 -04:00