Page MenuHomePhabricator

Check constraints of newly created Forms and Senses on the Lexeme entity page
Open, Needs TriagePublic

Description

As an editor I want to see constraints violations on Form and Sense statements in order to see mistakes in the data and fix them.

Problem
Even after T195828/T195829 statements on newly (via AJAX) created Forms and Senses are not checked for constraints violations. Only after the Lexeme page was reloaded this is happening as expected.

BDD

GIVEN I am on a Lexeme page
AND   I just created a new Form or Sense
WHEN  I add a statement to that Form or Sense
AND   that statement violates a constraint
THEN  the violation should be checked and indicated via the little constraint violation icon

Technical Notes

  • This requires WikibaseQualityConstraints to be aware of multiple entities on the page, and that these can be dynamically created after the page is loaded ("wikibase.entityPage.entityLoaded")