Lucas_Werkmeister_WMDE created this task.
Lucas_Werkmeister_WMDE added a project: Wikidata.
Herald added a subscriber: Aklapper.

TASK DESCRIPTION

It would be useful to have a client-side hook that fires whenever a statement is edited. In the WikibaseQualityConstraints extension, we would use this to re-check constraints on a statement after it has been edited, but it would probably also be useful to other user scripts and gadgets.

I propose the name wikibase.statement.edit (.add and .remove could be added later), and the arguments entityId, statementId, oldValue, newValue.

For the time being, the hook would be considered just as unstable as the rest of the Wikibase _javascript_ code (one of the Unstable Interfaces not covered by the Stable Interface Policy).

(Implementation memo: mw.hook( 'wikibase.statement.edit' ).fire( … ) in ToolbarViewController.stopEditing, in the _model.save callback.)


TASK DETAIL
https://phabricator.wikimedia.org/T167870

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Jonas, Lucas_Werkmeister_WMDE, Aklapper, GoranSMilovanovic, QZanden, Izno, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to