Page MenuHomePhabricator

show constraint violation indicator to non-logged-in users
Closed, ResolvedPublic3 Estimated Story Points

Description

As a non-logged-in editor I want to be made aware of constraints violation on a statement I am looking at in order to see potential mistakes more easily.

Problem:
We are only showing constraint violation indicators to people who are logged in. So editors who are not logged in do not see mistakes that they could potentially fix.

Screenshots/mockups:

image.png (108×467 px, 6 KB)

BDD
GIVEN a statement with a constraint violation
WHEN viewing it without being logged in
THEN the constraint violation indicator is shown

Acceptance criteria:

  • constraint violation indicators are shown regardless of log-in status
  • we have a config option to turn these on/off
  • default for this config is 'on', meaning they are shown to everyone by default

Notes
we add the config check to these three lines https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/WikibaseQualityConstraints/+/52122e9453ca0af5616c6f8d3fbf4064b7a8baf9/src/WikibaseQualityConstraintsHooks.php#143

Event Timeline

Technically, there don’t seem to be any issues with this; you can run mw.loader.using('wikibase.quality.constraints.gadget') in a private window and get constraint check results right now.

We should wrap the current $out->getUser()->isRegistered() condition in WikibaseQualityConstraintsHooks::onBeforePageDisplay() in a check for a new temporary config setting, and change that in production; if everything goes well and nothing explodes from the additional constraint check requests, we can remove the setting again and always add the module regardless of the user being logged in.

karapayneWMDE set the point value for this task to 3.
karapayneWMDE moved this task from Unified DOT Backlog to Sprint-∞ on the Wikidata Dev Team board.

Task breakdown notes:

karapayneWMDE moved this task from Doing to Todo/Backlog on the Wikidata Dev Team (Sprint-∞) board.
karapayneWMDE added a subscriber: hoo.

Change 874417 had a related patch set uploaded (by Guergana Tzatchkova; author: Guergana Tzatchkova):

[mediawiki/extensions/WikibaseQualityConstraints@master] Add config to change value showing contraint violation indicator

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

Change 874417 merged by jenkins-bot:

[mediawiki/extensions/WikibaseQualityConstraints@master] Add config to change value showing constraint violation indicator

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

Arian_Bozorg subscribed.

Thank you \o/

Looking good to me