Page MenuHomePhabricator

Allowed Units Constraint: accept class (P2308) and relation (P2309) as qualifiers instead of item of property constraint (P2305)
Open, Needs TriagePublic


According to and T164372, the current allowed units constraint was implemented to accept item of property constraint (P-2305) as a qualifier, with some logic to allow derived units to also be accepted.

For constraints on properties such as budget (P-2769), cost (P-2130) and length (P-2043), there is likely dozens or hundreds of units that would be acceptable, most which are not derived from each other. This is particularly true for currencies where there is no constant conversion between different currencies (it depends on the time dimension too).

Allowing the use of class (P-2308) and relation (P-2309) as qualifiers to the allowed units constraint would cover the current use case (just specify class=specific unit, relation=instance of) as well as the added ability to allow a whole class of currencies or units.