Version Control for Object Event Scripts

The code for an object event script is compiled through MineMarket and the script source code is stored in the database. The compiled script DLLs are written to a subfolder called Scripts under the MineMarket application folder and are given a unique name by the script compiler. Therefore, versioning cannot be handled in the usual manner like other DLLs.

Store object event scripts are stored in the MineMarket TFS under:

$/MineMarket/MineMarket V4 Sites/<Client>/Development/Object Event Scripts/<scriptname>.cs

Each time a script is edited:

  1. Increment the version number in the script name.
  2. At the top of the object event script, increment the version number to match the name.
  3. Add a description of the changes, including the work item number and client reference number.
  4. Test the script.
  5. Check the script into TFS.

Example:

Copy
/// <summary>
/// Exposes events for Purchase Invoice Events business objects
/// Version 2.3
///
///* Modification date    : Dec 9, 2013
///* Modified By          : Paul Hughes
///
///* Changes May 1, 2013  : Changed invoice naming to only occur when locking 
///*                        invoices.
///*  TFS items addressed : 29885
///* Changes Aug 26, 2013 : Altiris 98780 - Invoice numbering suffix fix for 
///                         invoice type Early Provisional
///* Changes Oct 24, 2013 : Altiris 103077 - Sales invoice numbering fix.
///* Changes Dec 9, 2013  : Altiris 95708 - Update for new Element Status 
///*                        functionality
///*  TFS items addressed : 31704
/// </summary>