Skip to content

Commit 15551ca

Browse files
author
Val Brodsky
committed
Support tags
1 parent e00847b commit 15551ca

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

libs/labelbox/src/labelbox/schema/labeling_service_dashboard.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,16 @@
2525
dataRowsDoneCount
2626
mediaType
2727
editorTaskType
28+
tags
2829
"""
2930

3031

32+
class LabelingServiceDashboardTags(BaseModel):
33+
name: str
34+
color: str
35+
type: str
36+
37+
3138
class LabelingServiceDashboard(BaseModel):
3239
"""
3340
Represent labeling service data for a project
@@ -52,6 +59,7 @@ class LabelingServiceDashboard(BaseModel):
5259
data_rows_done_count: int = Field(frozen=True)
5360
media_type: Optional[MediaType] = Field(frozen=True, default=None)
5461
editor_task_type: EditorTaskType = Field(frozen=True, default=None)
62+
tags: List[LabelingServiceDashboardTags] = Field(frozen=True, default=None)
5563

5664
client: Any # type Any to avoid circular import from client
5765

libs/labelbox/tests/unit/test_unit_search_filters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def test_id_filters():
1515

1616
assert build_search_filter(
1717
filters
18-
) == '[{operator: "is", values: ["clphb4vd7000cd2wv1ktu5cwa"], type: "organization"}, {operator: "is", values: ["clphb4vd7000cd2wv1ktu5cwa"], type: "workspace"}, {operator: "is", values: ["tag"], type: "tag"}, {operator: "is", values: ["requested"], type: "stage"}]'
18+
) == '[{operator: "is", values: ["clphb4vd7000cd2wv1ktu5cwa"], type: "organization_id"}, {operator: "is", values: ["clphb4vd7000cd2wv1ktu5cwa"], type: "workspace"}, {operator: "is", values: ["tag"], type: "tag"}, {operator: "is", values: ["requested"], type: "stage"}]'
1919

2020

2121
def test_date_filters():

0 commit comments

Comments
 (0)