Commit graph

66020 commits

Author SHA1 Message Date
Aaron Schulz
968e28f894 Add process cache support to WANObjectCache
* Make getWithSetCallback() accept a TTL field for this
* Make ChangeTag callers use this flag to avoid hundreds of
  duplicate queries at Special:Tags

Change-Id: Ic1ed28294f5d557e02f39a7f20d36766244b9ded
2015-10-10 06:14:50 +00:00
jenkins-bot
9e56569f9f Merge "Minor getWithSetCallback() example formatting tweaks" 2015-10-10 04:55:52 +00:00
jenkins-bot
407257f4e5 Merge "Fix broken min() call in OutputPage" 2015-10-10 04:06:45 +00:00
Aaron Schulz
25c23331e3 Fix broken min() call in OutputPage
Change-Id: Ia2d895371f6f114c1cb821dd1d2aaaef7935033f
2015-10-10 03:56:12 +00:00
Aaron Schulz
eae5f07428 Fix more LBFactory __construct() IDEA errors
Change-Id: Iec0d108d6ad405f77710e4ce111d0adefea3832b
2015-10-10 02:58:35 +00:00
jenkins-bot
ceca18eb81 Merge "Add ObjectCache::getMainClusterInstance()" 2015-10-10 02:43:43 +00:00
jenkins-bot
acb360ad63 Merge "Set correct parentid on import" 2015-10-10 02:21:48 +00:00
Ori Livneh
b739bf5a74 Add ObjectCache::getMainClusterInstance()
Provide a complement to ObjectCache::getMainWANInstance() and
ObjectCache::getMainStashInstance() which gets the default ObjectCache
instance.

Change-Id: Ib16ee40908b159e60be41a308db49a9291b5de0d
2015-10-10 00:48:33 +00:00
Aaron Schulz
17e8bd3f32 Better explain WANObjectCache::TTL_NONE constant
Change-Id: I2ce363c957f35e75a17f05b2160979a6fa4aa642
2015-10-10 00:12:37 +00:00
Brad Jorsch
673c07656e Fix "installer started" detection
NoLocalSettings.php tries to detect whether the installer has been
started or not. But this detection has been broken since I4cf237d when a
change was made to stop setting the session name when NO_SESSION is
defined, causing NoLocalSettings.php to be looking at a different
session-cookie than is actually being used by the installer.

The complete fix is twofold:
* Have WebInstaller::startSession() call session_name()
* Have NoLocalSettings.php not call session_name() when PHP's
  session.auto_start configuration setting is set.

Change-Id: I618d11df902b5d1f70e175bc94137621e9195c2f
2015-10-09 17:34:48 -04:00
Translation updater bot
021ce58405 Localisation updates from https://translatewiki.net.
Change-Id: I630ffad122995402233190be172a5f250c4f24d2
2015-10-09 22:11:52 +02:00
jenkins-bot
e9c8969a7a Merge "mediawiki.jqueryMsg: Strip leading colon in wikilinks" 2015-10-09 15:43:59 +00:00
umherirrender
54e0ef00dd Set correct parentid on import
When importing over an existing page the parentid is set to the latest
rev id of the page, which makes the size diff in history unusable.

The import constructs the Revision object without a parentid and than
Revision::getPreviousRevisionId is using the page_latest field to
propagate the missing parentid.
Avoid this bad propagate by select the previous revision id depending on
timestamp before construct of the Revision object.

Bug: T114806
Change-Id: Iee44d5a74de459f733ea62373cdbe9911e77083f
2015-10-09 16:12:21 +02:00
Bartosz Dziewoński
3cfcce3e2b mediawiki.jqueryMsg: Strip leading colon in wikilinks
Strip leading ':', which is used to suppress special behavior in
wikitext links, e.g. [[:Category:Foo]] or [[:File:Foo.jpg]].

Also added tests for empty wikilinks.

