Page MenuHomePhabricator

Research Mediawiki code and design a proposal for building the interface that shows diff between two revisions.
Open, Needs TriagePublic



WikiLambdaDiff currently calculates Diffs returning the following format:

	"root.Z2K3.Z12K1.1.Z11K2": {
		"type": "change",
		"oldvalue": "Some string",
		"newvalue": "Some monolingual text"

Where, for each atomic change, we are extracting:

  • The path: root.Z2K3.Z12K1.1.Z11K2
  • The operation: change | add | remove
  • The old and/or new values

When using the history page to compare two revisions, these atomic changes must be translated into an and accessible interface that users can easily read and understand.

Some resources of interest:

Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)

This task requires:

  • Research and understand Mediawiki architecture and standard practices reg. generating the diff visual interface
  • Consider all possible options (e.g. static html built from php, or vue component that receives Diff scaffolding and creates a more dynamic interface?)
  • Design and document a proposal

Completion checklist