Commit graph

5862 commits

Author SHA1 Message Date
Nikerabbit
31069e3989 Merge "Use LogFormatter to format rights log." 2012-11-01 18:51:09 +00:00
Aaron Schulz
f061ce7ffa Fixed nextJobDB.php to handle recent job queue changes.
Change-Id: I98533ed599d27bbfc9043e906a758e3bc8903de0
2012-10-31 15:24:57 -07:00
Reedy
cc18322559 Back out config table and related code
Change-Id: I4fa180d45984a4ec2b2c7b1149015c6dad14c5f0
2012-10-29 15:17:24 +00:00
robin
5c103a3940 Add the page content language to the page information
Change-Id: Id2aa19c66b299e3462cf3bea4020827f9f2ee1ef
2012-10-29 12:03:15 +01:00
Nikerabbit
7b0e9ad4d4 Merge "(bug 31565) Option to use group members on Special:UserRights" 2012-10-29 08:58:36 +00:00
Amir E. Aharoni
5e041dccfd (bug 31565) Option to use group members on Special:UserRights
If a language community wants to show member names rather than
group names, it's possible to use the new optional message
userrights-groupsmember-type.

Change-Id: I1dc3efcb2c8a32a01b33158c9a14c079e42705d7
2012-10-29 09:54:46 +02:00
Marius Hoch
4c56eb3626 (bug 40641) Implement Special:Version/Credits
I've implemented Special:Version/Credits to have a nice list of contributors,
without having to download a file. The page takes it's data from the
CREDITS file and parses it as wiki text.

(As I was on it, I was so bold to add my name to the CREDITS)

Change-Id: Ic956c303d57fdccfd214c2fcb78d04c6bd30449a
2012-10-28 22:32:34 +00:00
Reedy
54357fe871 (bug 41457) PHP Fatal error: Cannot break/continue 2 levels in maintenance/runJobs.php on line 94
Change-Id: Ic53227596a0acdc92bc9925a260b7f029e67da03
2012-10-27 21:34:34 +01:00
Platonides
6882ff0d75 The class is named Revision, no need to shout its name :)
Remove a couple of unused globals.

Change-Id: I750536bc05ed7a5433840b916b17df93d30da5bf
2012-10-26 23:41:24 +02:00
Nikerabbit
b85839a549 Merge "Fix tabs inside/between statements/text" 2012-10-26 18:57:25 +00:00
MaxSem
8db04efa6c Merge "Move cache purging out of doUpdates()" 2012-10-26 16:41:04 +00:00
umherirrender
82375631c2 Fix tabs inside/between statements/text
This tabs are strange and a space there is better

Change-Id: I0885dff575ee2fcd0668d08fef3226e132c5b319
2012-10-26 18:18:59 +02:00
umherirrender
e5f5e95137 Fix indentation whitespace errors
Change-Id: Ie268bee2098c589c050e1b5b0e93fe1b3feca86f
2012-10-26 17:42:13 +02:00
Tychay
8b08a7db91 Merge "Revert "Function for "pretty timestamps" that are human readable and understandable."" 2012-10-25 22:36:32 +00:00
Aaron Schulz
22bdb0833b Merge "Seems we have error conditions where fa_storage_key == ''" 2012-10-25 21:23:10 +00:00
Brion VIBBER
c399e0073c Merge "[JobQueue] Added support for approximate FIFO job queues." 2012-10-25 21:07:07 +00:00
Aaron Schulz
6e04bae0c0 Merge "Add additional job columns to PostgreSQL as well." 2012-10-25 18:25:58 +00:00
Chad Horohoe
ee01bb0d94 Move cache purging out of doUpdates()
It makes a whole lot more sense to run this at the end of the
update process after post update maintenance rather than just
at the end of schema updates.

Run update.php more than once so all the updatelog entries
are populated and you'll see why it makes sense.

Change-Id: Ice42a31dee1e6b41da4aa0a47e8786579382aff1
2012-10-25 14:21:34 -04:00
Aaron Schulz
59da375cd9 [JobQueue] Added support for approximate FIFO job queues.
Change-Id: Icd8c084174e26a2a69f370e7bf6f858eba76e520
2012-10-25 11:19:09 -07:00
Demon
63fe60368c Merge "alter sql.php prompt on line continuation" 2012-10-25 13:35:32 +00:00
Demon
c5462bcde0 Merge "(bug 37020) sql.php with readline eats semicolon" 2012-10-25 13:32:38 +00:00
Reedy
8200b50442 Seems we have error conditions where fa_storage_key == ''
continue!

