Commit graph

6928 commits

Author SHA1 Message Date
kaldari 62155661de Making sure that email notification settings stay in sync.
Also registering UserLoadOptions hook (oops!)

Finally, getting rid of old override system that is now obsolete.

Change-Id: Ie264981eb20f1e3d3c83721bc376d79e2f5a1430
2013-04-29 21:51:42 -07:00
kaldari 95c9825b83 Adding maintenance file for updating user caches after CopyExistingEmailPreference
Change-Id: If938e352e4aaa44d1e9e0718cc1bece26c7a7f74
2013-04-29 18:40:12 -07:00
ebernhardson db2669d7a0 Accept diffs formatted by UnifiedDiffFormatter
GNU diff and mediawiki's internal UnifiedDiffFormatter do not have
the same default formats.  Here we adjust the output of the internal
diff to match gnu diff as is expected by DiscussionParser.
Bug: 41689

Change-Id: Ib83cacab41adfbdfa8e122c0494b266d4caefc83
2013-04-29 17:21:13 -07:00
jenkins-bot 3149e30a33 Merge "Add a hook to smoothly deal with old user preferences during migration" 2013-04-30 00:02:09 +00:00
lwelling 069249cd62 Add a hook to smoothly deal with old user preferences during migration
Catches people who have opted out of old style talk page notifications and opts them out
of equivalent new ones.
Needs $wgRecentEchoInstall = true in LocalSettings.php so it can be turned off when no
longer needed.

The migration has 1 million rows to write on enwiki so will take some time

Change-Id: Ie6201df378bf8df813b3d461ea9a8521d99b1bb9
2013-04-29 16:31:09 -04:00
lwelling 7c3bd0f3a0 Maintenance script to copy the preference of existing users who have opted out
of talk page email notifications to the analogous setting in the Echo version of
talk notifications

Change-Id: I5cdaf261d042f3586d2d02fed672ee35df5a9b90
2013-04-29 16:16:19 -04:00
Translation updater bot 76abac53c5 Localisation updates from http://translatewiki.net.
Change-Id: If133868aadfcf4dcfb23d606881698d4e1a1b6e9
2013-04-29 20:01:19 +00:00
jenkins-bot 50bf49dbff Merge "A maintenance script for pre-emptively updating email notice option" 2013-04-29 19:01:16 +00:00
kaldari 1d52f9c835 A maintenance script for pre-emptively updating email notice option
This script is designed to be run prior to the Echo deployment.

Change-Id: I66f532f21183109c6c3c997fa0e666cb19bfc832
2013-04-29 11:44:44 -07:00
jenkins-bot 0e671b1c7e Merge "Removing options that belong in other extensions" 2013-04-29 17:14:25 +00:00
jenkins-bot e74719e625 Merge "email digest notificaiton should be logged as well for metrics" 2013-04-29 17:08:11 +00:00
jenkins-bot 87c07e9141 Merge "Only create notifications that are wanted by the recipients" 2013-04-29 10:25:34 +00:00
jenkins-bot bd590aaab6 Merge "Changing how the enotifusertalkpages user option is handled by Echo" 2013-04-29 10:00:11 +00:00
Matthew Flaschen 0eff0b6fdb Remove unused W icon, now configured outside extension.
Bug: 46585
Change-Id: Ic0e29cf8284efc87e2ce67434a5d7984ee760659
2013-04-29 02:41:53 -04:00
Matthew Flaschen d3b67e2122 Change icons to use img tags, allowing easier customization:
* Icon can be defined using a path or a URL
* Extensions don't need custom CSS, but add icon through BeforeCreateEchoEvent
* Sites set their notification icon in LocalSettings.php or equivalent

