Last modified: 2013-03-13 10:45:51 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 T38902, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36902 - Refactor DifferenceEngine et.al. to make parts reusable
Refactor DifferenceEngine et.al. to make parts reusable
Status: NEW
Product: MediaWiki
Classification: Unclassified
History/Diffs (Other open bugs)
unspecified
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: ---


Attachments

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.


Navigation
Links