Skip to content

[PLT-1560] Remove experiment requirement from UserGroup #1840

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

Merged
merged 2 commits into from
Sep 25, 2024
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
9 changes: 1 addition & 8 deletions libs/labelbox/src/labelbox/schema/user_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ def __init__(
color (UserGroupColor, optional): The color of the user group. Defaults to UserGroupColor.BLUE.
users (Set[User], optional): The set of users in the user group. Defaults to an empty set.
projects (Set[Project], optional): The set of projects associated with the user group. Defaults to an empty set.

Raises:
RuntimeError: If the experimental feature is not enabled in the client.
"""
super().__init__(
client=client,
Expand All @@ -105,10 +102,6 @@ def __init__(
users=users,
projects=projects,
)
if not self.client.enable_experimental:
raise RuntimeError(
"Please enable experimental in client to use UserGroups"
)

def get(self) -> "UserGroup":
"""
Expand Down Expand Up @@ -285,7 +278,7 @@ def create(self) -> "UserGroup":
except Exception as e:
error = e
if not result or error:
# this is client side only, server doesn't have an equivalent error
# This is client side only, server doesn't have an equivalent error
raise ResourceCreationError(
f"Failed to create user group, either user group name is in use currently, or provided user or projects don't exist server error: {error}"
)
Expand Down
Loading