Versions and Rollbacks

When a Function is created or updated, a version (snapshot) is created that includes the code, libraries and information, such as the description.

From the Versions tab, you can access the different versions that have been created for the Function.
Figure 1.


When accessing the versions tab, use the drop-down menu to choose among the existing versions of the Function. By default, the drop-down will have the current version of the Function selected, displaying the corresponding message: "This is the current version."

Note that when working on a version, if any changes are made and the Function is rebuilt, a new version will be created in the list; the existing one will not be updated.

Figure 2.


If a different version is selected from the drop-down, the information corresponding to that version of the Function will be displayed.
Figure 3.


To perform a rollback to the selected version, click the Rollback to Version vN button located below the drop-down, where vN refers to the version selected in the drop-down.

Once the button is clicked, the Function builds process begins.

Note: For versions created prior to this feature, the Function context required to retrieve information other than the code is not available. In this case, the platform will display a warning message and will use the information from the version that is currently in use if a rollback is performed to this version.
Figure 4.