Page MenuHomePhabricator

Display a diff between two revisions of a Wikidata item
Closed, ResolvedPublic

Description

When two revisions of a Wikidata item are selected, a diff should be created and displayed.


Version: unspecified
Severity: normal

Details

Reference
bz37496

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:27 AM
bzimport set Reference to bz37496.

Implementation is in gerrit for review: https://gerrit.wikimedia.org/r/11865

I have implemented this based on the normal wikitext diff, using the same side-by-side layout and recycling the CSS. As a context (instead of the line number), the path to the changed value is shown, using the keys from our internal JSON representation. That sucks, of course.

This implementation doesn't work correctly at the moment, because it depends on some other things to be fixed, most importantly bug 37680, but also bug 37691 and bug 37683.

Anyway, some actual UI design seems in Order here. Some thoughts:

  • side-by-side seems useless.
  • instead, show added, removed and modified properties in a single column
  • for modified properties, show a word-based diff
  • it may be nice to just show the (old) item with highlighted modifications (inline diff)
  • diffs will often be for a single atomic change. It could be useful to make this a special case.

revision headers still need to be fixed

fixed now, though design/UX issues remain.

Added item #37958 for improving the design/UX issues.

Verified in Wikidata demo time for sprint 7