Page MenuHomePhabricator

[MEX] [BUG] [QC] clear constraint violation indicators and messages if an edit fixes them
Open, Needs TriagePublic

Description

The indicators and messages provided by WikibaseQualityConstraints draw a user's attention to issues that should be fixed. When they make an edit that fixes these issues, it's reasonable to expect that the error should go away. On desktop, this happens as expected. Currently in MEX, the errors persist regardless of whether they are fixed.

Additionally, if a violation is introduced by an edit, the user gets no indication of this until the page is refreshed.

Acceptance Criteria

  • after saving an edit that corrects a violation, that violation is removed.
  • after saving an edit that introduces a violation, an indicator and message about it is added.
  • Test coverage should be implemented.

Related Objects

Event Timeline

Note that WBQC makes two constraint check requests after every edit: one for just the statement that was edited, so that it can quickly show updated results there, and one for the whole entity, so that all statements will have their violations updated in time (e.g. an “entity requires statement” constraint violation on another statement might have been fixed by this edit).

Arian_Bozorg renamed this task from [MEX][QC] clear constraint violation indicators and messages if an edit fixes them to [MEX] [BUG] [QC] clear constraint violation indicators and messages if an edit fixes them.Jan 27 2026, 10:22 AM

Change #1245263 had a related patch set uploaded (by Arthur taylor; author: Arthur taylor):

[mediawiki/extensions/Wikibase@master] Extend indicator icon / popover API to allow content to be cleared

https://gerrit.wikimedia.org/r/1245263

Change #1245264 had a related patch set uploaded (by Arthur taylor; author: Arthur taylor):

[mediawiki/extensions/WikibaseQualityConstraints@master] Remove icons and popover content when violations are resolved

https://gerrit.wikimedia.org/r/1245264

Change #1245263 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Extend indicator icon / popover API to allow content to be cleared

https://gerrit.wikimedia.org/r/1245263

Change #1245264 merged by jenkins-bot:

[mediawiki/extensions/WikibaseQualityConstraints@master] Remove icons and popover content when violations are resolved

https://gerrit.wikimedia.org/r/1245264