Last modified: 2009-12-30 05:20:38 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 T13865, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 11865 - Add support for machine-readable diffs
Add support for machine-readable diffs
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-11-03 21:45 UTC by Kimon Berlin (gribeco)
Modified: 2009-12-30 05:20 UTC (History)
1 user (show)

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


Attachments

Description Kimon Berlin (gribeco) 2007-11-03 21:45:44 UTC
The mediawiki API does not support machine-readable diffs yet. This would allow a bot to parse changes for vandalism, spam, or other particular content.

The current human-readable diff has lots of html cruft that has to be stripped to get to the real data, as well as unnecessary data for  a bot (headers, menus, the entire text following the diff...)
Comment 1 Platonides 2007-11-03 21:56:19 UTC
Stripping all html you get a machine diff.
Adding &action=render you omit headers and menus
Adding &diffonly=1 you get the diff without the rendered page.

So with action=render&diffonly=1 you only get the diff table.
Comment 2 Kimon Berlin (gribeco) 2007-11-03 22:27:02 UTC
Good enough. Thanks!

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


Navigation
Links