DYN-8646 - Expand AutoComplete (Node Type Match) to Provide More Accurate Results#16167
Closed
johnpierson wants to merge 2 commits intoDynamoDS:masterfrom
Closed
DYN-8646 - Expand AutoComplete (Node Type Match) to Provide More Accurate Results#16167johnpierson wants to merge 2 commits intoDynamoDS:masterfrom
johnpierson wants to merge 2 commits intoDynamoDS:masterfrom
Conversation
There was a problem hiding this comment.
See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-8646
Contributor
|
For ports that accept lists of ints, doubles, strings, etc., do we also try to match them with nodes returning the exact types - lists of ints, doubles, strings, respectively? |
Member
Author
At this time (before this PR), all we do is present the defaults.
So no real logic, just defaults in the default order. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Currently node type match fails to find a match if the input port's data type is not explicitly one of the predefined. Eg. a node's input can be
List<string>, resulting in the suggestions in the Before GIF below. By switching tostring.containsinstead of equals, we get results that closer match expectations.Behavior Before:

Behavior After:

Note: while this is not a perfect fix, this does help at least work toward being a more correct suggestion, rather than defaulting to all of the default inputs. Node type match isn't the highest priority, but we wanted to give it a little attention. I do think that we can expand this further as well because NodeModels still have failures using node type match. Eg. Curve Mapper.
Declarations
Check these if you believe they are true
*.resxfilesRelease Notes
N/A
Reviewers
@DynamoDS/synapse
FYIs
@Jingyi-Wen @achintyabhat @jnealb @mjkkirschner