Page MenuHomePhabricator

implement quantities data type
Closed, ResolvedPublic

Description

This is the bug for tracking implementation of the numbers data type.


Version: master
Severity: major

Details

Reference
bz52916

Event Timeline

bzimport raised the priority of this task from to Unbreak Now!.Nov 22 2014, 1:50 AM
bzimport set Reference to bz52916.
bzimport added a subscriber: Unknown Object (MLST).

Question on the ask the dev team page:

Is there any way one could get some details on how the number datatype will look like? I would like to know:
If there will be 2 datatypes one for number and one for number + physical unit?
Will non-SI units be accepted when entered. Will they be converted to SI? Will there be an option to switch between non-SI and SI units for displaying? Will there be an indicator that a value was entered in non-SI units because that could indicate that it is not really a primary source?
How will the margin of error be included with the measurement? Can it be entered relative or absolute? Will there be an option to say it is sigma-1, sigma-2... ? Sometimes the margin of error is asymmetrical. How will this be entered?
Does the property creator decide on what kind of physical units that are allowed (e.g. a property could be limited to volumes and another could be limited to length measurements?)
Apart from the 7 SI units, how many derived units will be supported. E.g. mol/litre, µg/g (commonly called 'weight/mass part per million'), ml/l (The units cancel out but it is the only way to distinguish weight-% from volume-%, etc...).
Will there be a way to enter e.g. the value for the gas constant once and then convert it to other units (How many properties do we need to store all the values of the en:Gas_constant? Ideally a dropdown menu couls say "display the value with other physical units" which would allow the user to switch from J/(molK) to m³Pa/(molK)). --Tobias1984 (talk) 11:02, 15 August 2013 (UTC)

Change 84120 had a related patch set uploaded by Daniel Kinzler:
(bug 52916) Baseline for Quantity data type.

https://gerrit.wikimedia.org/r/84120

  • This bug has been marked as a duplicate of bug 54318 ***
Restricted Application added subscribers: Jay8g, TerraCodes. · View Herald Transcript