Script versioning

You can use the script versioning feature of ION Scripting to version and then update scripts and data flows on the fly.

A script can have multiple versions with each modeled with different code functionality. The Input and Output Variables properties such as name, data type and count cannot be updated for versions compatibility reason.

Status' of a script version:

  • Draft
  • Approved

Initially when a script is created it is in draft status. Draft scripts can be used in model data flows, but they prevent the activation of the flow. To activate the data flow, you must first approve the scripts that are used.

Note: Activated data flows use the latest approved version available of the script. When the script is updated with a new approved version, the data flows do not require re-activation. They start using the newly approved version of the script when their last run with the older version completes.

Before a draft version can be approved, it must be valid. The script is considered valid and can be approved, in these situations:

  • There is code.
  • Input and Output Variable names are declared.
  • Added libraries as dependencies do not have an error status.
Note: ION Scripting does not support syntax validation for programming and stylistic errors in the code.

In the modeling page of a script, the Versioning widget shows all the available versions. The current open script version is highlighted and in focus. When you open a script from the Overview page, the latest version of the script is displayed. To explore previous versions of a script, click a different version within the widget.

These details are displayed for a script version in the Versions widget:

  • Version number
  • Version status
  • Last update date and time
  • Last updater's username

Click the Check mark icon to approve a draft version. This changes the status from draft to approved for the version.

Approved versions are read-only, but you can still change the test input and run the test.

To edit an approved version, you must create a new draft version. A new draft can be created from any of the approved versions available.

On one of the available approved versions, click the Edit icon to create a new draft of that version. Each creation of new draft increases the version number. Deleted version numbers are not reused when creating new draft version.

To delete a version, click the Trash icon on the version in the Versions widget. Versions that are currently opened cannot be deleted. The last approved version cannot be deleted. The delete action is irreversible and saving is not required.