On Mon, 2004-02-08 at 15:42 -0700, Brion Vibber wrote:
Special:Import is not yet complete. If someone wants
to have a go,
please feel free. Otherwise I'll try to get to at some point, but can
make no guarantees about when that will be.
I decided that this was a good place to get my feet wet, and did some
work last night. I have the form more or less done; files upload (though
not all error possibilities are checked for); and a first crack at XML
parsing (based entirely on actual Export produced XML, and
SpecialExport). Now comes the more difficult part, actually updating the
database. There are a number of issues:
- do we import revisions?
-- Article is not set up for revisions; you cant tell it what user,
timestamp, etc to use
-- Should Article be expanded, or should I just do SQL from there?
-- What about revision contributors? What if they don't exist in the
-- How about rewriting the contributor line? ie: "OtherWikiUser
(imported by CurrentUser)" - only currentuser is a link. Or putting the
other sites user in the comment field?
-- How about this: put all the imported data in the archive, and dup the
most recent copy as cur. Attributed cur to the logged in user. All the
others to "importer", with the OtherWikiUser, and other time in the
-- if all the archives are imported at the same time (within one
second), how do we know the order?