Skip to content

DYN-10443 disable AA when no network mode#17138

Open
edwin-vasquez-ucaldas wants to merge 12 commits into
masterfrom
DYN-10443_Disable_AA_When__NoNetworkMode
Open

DYN-10443 disable AA when no network mode#17138
edwin-vasquez-ucaldas wants to merge 12 commits into
masterfrom
DYN-10443_Disable_AA_When__NoNetworkMode

Conversation

@edwin-vasquez-ucaldas
Copy link
Copy Markdown
Contributor

Purpose

Adds a guard so that when Dynamo runs in No-Network mode, the Autodesk Assistant and Dynamo MCP View Extension view extensions are skipped at both registration (added) and Loaded time, with a log line explaining the skip. Implementation is a small, well-placed private helper (DisableExtensionWhenNoNetworkMode) called from two existing extension loops, plus one NUnit test.

Declarations

Check these if you believe they are true

Release Notes

  • Disabled Autodesk Assistant when in No Network Mode.
  • Added the same validation into different places.
  • Created unit tests to validate the current changes.

Reviewers

@jasonstratton @RobertGlobant20

FYIs

@eamiri @jnealb

Copilot AI review requested due to automatic review settings June 4, 2026 02:53
@github-actions github-actions Bot changed the title Dyn 10443 disable aa when no network mode DYN-: Dyn 10443 disable aa when no network mode Jun 4, 2026
Copy link
Copy Markdown

@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-10443

@edwin-vasquez-ucaldas
Copy link
Copy Markdown
Contributor Author

Attaching the evidence

  • Before changes
DYN-10443-before
  • After changes
DYN-10443-after

Copy link
Copy Markdown
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

Adds a No-Network mode guard in the WPF host (DynamoView) to prevent specific view extensions (Autodesk Assistant and Dynamo MCP View Extension) from being registered/loaded when NoNetworkMode is enabled, logging a message when skipped. Includes a new UI test to validate the behavior.

Changes:

  • Introduces a private helper (DisableExtensionWhenNoNetworkMode) and uses it to skip targeted extensions during both “add/startup” and “loaded” phases.
  • Adds constants for the targeted extension names.
  • Adds an NUnit UI test that starts Dynamo in NoNetworkMode and validates the skip logic.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/DynamoCoreWpf/Views/Core/DynamoView.xaml.cs Adds the No-Network-mode guard, logging, and integrates it into extension startup and loaded loops.
test/DynamoCoreWpfTests/DynamoViewNoNetworkModeTests.cs Adds a new UI test configuring NoNetworkMode = true and asserting the disable logic.

Comment thread src/DynamoCoreWpf/Views/Core/DynamoView.xaml.cs
Comment thread test/DynamoCoreWpfTests/DynamoViewNoNetworkModeTests.cs
@edwin-vasquez-ucaldas edwin-vasquez-ucaldas changed the title DYN-: Dyn 10443 disable aa when no network mode DYN-10443 disable aa when no network mode Jun 4, 2026
@edwin-vasquez-ucaldas edwin-vasquez-ucaldas changed the title DYN-10443 disable aa when no network mode DYN-10443 disable AA when no network mode Jun 4, 2026
Copy link
Copy Markdown
Contributor

@RobertGlobant20 RobertGlobant20 left a comment

Choose a reason for hiding this comment

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

LGTM with one comment, did you already test it on Revit?

Comment thread src/DynamoCoreWpf/Views/Core/DynamoView.xaml.cs Outdated
edwin-vasquez-ucaldas and others added 5 commits June 4, 2026 10:08
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…thub.com/DynamoDS/Dynamo into DYN-10443_Disable_AA_When__NoNetworkMode

# Conflicts:
#	src/DynamoCoreWpf/Views/Core/DynamoView.xaml.cs
@johnpierson
Copy link
Copy Markdown
Member

LGTM with one comment, did you already test it on Revit?

For Revit testing, this tool, https://github.com/johnpierson/DynamoVersionPatcher, has an option to patch Revit 2027 with a zip file of a new Dynamo core. I don't have time today, but maybe I can test tomorrow.

Copy link
Copy Markdown
Contributor

@jasonstratton jasonstratton left a comment

Choose a reason for hiding this comment

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

Just a few minor changes, but it looks good.

Comment thread test/DynamoCoreWpfTests/DynamoViewNoNetworkModeTests.cs Outdated
Comment thread test/DynamoCoreWpfTests/DynamoViewNoNetworkModeTests.cs Outdated
Comment thread test/DynamoCoreWpfTests/DynamoViewNoNetworkModeTests.cs
Comment thread src/DynamoCoreWpf/Views/Core/DynamoView.xaml.cs Outdated
Comment thread src/DynamoCoreWpf/Views/Core/DynamoView.xaml.cs Outdated
Comment thread src/DynamoCoreWpf/Views/Core/DynamoView.xaml.cs Outdated
Comment thread test/DynamoCoreWpfTests/DynamoViewNoNetworkModeTests.cs Outdated
Comment thread test/DynamoCoreWpfTests/DynamoViewNoNetworkModeTests.cs Outdated
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 5, 2026

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.

5 participants