You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "ddev (Jira)" <ji...@apache.org> on 2020/10/05 17:23:00 UTC

[jira] [Comment Edited] (OFBIZ-12037) Bug in seed data for UomType / Uom

    [ https://issues.apache.org/jira/browse/OFBIZ-12037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17206307#comment-17206307 ] 

ddev edited comment on OFBIZ-12037 at 10/5/20, 5:22 PM:
--------------------------------------------------------

 

How would we handle erasing "WEIGHT_MEASURE"? 

 

If we erase the "weight measure" type and the related Uom's from the seed data, and someone already wrote a ofbiz application that did a "where UomType = 'WEIGHT_MEASURE'" kind of thing, it would break that for them when they went to set up their new installation.

 

We could tell those people who were upgrading to use the new seed data, but then  they would still have the old data laying around.

 

What's the expected way to handle something like this?

 


was (Author: ddev):
 

How would we handle erasing "WEIGHT_MEASURE"?  

 

If we erasing the "weight measure" type and the related Uom's from the seed data, and someone already wrote a ofbiz application that did a "where UomType = 'WEIGHT_MEASURE'" kind of thing, it would break that for them when they went to set up their new installation.

 

We could tell those people who were upgrading to use the new seed data, but then  they would still have the old data laying around.

 

What's the expected way to handle something like this?

 

> Bug in seed data for UomType / Uom
> ----------------------------------
>
>                 Key: OFBIZ-12037
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12037
>             Project: OFBiz
>          Issue Type: Bug
>          Components: datamodel
>            Reporter: ddev
>            Priority: Minor
>
> I found a problem in the seed data.  The kilogram, is under the wrong measure type.  The kilogram is a unit of mass, not a unit of weight. 
> Explanation: The weight of a product/object changes with altitude, the mass does not.  (example: If you want to lower your mass, then you need to diet, but if you just want to weigh less, then just live on mars.)
> (These are easy to confuse because of a naming collision:  there is a unit of mass called the pound and also unit of force called the pound)
> Basically, we should change:
> <UomType description="Weight" hasTable="N" uomTypeId="WEIGHT_MEASURE"/>
>  To be:
>  <UomType description="Mass" hasTable="N" uomTypeId="MASS_MEASURE"/>
>  <UomType description="Force" hasTable="N" uomTypeId="FORCE_MEASURE"/>
>  
> With seperate Uoms under each UomType
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)