Page MenuHomePhabricator

Auto-add mandatory qualifiers on Wikidata web interface
Open, Needs TriagePublic

Description

As an ... I want to ... in order to ...

Problem: It takes a long time to determine which qualifiers, if any, should be used for certain properties. Users hardly ever load the corresponding property page to see if there are some qualifiers they should define for a certain statement. Sometimes they add the corresponding qualifiers later, once they see they have caused a violation, and sometimes they leave the statement as is.

Example:

Screenshots/mockups:

BDD 1
GIVEN I am on the page of a Wikidata entity
AND I have clicked "+ add statement"
WHEN I write the name of a property PX with a valid "mandatory qualifier" constraint (Q21510856)
THEN a qualifier field for each mandatory qualifer for PX appears with a blank value

BDD 2
GIVEN I am on the page of a Wikidata entity
WHEN I click "+ add value" for a property PX with a valid "mandatory qualifier" constraint (Q21510856)
THEN a qualifier field for each mandatory qualifer for PX appears with a blank value

Acceptance criteria:

Open questions:

Related Objects

Event Timeline

Did you already implement this as a user script, or how did you take that screencast? (I don’t see anything in your common.js, at least.)

Nope, unluckily it's a short science fiction film (or a cheap trick with a camera cut). :-/

I assume we can do this the same way we are doing it in the beta feature for suggestions based on constraints?

Suggestions are only shown when the user already wants to add a qualifier and clicks "add qualifier"; unfortunately, this use case corresponds to users who don't have the intention to add any qualifier, so they don't click "add qualifier" and they don't see any suggestions. There are some mandatory qualifiers that users should add, but they don't know these qualifiers should be added until a violation appears, they see the corresponding message and they (maybe) fix the issue by editing the statement and finally clicking "add qualifier" (at this point suggestions for mandatory qualifiers are of course interesting but haven't avoided the problem).