Skip to content

Fix missing DataSource serialization in DiscoveredAssetManagementGroup.ToProtocol()#1203

Closed
koepalex wants to merge 1 commit intoAzure:mainfrom
koepalex:fix/discovered-asset-management-group-datasource
Closed

Fix missing DataSource serialization in DiscoveredAssetManagementGroup.ToProtocol()#1203
koepalex wants to merge 1 commit intoAzure:mainfrom
koepalex:fix/discovered-asset-management-group-datasource

Conversation

@koepalex
Copy link
Contributor

@koepalex koepalex 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.

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 issue in the DiscoveredAssetManagementGroup.ToProtocol() method. The DataSource property was not being mapped during the protocol conversion, which could result in data loss when converting between the model and protocol representations.

Changes:

  • Added the missing DataSource property mapping in the ToProtocol method for DiscoveredAssetManagementGroup

Copy link

@varunpuranik varunpuranik left a comment

Choose a reason for hiding this comment

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

LGTM.
@timtay-microsoft - can you pls take a look as well? Thanks!

@timtay-microsoft
Copy link
Member

The change LGTM as well. Our pipelines don't work with forks of our repo though, so I'll open PR #1204 to merge this from a branch in this repo

timtay-microsoft added a commit that referenced this pull request Feb 4, 2026
…entGroup.ToProtocol() (#1204)

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.


Authored by @koepalex via #1203
@timtay-microsoft
Copy link
Member

Closing in favor of #1204

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.

3 participants