Page MenuHomePhabricator

[Story] Keep constraint table in sync with constraint definitions of properties
Closed, ResolvedPublic

Description

We would like to have the constraint table in sync with constraint definitions of properties, so the special page, the upcoming API and integration into the item page will not show outdated constraints.

Ideally the constraint table would be updated on every update of a property page.
We only want to support constraints that are defined as statements on the property.

Event Timeline

We should define if we only want to support constraints defined as statements or also template definitions of constraints.

For the constraint special page we should support only the constraints defined in statements on the property page in the future.

Also looking to the future, statements on property pages (and on their corresponding talk pages) are unstable as they can be vandalized. To have a very stable external application that makes the most of the constraint table, a layer of stability will have to be introduced at some level. This layer can be fully assumed by the community of editors (for example, by semiprotecting property pages and/or by reviewing edits on these pages before they can be actually published), be provided at the level of the constraint table (for example, by only applying a constraint change if this change keeps stable for a certain minimum period of time, although this wouldn't let us enjoy constraints in real time), or at the level of every single external application that intensively uses Wikidata and requires a significant constraint stability (as in the previous case, this probably wouldn't let users/developers use constraints in real time).

Do you expect this layer of stability to be fully covered by the community and the developers of external applications? Otherwise, is it planned to provide some kind of stability to the constraint table itself?

Change 349894 had a related patch set uploaded (by Lucas Werkmeister (WMDE)):
[mediawiki/extensions/WikibaseQualityConstraints@master] Import constraints from statements on properties

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

Change 352802 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)):
[mediawiki/extensions/WikibaseQualityConstraints@statements] Import constraints from statements on properties

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

Change 352802 abandoned by Lucas Werkmeister (WMDE):
Import constraints from statements on properties

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

Change 349894 merged by jenkins-bot:
[mediawiki/extensions/WikibaseQualityConstraints@master] Import constraints from statements on properties

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

What's still needed here?