Page MenuHomePhabricator

New constraint type "Unused"
Open, Needs TriagePublic

Description

There should be a new constraint type "Unused". All statements (within specific scope) using "unused" properties will be constraint violation.

Use cases:

  1. Properties that should not be used for now (e.g. https://www.wikidata.org/wiki/Property:P5137, before senses are deployed)
  2. Properties that are deprecated (with T214243: new constraint level for deprecated usage)
  3. Properties that should be only used by a small number of items (which are flagged as exceptions)
  4. Sandbox properties.

Event Timeline

@Bugreporter, do you think we could get the same with the already existing "property scope" constraint by not using any qualifier to specify a scope or by specifying the scope as "no value"?

Can you please clarify if/how this is different from T214243? And why is using "property scope: no value" not an option?

I think it can be solved with existing property constraints, e.g. allowed entity types constraint (Q52004125)