Ravenbrook / Projects / Perforce Defect Tracking Integration / Issues

Perforce Defect Tracking Integration


P4DTI issue job000501

Title: new jobs break TeamTrack integration if LASTMODIFIEDDATE or SUBMITDATE are replicated
Status: closed
Priority: essential
Assigned user: Nick Barnes
Product: p4dti
Organization: Ravenbrook
Description: In the TeamTrack integration, if either of the fields LASTMODIFIEDDATE and SUBMITDATE are replicated (i.e. are in the replicated_fields configuration parameter) and the P4DTI is set up to replicate new jobs (i.e. replicate_job_p is defined to return 1), and a new job is created without filling in these fields, the P4DTI fails.
The failure is reported like this:
2002-04-05 14:39:41 UTC (P4DTI-9082) Job 'job000007' could not be replicated to the defect tracker.
2002-04-05 14:39:41 UTC (P4DTI-9093) The replicator failed to replicate Perforce job 'job000007' to the defect tracker, because of the following problem:
2002-04-05 14:39:41 UTC (P4DTI-891X) Error (TeamShare API error): ERROR: 'Submit Date' field requires a value.
'Last Modified Date' field requires a value.
Invalid field values for submit
Analysis: This was found while investigating job000437. The translator is putting -2 into the date slots, which is the TeamTrack code for a NULL date. But TeamTrack won't accept this when creating an issue. The solution is to extend prepare_issue_advanced so that if one of these slots has -2, it gets deleted. Then TeamTrack fills in the current date for these and the job gets updated appropriately.
How found: manual_test
Evidence: Found by hand-testing.
Observed in: 1.4.0
Introduced in: 1.3.0
Test procedure: none
Created by: Nick Barnes
Created on: 2002-04-05 16:28:21
Last modified by: gdr
Last modified on: 2002-06-24 20:10:56
History: 2002-04-05 NB Created

Fixes

Change Effect Date User Description
27878 closed 2002-04-05 16:35:27 Nick Barnes Handle replication of new jobs when LASTMODIFIEDDATE or SUBMITDATE are in replicated_fields.

Generated at 2008-07-20 23:13:48 by $Id: //info.ravenbrook.com/infosys/cgi/issue.cgi#430 $

Copyright © Ravenbrook Limited. This document is provided "as is", without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this document. You may make and distribute verbatim copies of this document provided that you do not charge a fee for this document or for its distribution.

Ravenbrook / Projects / Perforce Defect Tracking Integration / Issues