Files
ofbiz-plugins/scrum
Jacques Le Roux bcdec41f80 A patch from Gopal Yadav for "Add Work Effort Party Assignment creates record with invalid PartyId" https://issues.apache.org/jira/browse/OFBIZ-7188
Steps to regenerate:
1.  Go to FindWorkEffort screen https://localhost:8443/workeffort/control/FindWorkEffort
2. Click on Find button in search option and choose any of the WorkEffort from the list. 
3. Go to the Parties tab to check parties assigned to the WorkEffort.
4. Add Work Effort Party Assignment: 
 - Enter any invalid PartyId (which does not exist in the system e.g, XYZ or ABC)
- Choose any of the roles from the drop-down list.
- Add FromDate.
- Submit the form.

Current Behaviour: System creates a WorkEffortPartyAssignment record with invalid data (partyId).
Expected: System should not create this record as entered data - partyId is invalid.

Exploring around this issue I found that entity definition of WorkEffortPartyAssignment has relation with Person, here I think it is required to create a foreign key rule with Person entity. Also, fk-name has not been created with PartyRole in the entity definition.
I have corrected the definition and attached a patch for the same.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1750166 13f79535-47bb-0310-9956-ffa450edef68
2016-06-24 21:37:11 +00:00
..

How to install the revision of task function.
=============================================

Server requirements
1. subversion

Installation (On server)

1. Install subversion
2. Hook script setting
    2.1 post-commit file is hook script file that will work when users commit source code to subversion repository.
          Copy post-commit file from "scrum/data/hookscripts/post-commit" to hooks folder of repository and then edit file following :
          Example : python /usr/share/subversion/hook-scripts/commit.py "$REPOS" "$REV"
    2.2 commit.py file is python file which will send revision information to Scrum web service.
          Copy commit.py from "scrum/data/hookscripts/commit.py" to "/usr/share/subversion/hook-scripts/" and then edit file following :
          ---------------------------------------------------------------------------------
            CONFIG_PATH = ""    // the path of the revision.properties should begin from home directory.
            Example : CONFIG_PATH = "/home/ofbiz/ofbiz/hot-deploy/scrum/config/revision.properties"
          --------------------------------------------------------------------------------
3. Configure file setting : The original configure file is in scrum component (/scrum/config/revision.properties) you can put it 
          anywhere that you wish but should be set the path of the file in commit.py file ("CONFIG_PATH=").
          Example:
          --------------------------------------------------------------------------------
            revision.url =www.example.com/svn/
            ofbiz.webservice.url =http://www.example.com/webtools/control/SOAPService
            host.name =www.example.com
            host.port =80
            
            #-- subversion admin and password
            svn.user=demoUser
            svn.password=demoPassword
          --------------------------------------------------------------------------------
4. Change the location path of the updateScrumRevision service in .../scrum/servicedef/services.xml file.
          Example:
          --------------------------------------------------------------------------------
          <service name="updateScrumRevision" engine="soap" export="true"
            location="http://www.example.com/webtools/control/SOAPService" invoke="updateScrumRevisionChange">
            <implements service="updateScrumRevisionChange"/>
          </service>
          --------------------------------------------------------------------------------
5. Restart the server.