All guides & tutorials
in this lesson
1
Versioning setup
2
Enable versioning
3
Migrate existing data to support versioning
4
Change the custom-field configuration to support creation of new versions
5
Change the relevant pages, reports to support versioning, start and end date definition
6
Use versions page / adjust processes
7
Good to know
8
9
10
11
share
How-to-guides
Curriculum

Curriculum: Versioning configuration

Configuration guide for date-based Curriculum versioning.

in this lesson
1
Versioning setup
2
Enable versioning
3
Migrate existing data to support versioning
4
Change the custom-field configuration to support creation of new versions
5
Change the relevant pages, reports to support versioning, start and end date definition
6
Use versions page / adjust processes
7
Good to know
8
9
10
11
Requirements

Versioning setup

Related articles

This article covers setup and related topics. The configuration of versioning requires a number of steps:

  1. Enable versioning
  2. Migrate existing data to support versioning
  3. Change the custom-field configuration to support creation of new versions
  4. Change the relevant pages, reports to support start and end date, definition
  5. Use versions page / adjust processes

Before starting, it’s good to be aware there is no way back once versioning is enabled and the data is migrated.

Enable versioning

To enable versioning, navigate to the Administration -> Configuration page.

  • Search for the configuration option versioning.enabled
  • Set the value for versioning.enabled from the default value (false) to true
Enable versioning

The system will use the versioning mechanism for all new data created.

Migrate existing data to support versioning

If the system already has data, prior to changing and/or creating new educational objects, first the existing data must be migrated to support versioning.

The migration script does have logic and will create ‘definition objects’ and underlying version with their respective start and end dates based on the academic year(s) they’re bound to. The script will set name and code based of the original object.

To start the data migration, navigate to the Administration -> Scripts page.

  • Click on the Add button
  • Select the script Migrate to versioning and click Execute
__wf_reserved_inherit
Migrate to versioning script
  • The migration can take some time depending on the amount of data (up to 1 hour), wait with any further actions till the migration is finished.
  • Select the script Optimize database and click Execute
__wf_reserved_inherit
Optimize database script

Once the database optimization has finished, the system is technically migrated to versioning support.

Change the custom-field configuration to support creation of new versions

Since new versions will be based on an existing version, the selection of an existing version should be supported. On the study, module-group, module, teaching method and assessment the originalId must be enabled and the academicYearId should be disabled.

Next to that the startdate and enddate must be enabled as these will be used to define whether the object will be visible in a year.

Finally the definitionId (this links the versions of the objects together) should be visible.

The image shows the configuration for the module-group, the setup for study, module, teaching method and assessment is equal.

__wf_reserved_inherit

Note: it is useful to switch on ‘display code and name’ for the originalId field. This makes it easier to search/ recognize the chosen definition.

Note: it is useful to switch on ‘display on general’ for start and enddate. This makes it easy to always see/ understand why an object might/ might not be visible in a year.

Note: it’s useful to switch on ‘allow to create’ for definitionId at study level. This enables creating new definitions at study level.

Change the relevant pages, reports to support versioning, start and end date definition

The explanation for forms (pages) to change will be done using the module as an example. The same changes should be applied to study and module-group.

The custom-field definition of a module can be used to create a default Create form. If the create form is not configured, create a new page and add it to the create page configuration for the module.

Create page configuration for module

The create page is a form page, that should contain the relevant fields for the creation of a new module. The screenshot below shows a configuration to create a new module using versioning. The main addition is the originalId, which is in the screen represented as the option to select a module version that will be the foundation for the new version. In other words, the selected module version will be copied and saved as a new version.

The code is the unique version code, and should contain a formula that will automatically generate the new version. More information and examples will be added. For now (during testing) the code should filled manually.

Page configuration ‘new module’

The name will be copied from the original version (the one that is copied), and can be kept the same, or can be adjusted.

The start and end date can be used to define the life-cycle of the module. The end date may not be necessary, the start date is, since it can be used to define the start date of the new created version.

Also think about existing public report templates. You might want to add some fields there as well: definition, start and end date. Below an example at study level:

‍

Use versions page / adjust processes

When using versioning you’d probably would want to enable the versions page:

The + on the right hand side provides an option to create a new version based on the existing ones.

The definition option allows to open the definition (which links the versions together). The definition can be maintained from that page as well.

‍

Next step would be to have a look at processes. When should processes be ‘re-directed’ to a new version and when should the existing process continue. The versions page could be used to start a process for a new version.

The way this can be solved is using filtering on creation of new object. More information on how to configure using this filtering within a process for a new version can be found here: Starting multiple create processes with a condition →

Good to know

  • Version 1 stays open: creating version 2 doesn't automatically end version 1. It can be managed within existing process configuration to end version 1 when version 2 is created.
  • Ownership: ownership of versioned objects isn’t automatically ‘moved’ to a new version. It can be managed within existing process configuration to end version 1 ownership when version 2 is created.
  • Study Catalogue: No specific versioning option in Study Catalogue is built. The definition can be shown in Study Catalogue
  • A new definition can be created from the versioned object.
    • Go to Customizable fields, open the definitionId field of the study type and switch on Allowed to create.
    • The user needs the CREATE_DEFINITION permission on the academic year. The type's create setting must also allow creating in the current year.
    • In the create form, the Definition dropdown now starts with Create new. This opens the definition create form (or the create page configured for Definition) and selects the new definition after saving.
    • Good to know: this only works on the New tab. Since the Definition field is hidden on the New version tab.
  • Ignore in copy: The custom field setting Ignore in year copy is now called Ignore in copy. A field with this setting starts empty:
    • when a new version of a module, study or module group is created
    • when a module, study or module group is copied
    This applies with and without versioning. The copy to a new academic year is unchanged. With versioning, a version that runs for several years shows the same value in each of those years, until the next version is created. The setting is under Administration → Custom types and fields

More Guides & Tutorials