Skip to content

fix: aliases field missing from RegisteredModel record#277

Merged
memoryz merged 4 commits into
masterfrom
jasowang/gh272
Jul 6, 2025
Merged

fix: aliases field missing from RegisteredModel record#277
memoryz merged 4 commits into
masterfrom
jasowang/gh272

Conversation

@memoryz
Copy link
Copy Markdown
Collaborator

@memoryz memoryz commented Jul 6, 2025

fixes #272

@memoryz memoryz requested a review from Copilot July 6, 2025 07:47

This comment was marked as outdated.

…egisteredModel.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Jason Wang <jasonwang_83@hotmail.com>
@memoryz memoryz requested a review from Copilot July 6, 2025 07:51

This comment was marked as outdated.

@memoryz memoryz requested a review from Copilot July 6, 2025 08:02
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 adds support for the previously missing aliases field on the RegisteredModel record in the Unity Catalog client and ensures tests account for it.

  • Introduces Aliases, BrowseOnly, and Comment properties (with JSON mappings) to RegisteredModel
  • Updates the unit test to include the aliases array in the sample JSON response
  • Cleans up an unused using directive in the test file

Reviewed Changes

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

File Description
csharp/Microsoft.Azure.Databricks.Client/Models/UnityCatalog/RegisteredModel.cs Added Aliases, BrowseOnly, and Comment fields with documentation and JSON mappings
csharp/Microsoft.Azure.Databricks.Client.Test/UnityCatalog/RegisteredModelsApiClientTests.cs Updated test JSON to include aliases and removed unused System.Reflection import
Comments suppressed due to low confidence (1)

csharp/Microsoft.Azure.Databricks.Client.Test/UnityCatalog/RegisteredModelsApiClientTests.cs:83

  • Expand this JSON sample to include "browse_only": true (or false) and "comment": "some text", and add corresponding assertions to verify the BrowseOnly and Comment properties are deserialized correctly.
          ""aliases"": [],

@memoryz memoryz merged commit 339696e into master Jul 6, 2025
6 checks passed
@memoryz memoryz deleted the jasowang/gh272 branch July 6, 2025 08:19
@memoryz memoryz added this to the 2.9 milestone Jul 10, 2025
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.

aliases field missing from RegisteredModel record

2 participants