Page MenuHomePhabricator

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


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.

Event Timeline

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).

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

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

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?)