Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
1.4
-
None
Description
In a component with the default model and the modelRelay option as this:
...
model:
,
modelRelay: [{
source: "
target: "{fluid9999}
.model.modelInTransit.forIdentity",
singleTransform:
}, {
source: "
target: "{fluid9999}
.model.modelInTransit",
singleTransform: {
type: "fluid.transforms.arrayToSetMembership",
options:
}
}]
...
The expected model structure after instantiating this component is:
{
forArrayToSetMembership: ["value1"],
forIdentity: ["value2"],
modelInTransit:
}
However, in the result model, the default value "value1" in the source array element "forArrayToSetMembership" for "fluid.transforms.arrayToSetMembership" disappears that causes the relay generates the wrong target model value that looks like:
{
forArrayToSetMembership: [],
forIdentity: ["value2"],
modelInTransit:
}
To produce it, two things to pay attention:
1. The source array element for "fluid.transforms.arrayToSetMembership" has at least one array value;
2. Must have at least another relay in the modelRelay option besides "fluid.transforms.arrayToSetMembership".
Note that once removing other relays from modelRelay option and having "fluid.transforms.arrayToSetMembership" as the only transformation in there, the relay works fine with keeping the source array value intact and creating the correct target model.
Attachments
Issue Links
- relates to
-
FLUID-5371 Model relay system should support conditional operation of forward and backward relays
-
- Closed
-