Last modified: 2014-10-30 08:44:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T72341, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70341 - Create a new datatype "count" similar to "quantity".
Create a new datatype "count" similar to "quantity".
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=backend p=0
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-03 13:58 UTC by Daniel Kinzler
Modified: 2014-10-30 08:44 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Daniel Kinzler 2014-09-03 13:58:06 UTC
"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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links