Fix Dictionary Preview in Code block node#9020
Fix Dictionary Preview in Code block node#9020aparajit-pratap merged 1 commit intoDynamoDS:masterfrom
Conversation
|
@aparajit-pratap just curious where did the extra entries come from? Does anything need to be updated similarly to this on the TS side? |
|
@aparajit-pratap @mjkkirschner Is there a JIRA task for this? |
|
@aparajit-pratap Thanks. |
|
@mjkkirschner not sure what you mean by extra entries? Nothing needs to be updated on the TS side as this is more of a UI (preview) change in Dynamo. |
|
@aparajit-pratap misunderstood, so previously the dictionary was not displayed for multi return functions called in code blocks if one of the outputs was an empty string? |
|
@mjkkirschner previously the dictionary could not be expanded in the preview if it was the output of a multi-output port code block node. Please don't confuse yourself with the contents of this Dictionary in the above example. |
|
@mjkkirschner good to go? |
|
@aparajit-pratap LGTM |
Purpose
The following node preview for a Dictionary in a CBN containing multple output ports does not expand currently. This is the screenshot after the fix:

This is because
preferredDictionaryOrderingwas a list of empty strings (3 in this case, one for each output port) and even though it should have been ignored it passed the check inDefaultWatchHandler::ProcessThing. This fix it to prevent the list from containing empty strings. Note thatpreferredDictionaryOrderingmust only be populated for multi output nodes that have aMultiReturnAttribute.Declarations
Check these if you believe they are true
*.resxfilesReviewers
@mjkkirschner
FYIs
@jnealb