|Title||When you submit a new issue to TeamTrack it overwrites the issue|
|Assigned user||Gareth Rees|
|Description||When you submit a new issue in TeamTrack, then the replicator sets up that issue for replication and replicates it to Perforce. Then the next time it polls, it thinks that the issue and the corresponding job have changed, so it overwrites the jobs with the issue.|
This also happens when you run the replicator for the first time, if there are issues modified since the start_date. All the issues get replicated and then overwritten.
|Analysis||The reason for this is that the issue has indeed changed (by the replicator setting the P4DTI_* fields for the issue). The problem is that the replicator has set those fields using TSServer::UpdateRecord, not TSServer::Transition, so the TS_REALUSERID field is 0 in the records in the TS_CHANGES table, so the replicator thinks that someone else has made those changes.|
This can be fixed by adjusting the query in dt_teamtrack.changed_entities so that it ignores changes with T_USERID=<the replicator> and TS_REALUSERID=0.
|Created by||Gareth Rees|
|Created on||2001-02-27 16:52:43|
|Last modified by||Gareth Rees|
|Last modified on||2001-12-10 19:26:30|
|History||2001-02-27 GDR Created.|
|9162||closed||2001-02-27 17:09:50||Gareth Rees||The dt_teamtrack.changed_entities method ignores changes with TS_USERID=<self> as well as changes with TS_REALUSERID=<self>, so as to get the correct set of changed issues.|