Bug: T114130
Change-Id: Idc78310d6106c2badc0fde933f901d672556ab26
2015-10-09 12:54:18 +02:00
jenkins-bot
02c959b003 Merge "LocalisationCache::recache(): Use array_fill_keys()" 2015-10-09 06:17:07 +00:00
Aaron Schulz
3c021116e4 Minor getWithSetCallback() example formatting tweaks
Change-Id: I6fc7164770fbbd32374b01d1aa27dbaa9263c940
2015-10-08 15:49:57 -07:00
Kevin Israel
fd7a480402 LocalisationCache::recache(): Use array_fill_keys()
LocalisationCache was added in 1.16, so in order to retain PHP 5.1
compatibility, array_fill_keys() was avoided. In 1.17, support for
PHP 5.1 was dropped, so we can use that function now.

Change-Id: I435705639f1a470324a4ba46153351aadc0d40e2
2015-10-08 16:29:16 -04:00
Translation updater bot
8ef752dfdd Localisation updates from https://translatewiki.net.
Change-Id: I02f0defd61aa359a17b6d5cfc75c9e6db0149124
2015-10-08 22:07:30 +02:00
jenkins-bot
3442989e7f Merge "Implement ApiPageSet::setRedirectMergePolicy()" 2015-10-08 18:49:36 +00:00
Erik Bernhardson
1ded833de1 Implement ApiPageSet::setRedirectMergePolicy()
This allows generator implementations to define how generator data
about a redirect gets merged into the redirect destination.  This
does not change any defaults, only modules that explicitly set a
merge policy will have a change in their results.

This functionality is initially used for the search api modules to
retain search positions within the final result set.

Bug: T92796
Change-Id: If2f49e0fc3176288c95e870240754ee320a6bf91
2015-10-08 11:36:02 -07:00
jenkins-bot
c8e2b346f7 Merge "Consistent TODO spelling in JavaScript" 2015-10-08 18:10:35 +00:00
jenkins-bot
54a50028ec Merge "Change "Subject/headline" to "Subject"" 2015-10-08 18:00:43 +00:00
jenkins-bot
a745a4dd90 Merge "Fix namespaced class references for Doxygen" 2015-10-08 17:58:19 +00:00
jenkins-bot
b84bdcf810 Merge "mediawiki.Upload.BookletLayout: Add setFile method" 2015-10-08 17:25:32 +00:00
jenkins-bot
c86d36805e Merge "Fix French special pages titles inconsistencies" 2015-10-08 17:24:19 +00:00
jenkins-bot
ecaa5e87af Merge "Fixed Special:ChangeEmail spelling in French" 2015-10-08 17:14:13 +00:00
Bryan Davis
b264cee6d4 Fix namespaced class references for Doxygen
Doxygen doesn't quite grok PHP's use of the reverse solidus (backslash)
character as a namespace separator. The C++ based parser it uses needs
them to be escaped in comments just as if they were being used in
a literal string context in PHP.

Change-Id: I9aff9dd0fb74a95039da1091c2f247cf71fd085a
2015-10-08 11:10:33 -06:00
Ed Sanders
9eb2dd5c28 mediawiki.Upload.BookletLayout: Add setFile method
Change-Id: I30ec98be0e28e65d84b57cb78c9a89dd82d19c30
2015-10-08 17:57:47 +01:00
jenkins-bot
b2222eacf7 Merge "mw.ForeignStructuredUpload.BookletLayout: Reset forms after use" 2015-10-08 16:27:06 +00:00
jenkins-bot
77ae6d0731 Merge "mw.widgets.DateInputWidget: Close calendar after a date is picked" 2015-10-08 16:01:37 +00:00
jenkins-bot
dad851600f Merge "Add get() flags support to BagOStuff::getWithSetCallback()" 2015-10-08 15:53:17 +00:00
jenkins-bot
52f3722727 Merge "Update getWithSetCallback() callers to the newer signature" 2015-10-08 15:53:13 +00:00
jenkins-bot
b2b97c9f19 Merge "Update getWithSetCallback() examples to use the new signature" 2015-10-08 15:53:07 +00:00
jenkins-bot
15ae9066c5 Merge "Handle edge case in WikiPage::lock()" 2015-10-08 15:51:12 +00:00
Prateek Saxena
a2bc0241d2 mw.widgets.DateInputWidget: Close calendar after a date is picked
It guess it makes sense to do this. I can't think on any use case in
which the user would want to keep clicking on random dates on an open
calendar. It could be helpful if it were a filter for some
visualization, but in that case we should probably have a config to
keep the calendar always open.

Bug: T114942
Change-Id: I1c81464a1835eb488a75920334a3cf3b92ef34fc
2015-10-08 21:14:36 +05:30
jenkins-bot
bfc448667b Merge "Effectively remove EDIT_DEFER_UPDATES flag" 2015-10-08 15:43:19 +00:00
jenkins-bot
b7d8625131 Merge "Various WikiPage code cleanups" 2015-10-08 15:43:15 +00:00
jenkins-bot
c5b55790a0 Merge "Move SquidPurgeClient under /clientpool" 2015-10-08 15:43:12 +00:00
jenkins-bot
d8816a0801 Merge "Convert updateChunkStatus to using a flush commit()" 2015-10-08 15:33:29 +00:00
jenkins-bot
7a347be4e3 Merge "Made LinksUpdate on edit use the job queue" 2015-10-08 15:31:49 +00:00
jenkins-bot
c1f49bc7ce Merge "Show password-required message only if $wgRequirePasswordforEmailChange = true" 2015-10-08 15:18:17 +00:00
Ori Livneh
7628a11d8e Remove .php5 entrypoints and $wgScriptExtension
* The '.php5' entrypoints were deprecated in I68b1ae842, $wgScriptExtension
  in I3690f78bc.
* Drop the associated ResourceLoader configuration variable, too. `mwgrep`
  shows no usage in the MediaWiki namespace.
* Keep the scriptExtension configuration parameter for FileRepo for people who
  would like to interoperate with older MediaWiki installations that still use
  '.php5'.

Change-Id: I17c8a15484b7e82cd5970d34e688109a2aae3840
2015-10-08 15:45:31 +01:00
jenkins-bot
a4791b8c79 Merge "Allow change tags to be added via API action=delete" 2015-10-08 14:08:06 +00:00
Prateek Saxena
b1da5ab514 mw.ForeignStructuredUpload.BookletLayout: Reset forms after use
Bug: T114936
Bug: T114947
Change-Id: I96a6440c32316a077069bb744fff8564e91a04b2
2015-10-08 19:31:47 +05:30
jenkins-bot
ae18c50c4e Merge "Provide a default "max lag" value for LoadBalancer" 2015-10-08 08:36:33 +00:00
Aaron Schulz
dbf7e393fb Provide a default "max lag" value for LoadBalancer
* No MediaWiki site can tolerate unbounded slave lag
  without editing and account creation and such being
  broken and unusable
* Also fix a few trivial __construct() IDEA errors

Change-Id: I95b8b73be2df3b5a87e7adbf53988cfbeb85c260
2015-10-08 08:17:09 +00:00
Aaron Schulz
1846e2dc15 Made LinksUpdate on edit use the job queue
* LinksUpdate is now an EnqueueableDataUpdate
  and can yeild a prioritzed refreshLinks job.
* DeferredUpdates::runUpdates() now takes an enqueue
  flag to try to use jobs. This is set in restInPeace().
  Updates that change many links will be less likely to
  increase lag, as the runners are more strict about that.
* Also made the LinksDeletionUpdate job enqueue happen
  post-send on page deletion for consistency

Bug: T95501
Change-Id: I8863caef9c8f03234699d33e4d47d2310a0c8446
2015-10-08 01:02:03 -07:00
jenkins-bot
97e89b43f5 Merge "Make ForeignDBRepo::getDBFactory() actually work on 5.3" 2015-10-08 07:56:08 +00:00
jenkins-bot
f056a3b4a2 Merge "Make DeferredUpdates::doUpdates use DataUpdate::runUpdates" 2015-10-08 07:47:02 +00:00
Aaron Schulz
44958ebd11 Make ForeignDBRepo::getDBFactory() actually work on 5.3
Change-Id: Id790ccb1728a6a163f2e2149dd56ec1b14fc33af
2015-10-08 07:42:38 +00:00