Page MenuHomePhabricator

Make an obvious way of blacklisting a value for a property
Closed, ResolvedPublic3 Story Points

Description

Problem: I want to specify that a property should not use a value (eg. an item).

Solution: Create a new constraint 'none of' (as opposed to 'one of').

Current workaround: Using 'conflicts with' and the same property. However, this only makes sense and works for mainsnak. I'd like to check qualifiers and references as well.

Details

Related Gerrit Patches:
mediawiki/extensions/WikibaseQualityConstraints : masterAdd 'none of' constraint

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 17 2017, 2:03 PM

Example where this might be useful currently: "website account on" There the blacklist contains the websites where we have a dedicated property.

This query finds all properties which currently use the workaround mentioned in the task description (“conflicts with” own property).

Lydia_Pintscher set the point value for this task to 3.May 2 2018, 1:55 PM
Restricted Application added a project: User-Ladsgroup. · View Herald TranscriptMay 3 2018, 3:42 PM

Change 430619 had a related patch set uploaded (by Ladsgroup; owner: Amir Sarabadani):
[mediawiki/extensions/WikibaseQualityConstraints@master] Add 'none of' constraint

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

Change 430619 merged by jenkins-bot:
[mediawiki/extensions/WikibaseQualityConstraints@master] Add 'none of' constraint

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

Are you logged in? Apparently there are no constraint checks on that wiki if you’re not logged in. (Though I’m not sure why – I thought I’d put them in common.js at some point?)