Skip to content

[.NET] Fix missing DataSource serialization in DiscoveredAssetManagementGroup.ToProtocol()#1204

Merged
timtay-microsoft merged 3 commits intomainfrom
timtay/dataSource
Feb 4, 2026
Merged

[.NET] Fix missing DataSource serialization in DiscoveredAssetManagementGroup.ToProtocol()#1204
timtay-microsoft merged 3 commits intomainfrom
timtay/dataSource

Conversation

@timtay-microsoft
Copy link
Member

@timtay-microsoft timtay-microsoft commented Feb 4, 2026

This pull request introduces a minor update to the protocol conversion logic for asset management groups. The main change is the inclusion of the DataSource property when converting to the protocol model, ensuring that this information is now correctly transferred.

  • Protocol conversion update:
    • Added mapping of the DataSource property from the source object to the protocol object in the ToProtocol method in ProtocolConverter.cs.

Authored by @koepalex via #1203

…entGroup.ToProtocol()

This pull request introduces a minor update to the protocol conversion logic for asset management groups. The main change is the inclusion of the `DataSource` property when converting to the protocol model, ensuring that this information is now correctly transferred.

* Protocol conversion update:
  * Added mapping of the `DataSource` property from the source object to the protocol object in the `ToProtocol` method in `ProtocolConverter.cs`.

Authored by @koepalex
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 pull request fixes a missing property serialization in the DiscoveredAssetManagementGroup.ToProtocol() method by adding the DataSource property mapping, ensuring complete data transfer when converting to the protocol model.

Changes:

  • Added DataSource property mapping in the ToProtocol method for DiscoveredAssetManagementGroup, bringing it in line with similar conversion methods for DiscoveredAssetEventGroup, DiscoveredAssetEvent, DiscoveredAssetDataset, and DiscoveredAssetDatasetDataPoint.

timtay-microsoft added a commit that referenced this pull request Feb 4, 2026
protocol:
- Various cloud event validation fixes (#1166)
- Allow subject + time to be omitted from a cloud event (#1167)
- Remove duplicated addition of timestamp user property when invoking a command (#1169)

services:
- Fix discovered asset class not mapping externalAssetId, displayName, or description fields (#1180)
- Fix missing DataSource serialization in DiscoveredAssetManagementGroup.ToProtocol() (#1204)
@timtay-microsoft timtay-microsoft merged commit 8a7165d into main Feb 4, 2026
13 checks passed
@timtay-microsoft timtay-microsoft deleted the timtay/dataSource branch February 4, 2026 22:38
timtay-microsoft added a commit that referenced this pull request Feb 4, 2026
protocol:
- Various cloud event validation fixes (#1166)
- Allow subject + time to be omitted from a cloud event (#1167)
- Remove duplicated addition of timestamp user property when invoking a
command (#1169)

services:
- Fix discovered asset class not mapping externalAssetId, displayName,
or description fields (#1180)
- Fix missing DataSource serialization in
DiscoveredAssetManagementGroup.ToProtocol() (#1204)

connector:
- Propagate cancellation token within connector worker async methods
(#1207)
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.

2 participants