Skip to content

Conversation

@johnpierson
Copy link
Member

@johnpierson johnpierson commented Aug 26, 2025

Purpose

This PR fixes an issue in the node auto-complete functionality by updating method calls to include the DynamoViewModel parameter. The changes ensure that the correct dispatcher is used for UI operations when performing auto-layout of nodes.

Key changes:

Updated PostAutoLayoutNodes method signature to accept a DynamoViewModel parameter
Modified dispatcher usage to use dynamoViewModel.UIDispatcher with a fallback to Dispatcher.CurrentDispatcher
Updated all call sites to pass the required DynamoViewModel parameter

20250826-c3d

Declarations

Check these if you believe they are true

  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated
  • This PR contains no files larger than 50 MB
  • This PR introduces new feature code involve network connecting and is tested with no-network mode.

Release Notes

Fixed an issue with node auto-complete by updating method calls to include the DynamoViewModel parameter, ensuring the correct UI dispatcher is used during node auto-layout.

Reviewers

@DynamoDS/synapse

FYIs

@zeusongit

@johnpierson johnpierson requested a review from Copilot August 26, 2025 15:41
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue in the node auto-complete functionality by updating method calls to include the DynamoViewModel parameter. The changes ensure that the correct dispatcher is used for UI operations when performing auto-layout of nodes.

Key changes:

  • Updated PostAutoLayoutNodes method signature to accept a DynamoViewModel parameter
  • Modified dispatcher usage to use dynamoViewModel.UIDispatcher with a fallback to Dispatcher.CurrentDispatcher
  • Updated all call sites to pass the required DynamoViewModel parameter

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
NodeAutoCompleteBarViewModel.cs Updated two call sites to pass dynamoViewModel parameter to PostAutoLayoutNodes
NodeSearchElementViewModel.cs Updated call site to pass dynamoViewModel parameter to PostAutoLayoutNodes
NodeAutoCompleteUtilities.cs Modified PostAutoLayoutNodes method signature and dispatcher logic to use DynamoViewModel parameter
Comments suppressed due to low confidence (1)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@johnpierson johnpierson changed the title [DYN-9428] dna fix DYN-9428 - Update DNA Method Calls Aug 26, 2025
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-9428

var dispatcher = dynamoViewModel?.UIDispatcher ?? Dispatcher.CurrentDispatcher;


dispatcher.BeginInvoke(() => AutoLayoutNodes(wsModel,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check for null dispatcher ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done!

@BogdanZavu
Copy link
Contributor

Looks like there are some issues with the build pipeline but the changes look good.
Nice fix, LGTM!

@zeusongit
Copy link
Contributor

Looks like there are some issues with the build pipeline but the changes look good. Nice fix, LGTM!

There is an extra closing bracket: https://github.com/DynamoDS/Dynamo/pull/16474/files#diff-e2a8ce0fd709d6521edd885285079f90716d49664c05ed3cc09230b22399c8a8R38

@johnpierson
Copy link
Member Author

Fixed the extra }, but now the build is failing because of some public api deprecations, so I think I fixed those @zeusongit

@johnpierson johnpierson added this to the 3.6.1 milestone Aug 28, 2025
@zeusongit zeusongit merged commit 0aa5920 into DynamoDS:RC3.6.1_master Aug 28, 2025
23 of 24 checks passed
kalunkuo pushed a commit to kalunkuo/Dynamo that referenced this pull request Sep 30, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants