Skip to content

[Server] Add Async MonitoredItem Management methods to MasterNodeManager & IAsyncNodeManager#3217

Merged
mrsuciu merged 25 commits into
OPCFoundation:masterfrom
romanett:feat/AsyncNodeManagerMIMethods
Sep 22, 2025
Merged

[Server] Add Async MonitoredItem Management methods to MasterNodeManager & IAsyncNodeManager#3217
mrsuciu merged 25 commits into
OPCFoundation:masterfrom
romanett:feat/AsyncNodeManagerMIMethods

Conversation

@romanett

Copy link
Copy Markdown
Contributor

Proposed changes

Add Async MonitoredItem Management methods to MasterNodeManager & IAsyncNodeManager

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • Enhancement (non-breaking change which adds functionality)
  • Test enhancement (non-breaking change to increase test coverage)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected, requires version increase of Nuget packages)
  • Documentation Update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc.
  • I have signed the CLA.
  • I ran tests locally with my changes, all passed.
  • I fixed all failing tests in the CI pipelines.
  • I fixed all introduced issues with CodeQL and LGTM.
  • I have added tests that prove my fix is effective or that my feature works and increased code coverage.
  • I have added necessary documentation (if appropriate).
  • Any dependent changes have been merged and published in downstream modules.

Further comments

@codecov

codecov Bot commented Sep 21, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 81.86528% with 35 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.68%. Comparing base (4654e3e) to head (4e4fc71).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...c.Ua.Server/NodeManager/AsyncNodeManagerAdapter.cs 39.65% 28 Missing and 7 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3217      +/-   ##
==========================================
+ Coverage   57.58%   57.68%   +0.10%     
==========================================
  Files         355      355              
  Lines       78549    78679     +130     
  Branches    13849    13857       +8     
==========================================
+ Hits        45233    45389     +156     
+ Misses      29069    29044      -25     
+ Partials     4247     4246       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@romanett
romanett marked this pull request as ready for review September 21, 2025 18:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 adds asynchronous monitored item management methods to MasterNodeManager and IAsyncNodeManager. The changes introduce async versions of key monitored item operations including create, modify, delete, transfer, and monitoring mode management.

  • Extends IAsyncNodeManager with async monitored item management interfaces
  • Adds async method implementations to MasterNodeManager with synchronous fallbacks
  • Updates AsyncNodeManagerAdapter to bridge between sync and async implementations

Reviewed Changes

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

File Description
Tests/Opc.Ua.Server.Tests/MonitoredItemIdFactoryTests.cs Code style improvements including explicit type declarations and collection checks
Libraries/Opc.Ua.Server/NodeManager/INodeManager.cs Defines new async interfaces for monitored item operations and extends IAsyncNodeManager
Libraries/Opc.Ua.Server/NodeManager/MasterNodeManager.cs Implements async monitored item methods with proper cancellation token handling
Libraries/Opc.Ua.Server/NodeManager/AsyncNodeManagerAdapter.cs Provides adapter methods to bridge sync and async node manager implementations

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread Tests/Opc.Ua.Server.Tests/MonitoredItemIdFactoryTests.cs
Comment thread Libraries/Opc.Ua.Server/NodeManager/MasterNodeManager.cs
Comment thread Libraries/Opc.Ua.Server/NodeManager/MasterNodeManager.cs
Comment thread Libraries/Opc.Ua.Server/NodeManager/MasterNodeManager.cs
Comment thread Libraries/Opc.Ua.Server/NodeManager/MasterNodeManager.cs
Comment thread Libraries/Opc.Ua.Server/NodeManager/MasterNodeManager.cs
@romanett
romanett requested a review from mrsuciu September 22, 2025 04:23
@mrsuciu
mrsuciu merged commit 2902718 into OPCFoundation:master Sep 22, 2025
123 of 125 checks passed
@romanett
romanett deleted the feat/AsyncNodeManagerMIMethods branch September 22, 2025 13:55
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