Skip to content

migration of nested objects in CRIS entities: improper handling of optional nested fields #398

@saschaszott

Description

@saschaszott

In DSC5 we are using nested objects to model affilations in researcher profiles. Each affiliation consists of 4 fields: org unit (ou pointer; mandatory), role (mandatory), start date (optional), end date (optional).

Currently, we have several affilations without start date and / or end date.

For example, in DSC5 we have one RP with 2 affiliations (screen shot)

image

Currently, the CRIS migration procedure (Pentaho transformation) inverts the order of affilations. This is due to step Sort position in entity_migration.krt (ascending = N)

The expected migration result of the given example RP is:

image

Currently, DSC7 produces an invalid migration result in case of affiliations with optional fields (as in the given example):

image

In this example the assignment of end date is not correct.

This bug is caused by the Pentaho migration step Select values 4 which removes nested_object_id and positiondef in each row of the stream. This means that subsequent migration steps cannot determine the correct assignments of nested fields to a given affiliation (nested object).

This bug affects the migration of RPs that have at least 2 affilations with missing nested fields.

We'll provide a bugfix (adaption of the Pentaho migration).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions