Commit graph

25757 commits

Author SHA1 Message Date
Aaron Schulz
5f6b22de68 Merge "exclude immovable namespaces from the namespace selector on Special:MovePage" 2012-05-18 05:14:19 +00:00
Tim Starling
78d0b3cfa8 Merge "Remove extra unneeded whitespace" 2012-05-18 04:57:44 +00:00
Tim Starling
8fffd51059 Merge "[FileRepo] Use faster doQuickOperations() function for thumbnails ops." 2012-05-18 04:49:44 +00:00
Aaron
24cad34372 [FileBackend] Moved closeResources() call up to parent class function.
Change-Id: I903b40c17e8f757bc3642e24552ddd518c0ef39d
2012-05-17 17:21:39 -07:00
Reedy
d34e01c12d Merge "[FileBackend] Fixed parallelize check in doQuickOperationsInternal()." 2012-05-17 23:48:58 +00:00
Aaron
0624af8f2e [FileBackend] Fixed parallelize check in doQuickOperationsInternal().
Change-Id: Ia552a5094e61f418bc3fa8958f1a4869018be536
2012-05-17 16:17:01 -07:00
Aaron
bbb1131501 [FileBackend] Added profiling to doQuickOperationsInternal().
Change-Id: I98ce4bdfb61bf55b5306dabf0f20427c26319c3c
2012-05-17 14:18:45 -07:00
Aaron
159cc27fde [FileBackend] A few code cleanups and some error message improvements.
Change-Id: I75f066104b98638ca956042c4e877c0f6327509c
2012-05-17 11:34:15 -07:00
Aaron
930c9f8060 [FileRepo] Use faster doQuickOperations() function for thumbnails ops.
Change-Id: I8139b7f6f8533bb0dbeddba12750ab9342b2dd82
2012-05-17 09:55:02 -07:00
Tim Starling
4024de4bd8 Merge "[FileBackend] Improved connection error handling and logging a bit for Swift." 2012-05-17 07:52:06 +00:00
Tim Starling
f03819f8eb Merge "[FileBackend] Added doQuickOperations() function for things like purging thumbnails." 2012-05-17 07:42:07 +00:00
Tim Starling
ea973a8a00 Merge "[FileBackend] Added CDN support to Swift for third-party sites." 2012-05-17 07:16:09 +00:00
Tim Starling
ad8b234b1b Merge "[FileBackend] Made it easy to use registed file backend config in multi-write backends." 2012-05-17 07:08:51 +00:00
Tim Starling
dbb2b3e664 Merge "[FileBackend] Syncing from journal support." 2012-05-17 07:03:34 +00:00
Liangent
7443931d5c Tweak includes/zhtable/Makefile.py
* Make it executable and use a more generic shebang line.
* Write ZhConversion.php to its own location directly, so it can be more
  convenient to do git checkout -b; edits; ./Makefile.py; git diff; to
  confirm changes made.
* Cosmetic text changes.

Change-Id: Ia3556e3b2cd5ee4eeaa67c4e535141576f13dc16
2012-05-17 07:10:59 +02:00
Catrope
92ee2e4964 Merge "Introduced the concept of raw ResourceLoader modules" 2012-05-17 03:11:04 +00:00
Aaron Schulz
1abcd5e30e [FileBackend] Improved connection error handling and logging a bit for Swift.
Change-Id: I9a128bc5027cba85b1cf4992434d697215b3277f
2012-05-16 18:51:38 -07:00
Reedy
5b4e4a06c7 Merge "add since tags" 2012-05-16 23:48:49 +00:00
Aaron
4b0a61227f [Upload] Added various profiling calls to upload code.
Change-Id: Ib13be24393eee05e3af4a942a1c8cdcf590b0da9
2012-05-16 16:44:48 -07:00
Aaron Schulz
edf417c8e1 Merge "prop=revisions: join user table to get user name" 2012-05-16 22:20:49 +00:00
Aaron Schulz
6e96a6e8e6 Merge "Add DebugInfos to api result" 2012-05-16 22:17:17 +00:00
Reedy
50661be3dc Merge "Renamed new BagOStuff getBatch() function to getMulti() for consistency." 2012-05-16 20:17:34 +00:00
umherirrender
7b8e963c88 empty string test for old page_restricions entries
some old page_restricions entries are move=:edit=,
which result in any empty string as level in the JS var
wgRestrictionEdit

Checking wgRestrictionEdit.length is than not possible

Change-Id: I250b4f9bda60361d4cd8c3139b17b299fec0a718
2012-05-16 21:14:40 +02:00
Aaron
86e2372772 Fixed call to setArticleBodyOnly() on wrong object type.
Change-Id: I492bbdb41aa849a86b162c7cc659dde391874454
2012-05-16 11:15:00 -07:00
Aaron
957f09b8a4 [FileBackend] Added doQuickOperations() function for things like purging thumbnails.
* doQuickOperations() lets us do things like purge thumbnails as fast as possible.
  Stat calls, SHA1 checks, and RTTs in general are avoided. It also avoids the
  slowness of lazy population of thumbnail SHA1s in Swift (for those made by rewrite.py).
* Removed supportedOperations() to avoid the extra complexity.
* Made a few variable type and exception documentation cleanups.
* Cleaned up unit test file removal a bit and made some functions private.

