Standard Energy Efficiency Data (SEED) Platform™ is a web-based application that helps organizations easily manage data on the energy performance of large groups of buildings.
There are 4 different data types outside the normal float, int, string... These are eui, area, ghg, and ghg_intensity. PropertyState fields associated with these four types are given a pint unit and saved in the db as <Quantity (value, 'unit')>. Before displaying values on the Inventory List table the quantity values are converted based on org display unit settings.
Extra data fields are not given a pint unit and are saved in whatever format they were imported as (string or number). Because they don't have pint units they are ignored when the unit conversion takes place allowing data to be misrepresented.
What's this PR do?
Adds a pint unit to extra data columns that have been assigned a data type in column settings.
How should this be manually tested?
upload property data with both canonical area columns and extra data area columns (or eui, ghg, ghg_intensity)
on column settings change the data type of the extra area field to area
on org settings, change the default display units of area from ft2 to m2
ensure inventory list values are updated (this should also be visible on the mapping page of the import process)
Any background context you want to provide?
There are 4 different data types outside the normal float, int, string... These are eui, area, ghg, and ghg_intensity. PropertyState fields associated with these four types are given a pint unit and saved in the db as <Quantity (value, 'unit')>. Before displaying values on the Inventory List table the quantity values are converted based on org display unit settings.
Extra data fields are not given a pint unit and are saved in whatever format they were imported as (string or number). Because they don't have pint units they are ignored when the unit conversion takes place allowing data to be misrepresented.
What's this PR do?
Adds a pint unit to extra data columns that have been assigned a data type in column settings.
How should this be manually tested?
What are the relevant tickets?
4494
Screenshots (if appropriate)
Inventory List
Mapping Screen