Page MenuHomePhabricator

Track how often Wikibase patched edit conflicts for Data Bridge edits
Open, Needs TriagePublic

Description

As the Data Bridge development team, we want to know how often Wikibase resolved edit conflicts for Data Bridge edits, in order to decide if we need to change the way edit conflicts are handled.

Problem:
Currently, Wikibase detects almost no edit conflicts for Data Bridge edits. If two people open the Bridge for the same value at the same time, and try to make different changes to the value, the latest edit will “win” and overwrite the earlier edit, without an edit conflict being reported. (Alternatively, when both users used the “update” edit decision, the item can end up with two preferred statements.) We would like to know how often this happens, so we can decide if WIkibase’s conflict detection and resolution should be adjusted.

Example:
Wikibase indicates that it patched an edit into the latest revision in the API response:

Screenshot from 2020-05-11 19-44-09.png (219×547 px, 29 KB)

Screenshots/mockups:

BDD
GIVEN
AND
WHEN
AND
THEN
AND

Acceptance criteria:

  • When the API response indicates that Wikibase patched an edit conflict, Data Bridge tracks this event.
  • A Grafana dashboard shows how often this case happens.

Open questions: