Skip to content

Commit

Permalink
Remove un-necessary user fields from various filters
Browse files Browse the repository at this point in the history
  • Loading branch information
stefannica committed Feb 17, 2025
1 parent 0d6cf32 commit e3efd14
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
4 changes: 0 additions & 4 deletions src/zenml/models/v2/core/artifact_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,10 +545,6 @@ class ArtifactVersionFilter(WorkspaceScopedFilter, TaggableFilter):
default=None,
description="Filter only artifacts with/without custom names.",
)
user: Optional[Union[UUID, str]] = Field(
default=None,
description="Name/ID of the user that created the artifact version.",
)
model: Optional[Union[UUID, str]] = Field(
default=None,
description="Name/ID of the model that is associated with this "
Expand Down
1 change: 0 additions & 1 deletion src/zenml/models/v2/core/run_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ class RunTemplateFilter(WorkspaceScopedFilter, TaggableFilter):
"stack_id",
"build_id",
"pipeline_id",
"user",
"pipeline",
"stack",
]
Expand Down
8 changes: 1 addition & 7 deletions src/zenml/models/v2/core/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,13 +368,7 @@ def state(self) -> Optional[ServiceState]:


class ServiceFilter(WorkspaceScopedFilter):
"""Model to enable advanced filtering of services.
The Service needs additional scoping. As such the `_scope_user` field
can be set to the user that is doing the filtering. The
`generate_filter()` method of the baseclass is overwritten to include the
scoping.
"""
"""Model to enable advanced filtering of services."""

name: Optional[str] = Field(
default=None,
Expand Down

0 comments on commit e3efd14

Please sign in to comment.