Skip to content

Commit 03522dd

Browse files
author
Val Brodsky
committed
Switch from task* fields to dataRows* fields
1 parent 591a3db commit 03522dd

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
boostUpdatedAt
2020
boostRequestedBy
2121
boostStatus
22-
tasksCompletedCount
23-
tasksPercentCompleted
24-
tasksRemainingCount
25-
tasksTotalCount
22+
dataRowsCount
23+
dataRowsDoneCount
24+
dataRowsInReviewCount
25+
dataRowsInReworkCount
2626
mediaType
2727
editorTaskType
2828
tags
@@ -44,9 +44,8 @@ class LabelingServiceDashboard(BaseModel):
4444
id (str): project id
4545
name (str): project name
4646
status (LabelingServiceStatus): status of the labeling service
47-
tasks_completed_count (int): number of data rows completed
48-
tasks_remaining_count (int): number of data rows that have not started
49-
tasks_total_count (int): total number of data rows in the project
47+
data_rows_count (int): total number of data rows in the project
48+
data_rows_done_count (int): number of data rows completed
5049
tags (List[LabelingServiceDashboardTags]): tags associated with the project
5150
media_type (MediaType): media type of the project
5251
editor_task_type (EditorTaskType): editor task type of the project
@@ -58,9 +57,10 @@ class LabelingServiceDashboard(BaseModel):
5857
updated_at: Optional[datetime] = Field(frozen=True, default=None)
5958
created_by_id: Optional[str] = Field(frozen=True, default=None)
6059
status: LabelingServiceStatus = Field(frozen=True, default=None)
61-
tasks_completed_count: int = Field(frozen=True)
62-
tasks_remaining_count: int = Field(frozen=True)
63-
tasks_total_count: int = Field(frozen=True)
60+
data_rows_count: int = Field(frozen=True)
61+
data_rows_done_count: int = Field(frozen=True)
62+
data_rows_in_review_count: int = Field(frozen=True)
63+
data_rows_in_rework_count: int = Field(frozen=True)
6464
media_type: Optional[MediaType] = Field(frozen=True, default=None)
6565
editor_task_type: EditorTaskType = Field(frozen=True, default=None)
6666
tags: List[LabelingServiceDashboardTags] = Field(frozen=True, default=None)

libs/labelbox/tests/unit/test_unit_search_filters.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,11 @@ def test_stage_filter_with_invalid_values():
2727
with pytest.raises(
2828
ValueError,
2929
match="is not a valid value for ProjectStageFilter") as e:
30-
_ = [
31-
ProjectStageFilter(operator=IdOperator.Is,
30+
_ = ProjectStageFilter(operator=IdOperator.Is,
3231
values=[
3332
LabelingServiceStatus.Requested,
3433
LabelingServiceStatus.Missing
3534
]),
36-
]
3735

3836

3937
def test_date_filters():

0 commit comments

Comments
 (0)