Skip to content

Conversation

@kevinherron
Copy link
Contributor

  • Introduce BrowseUtil.normalize to handle normalization of ExpandedNodeId values, ensuring they are relative for local nodes and absolute for non-local nodes.
  • Replaced existing normalization logic across BrowseHelper and BrowsePathsHelper with calls to BrowseUtil.normalize.

fixes #1467

- Introduce `BrowseUtil.normalize` to handle normalization of `ExpandedNodeId` values, ensuring they are relative for local nodes and absolute for non-local nodes.
- Replaced existing normalization logic across `BrowseHelper` and `BrowsePathsHelper` with calls to `BrowseUtil.normalize`.

fixes #1467
@kevinherron kevinherron added this to the 1.0.1 milestone May 20, 2025
@kevinherron kevinherron requested a review from Copilot May 20, 2025 16:59
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 unifies the normalization of ExpandedNodeId values by introducing the BrowseUtil.normalize method and replacing existing inline normalization logic.

  • Introduces a new helper method in BrowseUtil to handle normalization.
  • Updates BrowseHelper and BrowsePathsHelper to use the new utility method.
  • Adds BrowseUtilTest to verify the expected behavior of normalization for both local and non-local cases.

Reviewed Changes

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

File Description
BrowseUtilTest.java Added tests to validate normalization logic for both local and non-local ExpandedNodeId cases.
BrowseUtil.java Added a new static normalize method that consolidates normalization logic for ExpandedNodeId.
BrowsePathsHelper.java Replaced inline normalization logic with a call to BrowseUtil.normalize in mapping BrowsePathTarget.
BrowseHelper.java Refactored normalization in creating ReferenceDescription and in determining type definitions to use BrowseUtil.normalize.

@kevinherron kevinherron merged commit 7c40f35 into 1.0 May 22, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Normalize" ExpandedNodeId in browse service results

2 participants