Last modified: 2013-03-13 10:45:51 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 36902 - Refactor DifferenceEngine to make parts reusable
Refactor DifferenceEngine to make parts reusable
Status: NEW
Product: MediaWiki
Classification: Unclassified
History/Diffs (Other open bugs)
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
Blocks: code_quality
  Show dependency treegraph
Reported: 2012-05-16 10:15 UTC by Daniel Kinzler
Modified: 2013-03-13 10:45 UTC (History)
1 user (show)

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


Description Daniel Kinzler 2012-05-16 10:15:04 UTC
DifferenceEnginge and the accompanying classes (DairikiDiff, etc) should be refactored so we get a system of pluggable components. The following things should be considered:

* We want an abstract marker interface for all kinds of diffs.
* There should be an interface for sequential, text-based diffs.
* Formatters for generating html, unified, and other diff output should be based on the interface for sequential diffs.
* Other types of diffs need to provide their own "private" formatters.
* The (misnamed) DifferenceEngine class is really a diff view class that takes care of loading all the information required to build the diff.

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