Role required: admin. |
A local pack is a record in the VCS Local Pack (sys_vcs_local_pack) table, compiling a specific collection of records from the VCS Record (sys_vcs_record) table. Use it to associate VCS records with a particular pack according to the type of changes they refer to, and export them as a complete configuration set. With export of local packs, it is possible to move the development of the application configurations to a separate instance. To do so, export them as a .SOP file and implement the changes to another instance.
See the Configuration Packs article to learn more.
The exported configuration pack includes:
Local pack configuration and export include the following stages:
When exporting records for a custom application, ensure that the relevant application is implemented on the target instance or that the local pack contains the application VCS record.
|
In SimpleOne, you can export separate local packs and upload them one by one. Another option is to work as a team on one task. To do so, developers should do their part of work in separate local packs and then merge the results into the final local pack. The process scheme is described below:
It is also possible for the developers to work using the same local pack, though it is risky and not recommended.
To facilitate the team development process, do the following:
To create a local pack, complete the steps below:
Configure the set of record versions in the VCS Records related list to manage the local pack content. Restore and move records to collect only those you need.
To restore one of the previous record versions and make it current, click Restore Version. Restoring is available only for the VCS records with the cleared Is Current checkbox.
Restoring is unavailable for the records of the Simple application with the Protected record policy. |
To restore a record version, complete the steps below:
Another way to restore a record version is the following:
|
After that, a new VCS record is created in the current local pack.
The SimpleOne platform is designed in the way that no record can be removed from the system. When you click Move to Default, they are moved to the default local pack. If one of your local packs contains a VCS record that was created accidentally or belongs to another configuration pack, you can remove it from this local pack.
To move a VCS record, do the following:
As a result:
It is impossible to delete records from the default local pack. |
If a version was created in a wrong local pack by mistake (for example, in the default local pack), you can move it to the required local pack. To do so, complete the steps below:
Snapshots restore record versions in the following cases:
In version control systems (VCS), a snapshot is a fixed state description of a system or database.
There are two ways to create a table snapshot:
The example script below makes snapshot of all versioned tables within the current application:
const table = new SimpleRecord('sys_db_table'); table.addQuery('is_vcs_enabled', true); table.addQuery('sys_id', '!=', '999999999999999998'); // exclude REM table.selectAttributes('name'); table.query(); while (table.next()) { const vcs = new SimpleVcs(); const versionCount = vcs.createTableSnapshot(table.name); if (versionCount > 0) { ss.info(`${table.name.padStart(80, " ")}: ${versionCount} versions created`); } } |
To complete local packs, complete the steps below:
Another way to open a local pack record is the following:
|
Note that, when you develop an application, the records created in the pipeline of another application are unavailable for updating (either editing or deleting). Any attempt to modify a record related to another application causes a warning message. To perform any actions with a record, switch to the application it belongs to. For more information about switching between the applications, see the Admin Preferences article. |
/