Last modified: 2014-01-05 03:17:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T25665, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23665 - Add core functionality enabling an extension to add revisions and log entries with any user, any timestamp, etc.
Add core functionality enabling an extension to add revisions and log entries...
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-25 16:10 UTC by tisane2718
Modified: 2014-01-05 03:17 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description tisane2718 2010-05-25 16:10:38 UTC
Create new API extension, and enabling core functionality, to allow insertion of revisions with any user, any timestamp, any parent_id, etc. This will allow, for instance, edits on one wiki to be precisely mirrored on another via API, or article histories on two wikis to merged by API. There will need to be special access controls on this functionality, due to the potential to spoof edits by other users.
Comment 1 Max Semenik 2010-05-25 16:12:13 UTC
This will break database integrity by inserting conflicting keys, etc.
Comment 2 Roan Kattouw 2010-05-28 19:53:58 UTC
This is probably better done with a maintenance script anyway.
Comment 3 Nathan Larson 2014-01-03 22:09:42 UTC
See also bug 57490, which might obviate the need for this bugfix (I'll have to take another look at it to see how practicable that might be).

With regard to comment 2, I'm not sure what kind of maintenance script you had in mind; this would need to be executed many times per second, which is unusual for a maintenance script. Also, how would the parameters, etc. work; would it import a file, for instance? It seems like it would be easier to just POST the data into the API or upload into Special:Import or a similar special page.

WikiPage::doEditContent() uses wfTimestampNow(); I would want it to accept an optional $timestamp parameter. Likewise with ApiEditPage() and all the stuff in between (e.g. EditPage::internalAttemptSave()).

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links