Closed hossam-nasr closed 1 year ago
@hossam-nasr: Good catch. I think it would useful to see what the sub-orchestrator output looks like in the History. I suspect that sub-orchestrator results, in the History, are doubly serialized by default. Perhaps we can make a special case here to doubly de-serialize those outputs.
This would be a breaking change for V2 of the SDK, so I'd include it only in V3.
Finally, we can also investigate why the Extension leads to doubly-serialized results in sub-orchestrators and fix this there...but that's a larger change with a larger impact scope, so I wouldn't prioritize this just yet. Still worth investigating at that level to understand the root cause, and file it in the Extension repo once we understand it.
We discussed this offline. Since this is a breaking change, let's settle for just fixing this for v3, and let's aim to get the fix in before preview release
Describe the bug If input is passed from an orchestration -> suborchestration -> activity function, there are extra double quotes added to the input. There seems to be some extra layer of serialization/deserialization happening here.
Investigative information
To Reproduce Steps to reproduce the behavior:
SayHelloWithSubOrchestration
orchestration example in the samples:SayHelloWithSubOrchestration/index.js
:SayHelloWithActivity/index.js
:Hello/index.js
:SayHelloWithSubOrchestrator
orchestration with some input. If running locally, make the following HTTP request:Expected behavior Output of the orchestration should be:
"Hello Cairo!"
Actual behavior Output of the orchestration instead is:
"Hello \"Cairo\"!"
with extra double quotes around the input.