Change-Id: I28a06bf6a806fd4db44af6822ca3cd93747481fb
2012-10-25 14:27:49 +01:00
Antoine Musso
0e7d61dd9f sql.php in interactive no more exit on DBerror
This patch make it so that after a DBerror a new prompt is shown to the
user. Save us from having to relaunch sql.php.

Change-Id: Id3df3df87f6fe7b2aea31e0526c5ff697bc5832c
2012-10-25 13:14:24 +02:00
Antoine Musso
b1a524fddc alter sql.php prompt on line continuation
As long as a command is not ended with a database delimiter, sql.php
kept appending the line without noticing the users. That is a bit
confusing since you might not even know what you are going to run when
entering the delimiter.

This patch alter the prompt to '    ->' until the command is finished.
That is more in line with how MySQL cli handles it.

Example:
	$ php sql.php
	> SELECT
		-> *
		-> from
		-> job;
	Query OK, 0 row(s) affected
// repeal command:
	> SELECT * from job

Change-Id: Ic18b39d75d4db48d37d485e66f36d691e95934fb
2012-10-25 13:03:59 +02:00
Antoine Musso
c8e136dbbb (bug 37020) sql.php with readline eats semicolon
The database delimitor is now appended to the command before it is saved
in readline history.

Change-Id: Ie6bbac2d74e2e5df3910c5612adbd373a9c4695b
2012-10-25 13:01:28 +02:00
Siebrand
74f037bcd0 Revert "Function for "pretty timestamps" that are human readable and understandable."
This reverts commit b218064865

Appears to have been merged prematurely. More comments were made after merge, there's an i18n technicality that I5840cc2f would address and there appear to be some design issues that have been discussed on wikitech-1 in thread http://lists.wikimedia.org/pipermail/wikitech-l/2012-October/064036.html
2012-10-25 10:22:16 +00:00
Reedy
881c1d30e4 Merge "Function for "pretty timestamps" that are human readable and understandable." 2012-10-25 00:58:19 +00:00
Tim Landscheidt
a4193673b2 Add additional job columns to PostgreSQL as well.
This ports I49824c7fa855fea4ddcac5c9901ece8c2c0101d0 and fixes
bug #41196.

Change-Id: I18e0ac3aee2c2627f89d28d4a34afd90c822af91
2012-10-24 18:56:54 +00:00
Alexandre Emsenhuber
4c69cd3ad6 Use LogFormatter to format rights log.
* Has to keep actual messages for IRC notification
* Catch really old log entries with no parameters and use an
  appropriate message in that case to not always display erroneous
  "X changed group membership for Y from (none) to (none)".

Change-Id: Ie188bc6fcdf672fe31f0f389a158aab6256031fa
2012-10-22 19:28:32 +02:00
Siebrand
ba89454345 Merge "doxygen now recognizes README and .txt files" 2012-10-22 12:04:49 +00:00
Antoine Musso
9362bb6c56 miscellaneous doxygen warnings
* @licence -> @license
* Protects inline HTML by using double quotes, our inline comments uses
  elements such as <h1> or <firstnameLastname@gmail.com>
* Commands in lowercase (@TODO -> @todo, @NOTE -> @note)
* removes @abstract and @static since doxygen detects them from PHP
  code.
* various undocumented function parameters
* typos in parameters declarations

Change-Id: I62ad6fc124c355bf31acc780b9614a59cf79a421
2012-10-22 14:00:08 +02:00
Antoine Musso
fb82f1cf80 doxygen now recognizes README and .txt files
The default doxygen configuration file only accepts source files such
as php or python.  Some of our documentation is in flat files which we
might want to include in our Doxygen inline documentation. The culprit
is that those document files needs to respect Doxygen syntax, i.e. the
text content need to be enclosed in a comment block such as:

 /*!
 \page page_title My Page Title

 My awesome documentation
 */

Doyxgen 1.8 supports markdown syntax, we might want to switch to that
eventually.

