Commit graph

22 commits

Author SHA1 Message Date
Alexandre Emsenhuber
e6bba17c9f Converted ImportStreamSource functions to return a Status object rather than ImportStreamSource-or-WikiError
This is a breaking change since the ImportStreamSource object is in the value member of the Status object; I will fix the extensions in my next commit
2010-12-05 14:22:49 +00:00
Siebrand Mazeland
eb860c8689 Remove comment related to no longer supported PHP versions. 2010-10-02 22:41:44 +00:00
Platonides
6e772b1aee Remove old var_dump 2010-08-27 17:55:20 +00:00
Alexandre Emsenhuber
5be509b0c1 * Standardised file description headers
* Added some descriptions
* Added @file where needed
2010-08-08 14:23:14 +00:00
Andrew Garrett
c9ebbcd09b Rewrite of XML Dump Processing:
* Full rewrite of the WikiImporter class to a new class, XMLDumpImporter, which uses XMLReader instead of the deprecated PHP SAX interface.
* Fixes for the following bugs:
** XML Dump Processor chokes on unrecognised tags.
** Special:Import does not allow you to import a dump including only log entries.
* Added hooks to allow extensions to handle tags in any part of the XML document.
* Fully source-compatible with the previous interface.
2010-05-12 13:28:13 +00:00
Alexandre Emsenhuber
c3ec19debc Replaced all @fixme with "@todo Fixme" since doxygen doesn't have a @fixme command 2009-12-15 21:26:58 +00:00
OverlordQ
a989843cd0 Code cleanup, covert leading spaces into tabs per coding style 2009-11-14 21:27:13 +00:00
Jure Kajzer
785ad24aa7 Changed sequence names to a standard <table>_<field>_seq form.
Updated all nextSequenceValue calls with new sequence names.
OverlordQ stated he'll handle changes to Postgres scripts.
Need someone to change DB2 scripts.
2009-10-28 16:17:16 +00:00
Aaron Schulz
0cb40e8a39 Fixed total import breakage from r53271 2009-10-14 01:24:24 +00:00
Alexandre Emsenhuber
b4b89afea3 fix some doxygen warnings 2009-10-04 21:21:30 +00:00
Tim Starling
4b66381cbf * Mostly reverted r41081 and related. Although the motivation (to save a query) is noble, it's a complex special case relying on subtle inter-module effects, making the code quite unclear and the performance advantage hard to reproduce in new code.
* r41081 was causing the job queue to be flooded with tiny htmlCacheUpdate jobs which were less than the batch size and so, according to the original logic, should have been done immediately. This was causing template updates to be delayed even when the template has few backlinks. This is fixed.
* Introduced a shared cache called BacklinkCache with the main purpose of sharing data from these backlink queries, thus recovering the performance of r41081.
* Refactored backlink partitioning code, which in r40741 was copied from HTMLCacheUpdate to LinksUpdate with a bug intact. The bug caused every htmlCacheUpdate or refreshLinks2 job to be split into at least two pieces even when number of rows is less than the batch size.
* Fixed a bug from r40741 causing refreshLinks2 jobs with end=false to be ignored.
* Made SquidUpdate::newFromTitles() accept a TitleArray
2009-02-16 14:26:34 +00:00
Andrew Garrett
5b29264951 Add 'include pages linked to from these pages' to Special:Export and the corresponding transwiki interface. 2009-02-06 22:44:28 +00:00
Chad Horohoe
ff3d15d134 (bug 15283) Interwiki imports should fetch included templates 2009-02-06 00:02:44 +00:00
Brion Vibber
3b571e768c Attempting to import a title that came out as an interwiki would sort of half-work somewhere then explode when trying to save the null revision with the import info:
Fatal error:  Call to a member function insertOn() on a non-object in /Library/WebServer/Documents/trunk/includes/specials/SpecialImport.php on line 305

Now such titles are skipped. You can probably force import of the page by forcing the target namespace...

Better long-term solution might include title renormalization, adapation of remote namespace names (eg Wikipedia -> Project), etc.
2008-12-10 22:41:13 +00:00
Ariel Glenn
6584a7bb0d handle xmlns for imports (bug #4520) 2008-12-05 02:16:11 +00:00
Brion Vibber
2d5024f4d7 * Add guard exception in OutputPage::parse() for failure case where $wgTitle is null; that causes a fatal error which doesn't show a backtrace if we don't catch it here.
* Temporarily set $wgTitle while doing article creation/edit updates during XML import. A null $wgTitle as in importDump.php caused a fatal error when special pages were transcluded if they did any parsing via OutputPage::parse()
2008-11-24 01:58:15 +00:00
Aaron Schulz
ee07baa6c3 Don't use vague boolean 2008-10-13 06:02:32 +00:00
Aaron Schulz
27980cd92b * Avoid doing templatelinks query (which can get huge) twice by adding cachupdate jobs using the same query as refreshlinks jobs do
* Don't trigger recursive jobs for nulls edits
* Some whitespace tweaks
2008-09-20 22:48:55 +00:00
Aaron Schulz
48147c381f improve log dupe check 2008-09-18 21:12:29 +00:00
Aaron Schulz
6e1c270ac8 Comment out log_user_text stuff for now 2008-09-18 20:56:49 +00:00
Aaron Schulz
46ff00f486 * Add support for log importing
* Improve accuracy of revision duplicate check
* Some minor cleanup and re-organizing
2008-09-18 20:52:34 +00:00
Aaron Schulz
5b2f7a71f6 * Move Import stuff to it's own file like Export
* Force logging index
* Some code style tweaks
* Set visibility in some places
2008-09-18 16:41:43 +00:00