Page MenuHomePhabricator

[Story] Create a new datatype "count" similar to "quantity".
Closed, DuplicatePublic

Description

"countable" should also use the Quantity value type, but should be restricted to positive integers, and default to +/- 0. This would remove the awkwardness of using the "quantity" data type for things like the number of neutrons in a carbon core, or the number of planets in a solar system. For properties like "population", +/-0 is unlikely to be true, but the current default of +/-1 is hardly better for that.

Migration note: Existing properties could be converted from "quantity" to "count" by updating the Property entity (the API doesn't allow this, but we could do it via a maintenance script), and then re-generating the property-info entries for those properties. That should be sufficient.

Details

Reference
bz70341

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:44 AM
bzimport set Reference to bz70341.
bzimport added a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).

With regard to RDF export, it would be nice if changing property would generate some kind of recentchanges entry, so that the importing tool would know property definition needs to be reloaded.

Yes, if we do such changes to the datatype of a property they really need to be record like an edit (with an entry in recentchanges and history).

Jonas renamed this task from Create a new datatype "count" similar to "quantity". to [Story] Create a new datatype "count" similar to "quantity"..Nov 2 2015, 5:17 PM
Jonas updated the task description. (Show Details)
Jonas set Security to None.