Change-Id: I78a0ce36314b2a7b9f89395e3ae3902b17cf5038
2012-10-22 11:58:53 +02:00
Reedy
cdbe6fee1f When deleting old thumbnails, actually increment $i
Change-Id: Ic213fed61959ab4d25bcd891c81df20e39cbc5f5
2012-10-21 15:15:22 +01:00
IAlex
08d9eb261c Merge "Add filearchive.fa_sha1 to PostgreSQL as well." 2012-10-20 14:47:08 +00:00
IAlex
9c6355ccea Merge "Remove a bunch of trailing spaces and unneeded newlines" 2012-10-20 14:40:55 +00:00
umherirrender
e256c69f9a Remove a bunch of trailing spaces and unneeded newlines
Change-Id: If9fb04f64389b9b40c13f3372ad4792c2e14def0
2012-10-20 13:35:38 +02:00
umherirrender
c157f4d424 Remove a bunch of trailing spaces and unneeded newlines
Change-Id: I52ae3c55044bc8c53698e356bad74969406670bf
2012-10-20 13:32:35 +02:00
Tim Landscheidt
b5df3f37d1 Add filearchive.fa_sha1 to PostgreSQL as well.
This fixes bug #41114.

Change-Id: I021070f90d35d99ad55944543e94004f62d5f08c
2012-10-20 03:37:53 +00:00
Alex Monk
a079411cde (bug 40829) Show cascading protection info on action=info
Change-Id: Ibc26bf8ae4e50bb9f158f48747b648df3ecb4b49
2012-10-17 23:50:08 +01:00
TheDJ
4dacfda31a Merge "(bug 40154) On action=info show where this page redirects to and whether it's a content page or not." 2012-10-17 19:37:56 +00:00
Tim Starling
93e7778b13 Merge "[JobQueue] Job queue refactoring and generalizing." 2012-10-15 22:46:54 +00:00
ASchulz
b567f3602e [JobQueue] Job queue refactoring and generalizing.
* Added support for different queue types and methods for storing queues.
* Treat each job type as being on its own queue, at least logically.
* Added $wgJobTypeConf to configure queue types for each job type.
* Improved the job DB table so that duplicate job checks actually work
  and are faster. Also improved the method for popping rows of the table.
* Disabled duplicate job removal for everything except refreshLinks.
  The DELETE statements just add DB overhead and are not useful for cheap
  jobs, especially ones with start/end params (which are unlikely to have
  exact duplicates).

Change-Id: I49824c7fa855fea4ddcac5c9901ece8c2c0101d0
2012-10-16 09:39:58 +11:00
Siebrand Mazeland
ffaf382ffd Remove unused 'qbpageinfo'
Change-Id: I88cf379ef689f598d849545cb9efef2ef1cde54e
2012-10-15 13:49:02 +02:00
daniel
c456c23038 Fix declaration of content_model and content_format fields.
The data type of content model and content format was varbinary originally,
then it got changed to int, then back again to varbinary. The latter change
was done in the updater, but was missing in tables.sql.

Change-Id: I44a92d18ca22126d9678073b272eb6345627a951
2012-10-14 23:23:22 +00:00
umherirrender
fb2c1c645b Add separate fa_sha1 field to filearchive table
This allows sha1 searches with the api in miser mode for deleted files

Added script to populate the rows
Adding new field to selects and handle it in all places, where needed

Using a 10 byte index for the new field per
http://lists.wikimedia.org/pipermail/wikitech-l/2012-September/063429.html

Change-Id: Ie54a513fe361202e63df44be44a0fdd91926c974
2012-10-14 20:58:25 +02:00
Alex Monk
5e1e5df968 (bug 40154) On action=info show where this page redirects to and whether it's a content page or not.
Change-Id: I17ab90af902b3b23d5c9bc23f0c71a18d1006cb8
2012-10-14 17:50:15 +01:00
Daniel Friesen
21b3fde565 Make maintenance/dev/'s .sh files executable.
Change-Id: I46a2611cccf9bd7af20be5fcc497c0dacc13cbb7
2012-10-14 08:50:37 -07:00
madman
cbed68b994 (bug 39688) action=info displays misleading edit history for redlinks
* Will not display edit history and properties for nonexistent pages
* Will not display misleading page information for noncurrent revisions

Change-Id: I23dd6ead555449d0810cbc64d79737654818e3e6
2012-10-14 13:34:23 +02:00
IAlex
49c37868ba Merge "PostDatabaseUpdateMaintenance: childs checks updatelog already" 2012-10-13 10:00:52 +00:00
umherirrender
b887cea9d1 PostDatabaseUpdateMaintenance: childs checks updatelog already
The parent class LoggedUpdateMaintenance of each update script is
checking the updatelog self.

Checking in update.php prevents the script to be run, when using --force
on update.php and updater is not outputting a skipped message

Change-Id: I6cdad807ee4e49983cedef168d4e697a5bd8b7e7
2012-10-12 20:52:29 +02:00