Skip to content

[Data Mapper] Mappings inside dependent sub-mappings are not rendered #2034

@madushajg

Description

@madushajg

Description

When a transformation contains multiple dependent sub-mappings, focusing into one of these sub-mappings does not display the mappings associated with it. As a result, users cannot view or inspect the mapping logic within dependent sub-mappings.

Steps to Reproduce

isolated function transform(Input input) returns Output =>
    let decimal subtotal = calculateSum(input.quantities),
        decimal delivery = subtotal * 0.1d,
        decimal total = subtotal + delivery,
        string status = total > 500d ? "Discount Applied" : "Standard Rate"
    in
    {
        orderId: input.id,
        items: input.lineItems,
        status: status
    };
  1. Visualize the above transformation function
  2. Focus into a sub-mapping such as delivery

Version

BI v1.5.3 | Ballerina v5.6.3

Environment Details (with versions)

No response

Metadata

Metadata

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions