P4DTI issue job000630

TitleCan't restrict State field values by TeamTrack project
Statusduplicate
Priorityessential
Assigned userNick Barnes
OrganizationRavenbrook
DescriptionThe P4DTI generates a jobspec for Perforce. In the TeamTrack integration, this jobspec includes a 'State' field, replicated from the STATE field of a TeamTrack issue. This 'State' field is a 'select' field. The allowable values for this field are derived from the complete set of possible STATEs of issues in any TeamTrack project. This includes the STATEs of issues in projects which are not replicated (i.e. which are restricted from replication using the replicate_p configuration parameter). Users would like [1] to be able to exclude STATEs from non-replicated projects, but cannot do so at present.
AnalysisThis is a duplicate of job000231.
The allowable values for the 'State' field, and the translation mapping of this field between Perforce and TeamTrack, are computed in make_state_pairs() in configure_teamtrack.py. We would have to add some sort of configuration parameter and restrict the query used to obtain the state values. The current query is 'TS_PROJECTID IN (SELECT TS_ID FROM TS_WORKFLOWS WHERE TS_TABLEID = case_table_id)'.
We could use a parameter called something like replicated_projects and also use the same parameter to do a first cut for the replicate_p test.
How foundcustomer
Evidence[1] <http://info.ravenbrook.com/mail/2002/11/22/16-56-52/0.txt>
Observed in1.5.0
Introduced in0.3.0
Created byNick Barnes
Created on2002-11-22 16:57:19
Last modified byGareth Rees
Last modified on2002-11-25 12:28:52
History2002-11-22 NB Created.
2002-11-25 GDR This is a duplicate of job000231.