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

Model version endpoint fixes #2060

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Changes from all commits
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
5 changes: 2 additions & 3 deletions src/zenml/zen_server/routers/workspaces_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -1350,7 +1350,7 @@ def create_model_version(
@handle_exceptions
def create_model_version_artifact_link(
workspace_name_or_id: Union[str, UUID],
model_version_id: Union[str, UUID],
model_version_id: UUID,
model_version_artifact_link: ModelVersionArtifactRequestModel,
auth_context: AuthContext = Security(
authorize, scopes=[PermissionType.WRITE]
Expand All @@ -1360,7 +1360,7 @@ def create_model_version_artifact_link(

Args:
workspace_name_or_id: Name or ID of the workspace.
model_version_id: Name or ID of the model version.
model_version_id: ID of the model version.
model_version_artifact_link: The model version to artifact link to create.
auth_context: Authentication context.

Expand All @@ -1374,7 +1374,6 @@ def create_model_version_artifact_link(
"""
workspace = zen_store().get_workspace(workspace_name_or_id)
if str(model_version_id) != str(model_version_artifact_link.model_version):
breakpoint()
raise IllegalOperationError(
f"The model version id in your path `{model_version_id}` does not "
f"match the model version specified in the request model "
Expand Down
Loading