Skip to content

DYN-10078: info messages version fix2#16924

Merged
zeusongit merged 13 commits into
DynamoDS:masterfrom
RobertGlobant20:DYN-10078-InfoMessages-Version-Fix2
Mar 5, 2026
Merged

DYN-10078: info messages version fix2#16924
zeusongit merged 13 commits into
DynamoDS:masterfrom
RobertGlobant20:DYN-10078-InfoMessages-Version-Fix2

Conversation

@RobertGlobant20
Copy link
Copy Markdown
Contributor

Purpose

Show/Hide node info messages according to the Dynamo version in which the graph was created.
I've added the new method OnLogInfoMessage(string message, Version introducedInVersion) in the LogWarningMessageEvent class. This will allow that when a node is raising a info message it could provide the Version in which was introduced in this way in new Dynamo version we won't be showing the info message. In DynamoModel is the logic that will decide if it will show the info message or not based in the Version that was used to create a dyn file and the current Dynamo version. Finally I've updated the PublicAPI.Unshipped.txt file adding the public methods. Also I've added 6 unit tests for validating the next cases:

  • Empty FileName (new workspace) and non-null IntroducedInVersion → suppresses info messages
  • Empty FileName (new workspace) and no IntroducedInVersion → log info messages
  • No IntroducedInVersion → always logs info messages
  • workspaceVersion < introducedInVersion → logs info messages
  • workspaceVersion >= introducedInVersion → suppresses info messages

Declarations

Check these if you believe they are true

Release Notes

Show/Hide node info messages according to the Dynamo version in which the graph was created.

Reviewers

@aparajit-pratap @zeusongit

FYIs

I've added the new method OnLogInfoMessage(string message, Version introducedInVersion) in the LogWarningMessageEvent class.
This will allow that when a node is raising a info message it could provide the Version in which was introduced in this way in new Dynamo version we won't be showing the info message.
In DynamoModel is the logic that will decide if it will show the info message or not based in the Version that was used to create a dyn file and the current Dynamo version.
Finally I've updated the PublicAPI.Unshipped.txt file adding the public methods.
Also I've added 6 unit tests for validating the next cases:

- Empty FileName (new workspace) and non-null IntroducedInVersion → suppresses info messages
- Empty FileName (new workspace) and no IntroducedInVersion → log info messages
- No IntroducedInVersion → always logs info messages
- workspaceVersion < introducedInVersion → logs info messages
- workspaceVersion >= introducedInVersion → suppresses info messages
Fixing PublicAPI.Unshipped.txt and PublicAPI.Shipped.txt
@RobertGlobant20 RobertGlobant20 requested review from a team and Copilot February 25, 2026 20:26
@github-actions github-actions Bot changed the title Dyn 10078 info messages version fix2 DYN-: Dyn 10078 info messages version fix2 Feb 25, 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-10078

@RobertGlobant20
Copy link
Copy Markdown
Contributor Author

@aparajit-pratap
I closed the previous PR due that I noticed that some files were reporting changes even when I reverted back the changes and also the PublicAPI Analyzer was sending errors related to DynamoCore, when I added a private method only.
I took the latest file versions from the previous PR (#16910) so all the comments should be already addressed in this PR.

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

This PR implements version-aware info message filtering for Dynamo nodes. The feature allows info messages to be conditionally displayed based on the Dynamo version used to create a workspace, preventing redundant messages for users working with newer workspace versions.

Changes:

  • Added new OnLogInfoMessage overload accepting a Version parameter to specify when an info message was introduced
  • Modified LogWarningMessageEventArgs to include an optional IntroducedInVersion property
  • Implemented version comparison logic in DynamoModel to suppress versioned info messages for workspaces created at or after the specified version
  • Added workspace version preservation logic during engine resets to maintain correct version tracking
  • Created comprehensive unit tests covering all versioned message filtering scenarios

Reviewed changes

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

Show a summary per file
File Description
src/NodeServices/MessageEvents.cs Adds new constructor and property for versioned messages; changes LogInfoMessage event from internal to public; adds OnLogInfoMessage overload with version parameter
src/NodeServices/PublicAPI.Unshipped.txt Declares new public API members for the versioned info message feature
src/NodeServices/PublicAPI.Shipped.txt Moves original OnLogInfoMessage signature to shipped API list
src/DynamoCore/Models/DynamoModel.cs Implements version filtering logic; adds workspace version preservation during engine resets
test/Engine/FFITarget/TestMessageLog.cs Adds test helper class with methods to trigger versioned and non-versioned info messages
test/DynamoCoreTests/VersionedInfoMessageTests.cs Comprehensive test suite covering all versioned message filtering scenarios
test/core/versionedinfomessage/workspace_v2.0.0.dyn Test fixture for workspace version 2.0.0
test/core/versionedinfomessage/workspace_v3.0.0.dyn Test fixture for workspace version 3.0.0
test/core/versionedinfomessage/workspace_v4.0.0.dyn Test fixture for workspace version 4.0.0
doc/distrib/xml/en-US/FFITarget.xml Adds XML documentation for new test helper methods

Comment thread src/NodeServices/MessageEvents.cs Outdated
Comment thread src/NodeServices/MessageEvents.cs
Comment thread src/DynamoCore/Models/DynamoModel.cs Outdated
@zeusongit zeusongit changed the title DYN-: Dyn 10078 info messages version fix2 DYN-10078: info messages version fix2 Feb 25, 2026
RobertGlobant20 and others added 10 commits February 25, 2026 15:16
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
fixing src\NodeServices\PublicAPI.Unshipped.txt
After merging master latest changes in feature branch the PublicAPI.Unshipped.txt and PublicAPI.Shipped.txt were replaced so I added again the entries in PublicAPI.Unshipped.txt
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.

LGTM, but Dynamo SelfServe is failing

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Mar 4, 2026

@zeusongit
Copy link
Copy Markdown
Contributor

merging, @RobertGlobant20 can you document this in a wiki, how we can leverage this and share with devs, so that they can use it in future?

@zeusongit zeusongit merged commit 0982ace into DynamoDS:master Mar 5, 2026
28 of 29 checks passed
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.

4 participants