You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (Jira)" <ji...@apache.org> on 2019/09/03 16:45:00 UTC

[jira] [Commented] (OFBIZ-11182) PicklistStatusHistory doesn't follow history entity status pattern

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

Jacques Le Roux commented on OFBIZ-11182:
-----------------------------------------

Looks good to me, migrateOldPicklistStatusHistoryToPickListStatus will be implemented later (with a note at https://cwiki.apache.org/confluence/display/OFBIZ/Addressing+Custom+Requirements+In+OFBiz ;)), with another Jira?

> PicklistStatusHistory doesn't  follow history entity status pattern
> -------------------------------------------------------------------
>
>                 Key: OFBIZ-11182
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11182
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: product
>    Affects Versions: Trunk
>            Reporter: Nicolas Malin
>            Assignee: Nicolas Malin
>            Priority: Minor
>         Attachments: OFBIZ-11182.patch
>
>
> The entity PicklistStatusHistory record each status change realized on picklist.
> It can't be convert to entity-auto easily because PicklistStatusHistory's fields pattern doesn't follow same entities like ShipmentStatus and PartyStatus.
> I propose to deprecate the entity PicklistStatusHistory:
> {code:java}
>      <entity entity-name="OldPicklistStatusHistory" table-name="PICKLIST_STATUS_HISTORY"
>             package-name="org.apache.ofbiz.shipment.picklist"
>             title="Picklist Status History">
>       <field name="picklistId" type="id"></field>
>       <field name="changeDate" type="date-time"></field>
>       <field name="changeUserLoginId" type="id-vlong"></field>
>       <field name="statusId" type="id"></field>
>       <field name="statusIdTo" type="id"></field>
>       <prim-key field="picklistId"/>
>       <prim-key field="changeDate"/>...
>     </entity>
> {code}
> and replace it with an entity managed natively by entity-auto engine
> {code:java}
>      <entity entity-name="PicklistStatus"
>             package-name="org.apache.ofbiz.shipment.picklist"
>             title="Picklist Status History">
>         <field name="picklistId" type="id"/>
>         <field name="statusDate" type="date-time"/>
>         <field name="changeByUserLoginId" type="id-vlong"/>
>         <field name="statusId" type="id"/>
>         <field name="statusIdTo" type="id"/>
>         <prim-key field="picklistId"/>
>         <prim-key field="statusDate"/>...
>     </entity>{code}
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)