Change-Id: I6922368c6af7752a6927d96402519132203108a1
2012-05-16 10:30:34 -07:00
jeroendedauw
6e9ca6e285 add since tags
Change-Id: I4601600f3d0de79c34f5a1a4074384b27f57b005
2012-05-16 18:27:17 +02:00
umherirrender
a5e50e8b2f prop=revisions: join user table to get user name
this avoid a lazy load of the user name for each row

Change-Id: I5d8983476e03cc2f6dad074577402f5255080838
2012-05-16 16:38:40 +02:00
Reedy
aab0f8bc6f Merge "Add includes/zhtable/.gitignore to avoid data files to be committed." 2012-05-16 02:10:29 +00:00
Reedy
8f7fb6cffa Merge "[FileBackend] Avoid infinite loops when populating missing metadata in Swift." 2012-05-16 01:51:34 +00:00
Max Semenik
cd7923ac16 Introduced the concept of raw ResourceLoader modules
This is needed for mobile scripts that are supposed to work on dumb
devices and as such can't rely on client-side RL, but still can take
advantage of server-side minification and concatenation.

Patchset 2: Allow loading raw modules with &raw=true appended to URL.

Change-Id: I9410ffbf6633075e07bd06b10a98a4d12d9b6106
2012-05-16 01:03:12 +04:00
Aaron
634c3be2bb [FileBackend] Avoid infinite loops when populating missing metadata in Swift.
Change-Id: Ief13048256ee11caf3494d934eb5267f5eb71e8b
2012-05-15 13:05:46 -07:00
Reedy
df7b1cc716 Merge "[IP] Added an IP::prettifyIP() function for displaying IPs." 2012-05-15 19:10:51 +00:00
Aaron Schulz
6117b89f11 Merge "Various fixes to Special:Mostcategories." 2012-05-15 09:16:59 +00:00
Aaron Schulz
6a460ed446 Renamed new BagOStuff getBatch() function to getMulti() for consistency.
Change-Id: Icfe673919f65192565aa114c165c90d97d33785a
2012-05-15 01:48:22 -07:00
Aaron Schulz
e0f61b56b8 Merge "Don't log HttpError" 2012-05-15 08:45:04 +00:00
Aaron Schulz
cb559873da Merge "Minor PECL client fixes" 2012-05-15 08:38:54 +00:00
Tim Starling
e2aa8b4978 Don't log HttpError
Fix for r97314: don't log HttpError exceptions to the exception log channel. Do
this by overriding MWException::report() rather than
MWException::reportHTML(), same as every other child class in
Exception.php.

Change-Id: I3fb2b0ca9b0e7c67c210078d1fd90e1430be39df
2012-05-15 15:04:40 +10:00
Tim Starling
d3fd5db207 Minor PECL client fixes
* Fixed the check for igbinary presence. It's not enough for the
  extension to be loaded, the memcached extension also needs to be
  compiled with --enable-memcached-igbinary.
* When delete() is attempted on a key that doesn't exist, return true,
  as in the other BagOStuff implementations.

Change-Id: I298952f4a9925d860fa5673f632d073b1f20aa47
2012-05-15 14:13:58 +10:00
Tim Starling
cf11d9d95b Merge "Reduced contention slam potential in User::invalidateCache()." 2012-05-15 01:37:03 +00:00
Aaron
059823dae6 [FileBackend] Removed likely surperflous memcached retry code.
Change-Id: I934cd658d14c051f99f72d7e37e12f8646e59458
2012-05-14 18:26:56 -07:00
Aaron Schulz
a0aa7557fe Merge "Add/update function level parameter documentation" 2012-05-15 01:09:37 +00:00
Aaron Schulz
ba7a5f70f4 Merge "Implemented a wrapper for the memcached PECL client" 2012-05-15 01:07:05 +00:00
Tim Starling
3c62077fe2 Implemented a wrapper for the memcached PECL client
* Introduced a common base class for the two memcached clients, called
  MemcachedBagOStuff.
* Moved the expiry time normalisation from MemcachedClient.php to
  MemcachedBagOStuff since libmemcached needs the same workaround.

Change-Id: I507d4ec5a7fd863ae64a94f2c453981f9f03746c
2012-05-15 10:19:41 +10:00
Reedy
2df7fae395 Add/update function level parameter documentation
Change-Id: I148b84e3b81c29c63585f3bf524fc445fd7683a7
2012-05-15 00:44:25 +01:00
Reedy
2a1fa50eae Merge "Added missing GPLv2 headers in some places." 2012-05-14 23:38:10 +00:00
Aaron
908b4d4340 [FileBackend] Added CDN support to Swift for third-party sites.
Change-Id: I220ab8cf8fd97d3a080b8dcc8f010d97fcc09671
2012-05-14 16:10:11 -07:00
Aaron Schulz
348767cae2 Merge "Adding NamespaceIsMovable hook to isMovable in MWNamespace, much like done in Title::isMovable." 2012-05-14 22:23:46 +00:00
Aaron Schulz
060ba3cb68 Merge "Generalizing LinksUpdate to allow extensions to add arbitrary update handlers." 2012-05-14 22:20:04 +00:00
Aaron Schulz
d1f8301e62 Merge "GROUP BY and ORDER BY supports arrays in Database class" 2012-05-14 22:17:01 +00:00
Alexandre Emsenhuber
15e9fcca01 Added missing GPLv2 headers in some places.
Also made file/class documentation more consistent.

Change-Id: Iaebd4e253ff3b35b568e9b394231a5691445ac95
2012-05-14 19:59:58 +02:00