Skip to content

Moving a multiple source transform looses all but 1 of the source attributes #816

@cbeach47

Description

@cbeach47

Describe the issue
When moving a multi-source mapping to a different target, there are two API calls made - a delete and a post. The post call only contains one of the sources.

Multiple sources transform:

Image

The lines show that both sources should move to the new target:

Image

But only retains one:

Image

The API calls when the target attribute is moved (Note - the POST call should have two source attributes):

DELETE http://localhost:8012/transformation_groups/transformations/1381

POST http://localhost:8012/transformation_groups/transformations/ with payload:

{
    "ExpressionLanguage": "JSONata",
    "TransformationGroupId": 26,
    "Expression": "{ \"Person\": [{ \"EmploymentPreferences\": [{ \"organizationTypes\": person }] }] }",
    "Name": "Person.EmploymentPreferences.organizationTypes",
    "SourceAttributes": [
        {
            "AttributeId": 1894,
            "AttributeType": "Source",
            "EntityIdPath": "person",
            "EntityId": 375
        }
    ],
    "TargetAttribute": {
        "AttributeId": 1876,
        "AttributeType": "Target",
        "EntityIdPath": "Person.EmploymentPreferences",
        "EntityId": 359
    }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions