[jira] [Reopened] (OFBIZ-5959) Add lifespan fields to PartyRole and dependency refactoring

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Reopened] (OFBIZ-5959) Add lifespan fields to PartyRole and dependency refactoring

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-5959?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierre Smits reopened OFBIZ-5959:
---------------------------------

Reopening, as removing a PartyRole from a party can lead to errors.

Steps to reproduce:
 # Go to [https://demo-trunk.ofbiz.apache.org/partymgr/control/viewroles?partyId=DemoCustomer;|https://demo-trunk.ofbiz.apache.org/partymgr/control/viewroles?partyId=DemoCustomer]
 # Remove the 'Contact' role from the party.

See the error shown (attached screenshot).

Such errors pop up due to referential integrity (used in other entities).

> Add lifespan fields to PartyRole and dependency refactoring
> -----------------------------------------------------------
>
>                 Key: OFBIZ-5959
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5959
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: party
>    Affects Versions: Trunk
>            Reporter: Pierre Smits
>            Assignee: Pierre Smits
>            Priority: Major
>              Labels: role, roles
>         Attachments: OFBIZ-5959-party-entitymodel.xml.patch
>
>
> Currently the assignments of roles to parties are boolean (there or not there).
> However, these role assignments also have a lifespan. This can be achieved by adding fromDate and thruDate fields.



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