How to control policy evaluation?  
Author Message
Marcin Książek





PostPosted: Team Foundation Server - General, How to control policy evaluation? Top

I have a custom policy that forces users to provide comments on changesets (standard example). The problem is that if it fails and after that user provides a comment policy doesn't evaluate again and has to be forced to do it.

How can I track it and evaluate this policy after each change of comment

Marcin



Visual Studio Team System38  
 
 
Tan Phan





PostPosted: Team Foundation Server - General, How to control policy evaluation? Top

There is not a built-in mechanism for invoking policy evaluation whenever the comment changes. In fact, it may be really bad to even support that evaluation trigger because of the possibility of too frequent changes.

My recommendation is to track the comment text in your policy implementation and detect for changes between evaluations.

Hope this helps. -Tan


 
 
Marcin Ksi??ek





PostPosted: Team Foundation Server - General, How to control policy evaluation? Top

Thanks for your clue. I will track comment text changes it is the most reasonable solution for that problem.

Marcin