https://bugzilla.wikimedia.org/show_bug.cgi?id=36902

       Web browser: ---
             Bug #: 36902
           Summary: Refactor DifferenceEnginge et.al. to make parts
                    reusable
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: History/Diffs
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: daniel.kinz...@wikimedia.de
    Classification: Unclassified
   Mobile Platform: ---


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.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to