Bug: 46585
Change-Id: Ifc02b653d07de19229dfb2604305e32f3bd595fe
2013-04-29 06:05:40 +00:00
Translation updater bot a5a97ea8e6 Localisation updates from http://translatewiki.net.
Change-Id: Icd1d1a2498bd165971ae3f48706fbc8863483f30
2013-04-28 23:53:25 +00:00
kaldari 5b40cfbc58 Changing how the enotifusertalkpages user option is handled by Echo
If we're using Echo to handle user talk page post notifications,
hide the old (non-Echo) preference for this. If Echo is moved to core
we'll want to remove this old user option entirely. For now, though,
we need to keep it defined in case Echo is ever uninstalled.
Otherwise, that preference could be lost entirely. This hiding logic
is not abstracted since there is only a single preference in core
that is potentially made obsolete by Echo.

Change-Id: I6c8b2143a5fd719486f7e6cbaa3d7635f507ffca
2013-04-28 15:21:05 -07:00
kaldari 5a4704e357 Only create notifications that are wanted by the recipients
Also moving getUserEnabledEvents from EchoBackend to
NotificationController since it has nothing to do with the backend.

Bug: 47664
Change-Id: I4f9682b861d9f035ae45f206c37ec0ae1c09ab64
2013-04-28 11:09:15 -07:00
Translation updater bot ccb93c653b Localisation updates from http://translatewiki.net.
Change-Id: I1df53916563aab0ee36172a5a851739b155ea5aa
2013-04-27 20:18:24 +00:00
jenkins-bot 18b3b3a71a Merge "Making system messages email to users by default per specs" 2013-04-27 02:18:58 +00:00
kaldari 2c4b1e2c2e Making system messages email to users by default per specs
Change-Id: I9ba67d06adaee68fc801f92eec6dd9429bfee950
2013-04-26 18:39:11 -07:00
jenkins-bot 4f4289b55f Merge "More fixes for Monobook and adding a missing message key" 2013-04-27 00:03:06 +00:00
jenkins-bot c28d5c9f5c Merge "Hedging my bets" 2013-04-27 00:01:29 +00:00
kaldari 5ad9f2a96e More fixes for Monobook and adding a missing message key
Bug: 47652
Change-Id: I3199af6aef0ceab2380fb1de7b74cc21541e2886
2013-04-26 16:58:03 -07:00
kaldari 00a4bc69f4 Removing options that belong in other extensions
Bug: 47757
Change-Id: Ia8be4967d962176f1e58ee6488f4cc9bfe75b655
2013-04-26 16:28:29 -07:00
Translation updater bot 474124a6ca Localisation updates from http://translatewiki.net.
Change-Id: I2c7bf57334dcd9747db1b625de10e02871bf9c7d
2013-04-26 22:12:00 +00:00
kaldari 35797064c4 Hedging my bets
Making monobook's text-transform not apply to notification flyout.
Unfortunately, 2 overrides are needed since the monobook selector
is applied weakly to the overlay in general (as an inherited style)
and strongly to the notifications themselves (since they're in a ul)

Bug: 47652
Change-Id: I2600b5836ea7bca59d9089d8bb7e69a6aaeca6a4
2013-04-26 14:52:44 -07:00
jenkins-bot 9a6a74208c Merge "Override text color for monobook skin." 2013-04-26 21:19:38 +00:00
kaldari c52cc48aed Override text color for monobook skin.
Bug: 47652
Change-Id: I29562fa75ec4af1128f69865d0500fc13a92eec8
2013-04-26 14:00:59 -07:00
bsitu e6403c4647 email digest notificaiton should be logged as well for metrics
Change-Id: I3ba12431588013454c191f5561d127168ffac599
2013-04-26 13:13:06 -07:00
jenkins-bot f89a7b2c88 Merge "Only the 'Notifications' part of the header should be bold" 2013-04-26 00:43:11 +00:00
kaldari f9a40d47f2 Making page title bold in flyout version of revert notification
Change-Id: I98ac6a267f230bbca05608130d22f2512542ccaf
2013-04-25 16:27:38 -07:00
lwelling 8f3e83d183 Fix enabled/disabled logic for event logging in echo
Change-Id: I5dbf939a0651f5c1e97f896d5325437a5fc32b54
2013-04-25 15:36:55 -04:00
raymond 8599f19a2d Slightly rephrase message and add link
Suggested by Siebrand
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Echo-dismiss-prefs-message/nl

Change-Id: I600c3ab518dda019b3f4210c3836356908d2de91
2013-04-25 20:13:57 +01:00
jenkins-bot 897e450c5b Merge "Adding help button to flyout. Fixing ID name per conventions." 2013-04-25 18:36:34 +00:00
Kaldari d38ad2afdf Merge "Get rid of wikipedia logo" 2013-04-25 18:24:51 +00:00
jenkins-bot 13a680513a Merge "Making agents and pages bold in flyout notifications per specs" 2013-04-25 18:15:33 +00:00
Krenair 49d1eac5a6 Get rid of wikipedia logo
This was being used as the icon for the welcome and user rights notifications,
but is completely inappropriate for any site other than Wikipedia.

WMF will probably want something like this in their config:
if ( $site === 'wikipedia' ) {
	$wgEchoNotifications['welcome']['icon'] = 'w';
	$wgEchoNotifications['user-rights']['icon'] = 'w';
}

Bug: 47650
Change-Id: Idd41567ffcb468dd3d040d2a5a61d1e3f9f7f5fa
2013-04-25 19:11:19 +01:00
jenkins-bot c671d15a01 Merge "Move maintenance scripts to maintenance directory" 2013-04-25 17:48:22 +00:00
kaldari b3391e42ff Only the 'Notifications' part of the header should be bold
When there are more new notifications than can fit in the overly
it shows a message in the header alerting the user. This message
should be in regular text, while 'Notifications' should stay bold.

Changed per Fabrice.

Change-Id: I21dc0ed516e5656c6d1965970d7a5f313e317aa9
2013-04-24 21:51:27 -07:00
kaldari 24b00328b6 Adding help button to flyout. Fixing ID name per conventions.
Change-Id: Id7243ba8e8599e1413203f951e96b73e2a6ceb9c
2013-04-24 21:36:03 -07:00
jenkins-bot 5276fbad66 Merge "Set echo preferences for new users after their account is created Default settings for existing users are intended to be low volume and not annoying New users need more encouragement and incentive to return" 2013-04-25 01:39:40 +00:00
jenkins-bot a7c2b83f9a Merge "Some comment fixes" 2013-04-25 01:37:06 +00:00
jenkins-bot 564827f873 Merge "New red heart icon for Echo gratitude notifications" 2013-04-25 01:36:30 +00:00
lwelling 073ef28599 Set echo preferences for new users after their account is created
Default settings for existing users are intended to be low volume and not annoying
New users need more encouragement and incentive to return

Change-Id: Id37ad8289a5c968ae8be6a8c424a19d6cbc7e071
2013-04-24 21:03:25 -04:00
kaldari 9febd46267 New red heart icon for Echo gratitude notifications
Change-Id: If2905985b6e7ceb4acf59313b60e6c92ab7fc599
2013-04-24 16:02:08 -07:00
lwelling 51bd09e3aa Add event logging call to notifications sent by email
Add deliveryMethod to logged data as described in the new schema at http://meta.wikimedia.org/wiki/Schema:Echo

Change-Id: I60705900166b675d7d8e07d11114ae06a2d1a7c3
2013-04-24 17:33:45 -04:00
Translation updater bot 6b859ebb24 Localisation updates from http://translatewiki.net.
Change-Id: I85a012c0d40e2fa296c7bf8827726d1bbb67722f
2013-04-24 20:07:23 +00:00
jenkins-bot bf8f6e9e48 Merge "Modifying Echo defaults per Echo/Feature_requirements" 2013-04-24 18:24:26 +00:00
kaldari 79c1337376 Modifying Echo defaults per Echo/Feature_requirements
Change-Id: I2fd23001a4b54aa19739fd0b5e0c6b3d4c59c2a9
2013-04-24 11:20:26 -07:00