Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add supports for data assets in Registry #28371

Merged
merged 16 commits into from
Feb 8, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
merge upstream
  • Loading branch information
valeriepham04 committed Jan 20, 2023
commit 7d5217e31eddac12879551ac3f84ff76e4ff8fab
10 changes: 8 additions & 2 deletions sdk/ml/azure-ai-ml/azure/ai/ml/operations/_data_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,14 @@ def _get_latest_version(self, name: str) -> Data:
Latest is defined as the most recently created, not the most
recently updated.
"""
result = _get_latest(name, self._operation, self._resource_group_name, self._workspace_name, self._registry_name)
return Data._from_rest_object(result)
latest_version = _get_latest_version_from_container(
name,
self._container_operation,
self._resource_group_name,
self._workspace_name,
self._registry_name
)
return self.get(name, version=latest_version)


def _assert_local_path_matches_asset_type(
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.