1919 boostUpdatedAt
2020 boostRequestedBy
2121 boostStatus
22- dataRowsCount
23- dataRowsInReviewCount
24- dataRowsInReworkCount
25- dataRowsDoneCount
22+ tasksCompletedCount
23+ tasksPercentCompleted
24+ tasksRemainingCount
25+ tasksTotalCount
2626 mediaType
2727 editorTaskType
2828 tags
@@ -43,8 +43,12 @@ class LabelingServiceDashboard(BaseModel):
4343 id (str): project id
4444 name (str): project name
4545 status (LabelingServiceStatus): status of the labeling service
46- tasks_completed (int): number of data rows completed
47- tasks_remaining (int): number of data rows that have not started
46+ tasks_completed_count (int): number of data rows completed
47+ tasks_remaining_count (int): number of data rows that have not started
48+ tasks_total_count (int): total number of data rows in the project
49+ tags (List[LabelingServiceDashboardTags]): tags associated with the project
50+ media_type (MediaType): media type of the project
51+ editor_task_type (EditorTaskType): editor task type of the project
4852 client (Any): labelbox client
4953 """
5054 id : str = Field (frozen = True )
@@ -53,10 +57,9 @@ class LabelingServiceDashboard(BaseModel):
5357 updated_at : Optional [datetime ] = Field (frozen = True , default = None )
5458 created_by_id : Optional [str ] = Field (frozen = True , default = None )
5559 status : LabelingServiceStatus = Field (frozen = True , default = None )
56- data_rows_count : int = Field (frozen = True )
57- data_rows_in_review_count : int = Field (frozen = True )
58- data_rows_in_rework_count : int = Field (frozen = True )
59- data_rows_done_count : int = Field (frozen = True )
60+ tasks_completed_count : int = Field (frozen = True )
61+ tasks_remaining_count : int = Field (frozen = True )
62+ tasks_total_count : int = Field (frozen = True )
6063 media_type : Optional [MediaType ] = Field (frozen = True , default = None )
6164 editor_task_type : EditorTaskType = Field (frozen = True , default = None )
6265 tags : List [LabelingServiceDashboardTags ] = Field (frozen = True , default = None )
@@ -69,20 +72,6 @@ def __init__(self, **kwargs):
6972 raise RuntimeError (
7073 "Please enable experimental in client to use LabelingService" )
7174
72- @property
73- def tasks_completed (self ):
74- """
75- Count how many data rows have been completed (i.e. in the Done queue)
76- """
77- return self .data_rows_done_count
78-
79- @property
80- def tasks_remaining (self ):
81- """
82- Count how many data rows have not been completed
83- """
84- return self .data_rows_count - self .data_rows_done_count
85-
8675 @property
8776 def service_type (self ):
8877 """
@@ -202,7 +191,5 @@ def convert_boost_data(cls, data):
202191 def dict (self , * args , ** kwargs ):
203192 row = super ().dict (* args , ** kwargs )
204193 row .pop ('client' )
205- row ['tasks_completed' ] = self .tasks_completed
206- row ['tasks_remaining' ] = self .tasks_remaining
207194 row ['service_type' ] = self .service_type
208195 return row
0 commit comments